numixproject / numix-gtk-theme

A modern flat theme with a combination of light and dark elements.
GNU General Public License v3.0
1.19k stars 227 forks source link

Theme parsing error with gtk 3.24.1 and recompiling gresource files #728

Open elementgreen opened 5 years ago

elementgreen commented 5 years ago

numix-blue is my favorite GTK theme, but spits out lots of warnings when running programs from the command line (see below).

Most of these appear to be related to "font:" statements in the gtk.css file. I suspect that statements like "font: bold;" should actually be "font-weight: bold;", "font: 18px;" should be "font-size: 18px;", etc. I've made these changes to the gtk.css file, but problem persists because it is actually in the binary gtk.gresource file.

I've searched the ENTIRE Internet at this point (sarcasm) and cannot find any information on how to compile these blasted gresource files. Any tips would be most appreciated. I like this theme, but it is interfering with debugging of other applications, since I like to set breakpoints on g_logv when there is log output from glib.

System: Ubuntu 18.10 gtk-3.24.1 numix-gtk-theme-2.6.7-3 numix-blue-gtk-theme-0.55

Looking at the numix-blue-gtk-theme package version, could this be outdated for some reason?

Thanks for any tips on this. Driving me crazy.

Gtk-WARNING : 13:54:40.167: Theme parsing error: gtk.css:597:14: not a number Gtk-WARNING : 13:54:40.167: Theme parsing error: gtk.css:597:14: Expected a string. Gtk-WARNING : 13:54:40.167: Theme parsing error: gtk.css:600:17: Expected a string. Gtk-WARNING : 13:54:40.168: Theme parsing error: gtk.css:784:14: not a number Gtk-WARNING : 13:54:40.168: Theme parsing error: gtk.css:784:14: Expected a string. Gtk-WARNING : 13:54:40.168: Theme parsing error: gtk.css:787:17: Expected a string. Gtk-WARNING : 13:54:40.171: Theme parsing error: gtk.css:1096:14: not a number Gtk-WARNING : 13:54:40.171: Theme parsing error: gtk.css:1096:14: Expected a string. Gtk-WARNING : 13:54:40.171: Theme parsing error: gtk.css:1099:17: Expected a string. Gtk-WARNING : 13:54:40.178: Theme parsing error: gtk.css:2286:8: not a number Gtk-WARNING : 13:54:40.178: Theme parsing error: gtk.css:2286:18: Using Pango syntax for the font: style property is deprecated; please use CSS syntax Gtk-WARNING : 13:54:40.178: Theme parsing error: gtk.css:2291:8: not a number Gtk-WARNING : 13:54:40.178: Theme parsing error: gtk.css:2291:18: Using Pango syntax for the font: style property is deprecated; please use CSS syntax Gtk-WARNING : 13:54:40.185: Theme parsing error: gtk.css:4357:14: not a number Gtk-WARNING : 13:54:40.186: Theme parsing error: gtk.css:4357:14: Expected a string. Gtk-WARNING : 13:54:40.186: Theme parsing error: gtk.css:4419:12: not a number Gtk-WARNING : 13:54:40.186: Theme parsing error: gtk.css:4419:12: Expected a string. Gtk-WARNING : 13:54:40.186: Theme parsing error: gtk.css:4428:16: not a number Gtk-WARNING : 13:54:40.186: Theme parsing error: gtk.css:4428:16: Expected a string. Gtk-WARNING : 13:54:40.186: Theme parsing error: gtk.css:4443:22: not a number Gtk-WARNING : 13:54:40.186: Theme parsing error: gtk.css:4443:22: Expected a string. Gtk-WARNING : 13:54:40.186: Theme parsing error: gtk.css:4499:12: Expected a string. Gtk-WARNING : 13:54:40.186: Theme parsing error: gtk.css:4501:16: not a number Gtk-WARNING : 13:54:40.186: Theme parsing error: gtk.css:4501:16: Expected a string. Gtk-WARNING : 13:54:40.186: Theme parsing error: gtk.css:4549:12: not a number Gtk-WARNING : 13:54:40.186: Theme parsing error: gtk.css:4549:12: Expected a string.

khurshid-alam commented 5 years ago

Numix-Blue is not maintained here. File a bug at their own issue tracker. The errors you are getting is deprecation of pango styles which I believe was fixed in master. But these are just warnings, so build should not fail unless you consider warnings as errors.

In disco ( Ubuntu 19.04) , I only get compound selector deprecation which I will fixed later. See the log here.

elementgreen commented 5 years ago

Ahh, sorry about that, did not know that Numix-Blue wasn't the same project. Yeah, they are just warnings, just interfering with gdb debugging of other glib applications, when I want to set a breakpoint on a log message (since the theme prints out a lot of them). If I could just rebuild the gresource file, I'd be good to go, but documentation on doing that seems really scarce. I'll give Numix-Blue master a try though. Thanks.