GNOME Bugzilla – Bug 606374
Use external files for theme
Last modified: 2018-05-22 12:28:15 UTC
I first filed this bug about the default theme in Quadrapassel https://bugzilla.gnome.org/show_bug.cgi?id=605162 I figured I'd take it a step further and make my own theme. I looked at /usr/share/gnome-games/quadrapassel/pixmaps and found a few files quadrapassel.svg which is the background I then saw 7-blocks-gw.png and 7-blocks-tig.png which looked nothing like the included themes of "Flat" "Tango" and "Tango Shaded". Scouring through the source I believe I found that the themes are hard coded http://git.gnome.org/browse/gnome-games/tree/quadrapassel/renderer.cpp#n103 The fact that the line of code is prefaced with "/* the following garbage is derived from the official tango style guide */" Wouldn't it make sense to code Quadrapassel (and other gnome-games) to use svg and/or png files rather than be hard coded with "garbage"? I see while Mahjongg has a set of svgs for its tiles, the cards for Aislerot are no where to be found. Mines has svgs, but the aforementioned Quadrapassel does not. I haven't checked all gnome-games but those few already illustrate my point It's also a matter of consistency across gnome-games.
(Aisleriot IS themeable. The default aisleriot cards are in libgames-support/ dir, while the extra cards are in gnome-games-extra-data git module).
Okay Aisleriot is themeable it's just not in /usr/share/gnome-games/{game} like all the others. I downloaded all the games, seems the themes for the most part are in /usr/share/gnome-games/{gamename}/pixmaps, with the exception of Lights Off ans Swell Foop which are in /usr/share/gnome-games/{gamename}/themes and Robots which uses both folders. While it would be nice to have a consistent folder for all the games, the main point of this bug is to make all the games themeable. While I haven't tried all of them yet, it appears Quadrapassel (the game this bug is filed under) is the ONLY game where it isn't possible to theme is merely by replacing svgs.
Update description - the themes are currently hard-coded but could be easily done using .svg files that can be overridden.
-- 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/quadrapassel/issues/5.