i tried rc_parse method using Gtk.rc_parse("path/to/Hooli/gtk-3/gtk.css") code but it is not working. this question is simlpy but solution of question not easy. how can i change the my gtk apllication theme ? or how can i use custom theme on my gtk application ?
Thanks.
this codes working very correctly on windows, linux, ... i hope this solve your problem
You are mixing the old way with the new CSS way.
I wrote a few examples that are in the demos folder of the pygobject tree, the most simple one is this one:
https://git.gnome.org/browse/pygobject/tree/demos/gtk-demo/demos/Css/css_accordion.py
In short you have to prepare the css:
https://git.gnome.org/browse/pygobject/tree/demos/gtk-demo/demos/data/css_accordion.css
The file is loaded into a Gtk.CssProvider()
Which is loaded by the function apply_css()
Run the full example to get a better idea of how it works.