Not all insensitive widgets change their color. They can also, for
example, change their opacity, or maybe one of their children changes
color but not the widget itself. In general, trying to guess stuff like
that from the theme is a fool's errand, just hardcode something or
really use css yourself.
On 26/09/2022 08:32, Abhishek Kumar via desktop-devel-list wrote:
Hello,
I am facing an issue to read foreground color for insensitive widgets
(e.g. menubar, spinner etc.) in GTK 3.
I am trying to get the stylecontext for the widget by calling
‘gtk_widget_get_style_context’ API and
then get the foreground color for insensitive state by calling
‘gtk_style_context_get_color’ API.
The returned color value is having 0.2396 for red, green and blue
component which is wrong.
I am using Ubuntu 22.04 and theme is ‘Yaru’.
Can anyone help me out what should be the correct approach to read
color values from gtk css file?
Thanks
Abhishek
_______________________________________________
desktop-devel-list mailing list
desktop-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/desktop-devel-list
_______________________________________________
desktop-devel-list mailing list
desktop-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/desktop-devel-list