该特定.css
文件中只有一行,因为默认主题(Adwaita)是二进制文件:
Adwaita is a complex theme, so to keep it maintainable it's written and processed in SASS, the generated CSS is
then transformed into a gresource file during gtk build and used at runtime in a non-legible or editable form.
由于已包含该代码gtk+
,因此您可以在此处查看源文件。根据他们的readme
:
_colors.scss - global color definitions. We keep the number of defined colors to a necessary minimum, most colors
are derived form a handful of basics. It covers both the light variant and the dark variant.
_colors-public.scss - SCSS colors exported through gtk to allow for 3rd party apps color mixing.
_drawing.scss - drawing helper mixings/functions to allow easier definition of widget drawing under specific context.
This is why Adwaita isn't 15000 LOC.
_common.scss - actual definitions of style for each widget. This is where you are likely to add/remove your changes.
参考.css
文件是:
gtk-contained.css
gtk-contained-dark.css
这是一个较旧的方法,一些内容不再适用(如我所说,源代码已在使用中gtk+
,已gnome-themes-standard
被弃用),但它应该使您走上正确的道路:
如何破解GNOME Adwaita GTK主题