GNOME Bugzilla – Bug 620452
Glade3 supports multiple themes for enhancement
Last modified: 2018-03-26 15:13:48 UTC
Glade3 is a design tool. Glade3 in Linux has the theme same as host's one. But user probably want to apply another theme to the layout area for their application. And they probably want to look & feel same as real theme. For this, I'd try to add the gtkrcparser.{c/h} in the glade source. It is similar to the gtkrc.{c/h}. When launching glade3, gtkrcparser will parse the user's gtkrc resource file. And when adding new widget to the layout, glade apply the user theme to the widget. But this solution has some problem. If you try to change the label of GtkButton, GtkButton try to create GtkLabel internally. In this case, glade can not apply theme to it immediately. So, I add the "apply-theme" signal to the GtkButton. When GtkButton creates the GtkLabel, GtkButton will emit the "apply-theme" signal. Glade has the callback function of the signal. In the callback function, glade apply the theme to the GtkLabel widget. I think this patch should be improved. Anyway, if Glade3 can be support two or more theme at one time, it will be great and very helpful.
The Glade user does not have control on the theme of their app. They install a binary and a glade file and deal with the theme that was designed for the desktop they installed their app into. In some *corner cases* applications need to deliver a couple of extra graphics, sometimes they come in the form of a simple GtkImage or sometimes they are assigned by widget name via GtkStyle/pixbuf theme engine. One thing that would be interesting if even at all possible would be to at least force the workspace to show itself without applying anything at all from the style. As an unrelated feature for Glade but just a little candy for theme writers, we could include an option to switch the style in the "preview window", which would let *theme authors* help hack their themes to better work-around the designs of popular applications. Since currently themes are like this, themes and application designers are not married together as they should be, they are actually at war with eachother. The best an application developer can do is protect itself against the evil hicolor-contrast-invert theme and hope the application even appears under any other thinkable theme.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glade/issues/63.