Open nandanvasudevan opened 2 years ago
Hi Nandan,
The Gtk::StyleProperty allows you to set a custom property that can be defined in CSS. For example, the above that you cited can be found defined in the default.css
located at ~/.config/xfce4/finder/default.css
once the xfce4-finder is installed as the following:
-gtkmm__CustomObject_finder-width: 1000;
Using this approach, I'm able to have the width of the finder determined by a CSS property. In the same default.css
you can also find the following other custom properties:
-gtkmm__CustomObject_finder-height: 370;
-gtkmm__CustomObject_finder-results: 10;
Just as before, these allow for CSS defined custom values that the finder uses to determine the height of the finder as well as how many results to display at any one time.
You can find out more about StyleProperty in the Gtk docs https://docs.gtk.org/gtk3/class.StyleProperties.html.
Hope this helps. Please let me know if you need any further assistance.
https://github.com/godlikemouse/xfce4-finder/blob/d1f6383aa976d132fc6f8bcd44d602f8befac0ff/src/custom-css.h#L7
Hi I came across your article and was about try it out and I could not find where and what
Gtk::StyleProperty
is.Could you help me figure this out?