hello mate. you can change the color of a MDIconButton by adding the following parameter to it:
theme_icon_color: "Custom"
icon_color: 1,0,0,1 #you can add any color, i chose red just as an example
these parameters should be used in the .kv file, consider this code that as an example:
from kivy.lang import Builder
from
kivymd.app import MDApp
KV = '''
MDScreen:
MDIconButton:
icon: "language-python"
pos_hint: {"center_x": .5, "center_y": .5}
theme_icon_color: "Custom"
icon_color: 1,0,0,1# substitute this color with whatever you want
'''
class Example(MDApp):
def build(self):
self.theme_cls.theme_style = "Dark"
self.theme_cls.primary_palette = "Orange"
return Builder.load_string(KV)
Example().run()
copy the code and it, change the color of the button and see if this is what you wanted.