diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2020-03-27 15:20:59 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2020-03-27 15:20:59 +0000 |
commit | f1003d6ae88cfbd36cb6fe105b46244d1eecd738 (patch) | |
tree | 4e989e1828fac9e5f556390998340f722a831315 | |
parent | c3c06e60dcc0813fd5007e1e2ab1b99dfafa4298 (diff) | |
download | gtk+-f1003d6ae88cfbd36cb6fe105b46244d1eecd738.tar.gz |
Rename GResources for standard GTK themes
After commit 2ab9be54fb34c61eedbbb89b78ce9db23ba81e8a we had to rename
the generated CSS files to be included into the GResource bundle; we
kept the URI stable to avoid too much churn, and allow backporting the
change to the 3.24 stable branch. This had the adverse effect of making
it harder to debug issues, as the on-disk file name does not match the
location in the GResource that will be used to print out warnings,
errors, and debugging messages.
-rw-r--r-- | gtk/gen-gtk-gresources-xml.py | 8 | ||||
-rw-r--r-- | gtk/theme/Adwaita/gtk-dark.css | 2 | ||||
-rw-r--r-- | gtk/theme/Adwaita/gtk.css | 2 | ||||
-rw-r--r-- | gtk/theme/HighContrast/gtk-inverse.css | 2 | ||||
-rw-r--r-- | gtk/theme/HighContrast/gtk.css | 2 |
5 files changed, 8 insertions, 8 deletions
diff --git a/gtk/gen-gtk-gresources-xml.py b/gtk/gen-gtk-gresources-xml.py index 9f3ea374ef..eb56d8e478 100644 --- a/gtk/gen-gtk-gresources-xml.py +++ b/gtk/gen-gtk-gresources-xml.py @@ -20,8 +20,8 @@ xml += ''' <file>theme/Empty/gtk.css</file> <file>theme/Adwaita/gtk.css</file> <file>theme/Adwaita/gtk-dark.css</file> - <file alias='theme/Adwaita/gtk-contained.css'>theme/Adwaita/Adwaita.css</file> - <file alias='theme/Adwaita/gtk-contained-dark.css'>theme/Adwaita/Adwaita-dark.css</file> + <file>theme/Adwaita/Adwaita.css</file> + <file>theme/Adwaita/Adwaita-dark.css</file> ''' for f in get_files('theme/Adwaita/assets', '.png'): @@ -35,8 +35,8 @@ for f in get_files('theme/Adwaita/assets', '.svg'): xml += ''' <file>theme/HighContrast/gtk.css</file> <file alias='theme/HighContrastInverse/gtk.css'>theme/HighContrast/gtk-inverse.css</file> - <file alias='theme/HighContrast/gtk-contained.css'>theme/HighContrast/HighContrast.css</file> - <file alias='theme/HighContrast/gtk-contained-inverse.css'>theme/HighContrast/HighContrast-inverse.css</file> + <file>theme/HighContrast/HighContrast.css</file> + <file>theme/HighContrast/HighContrast-inverse.css</file> ''' for f in get_files('theme/HighContrast/assets', '.png'): diff --git a/gtk/theme/Adwaita/gtk-dark.css b/gtk/theme/Adwaita/gtk-dark.css index c22854d6e1..d6711af387 100644 --- a/gtk/theme/Adwaita/gtk-dark.css +++ b/gtk/theme/Adwaita/gtk-dark.css @@ -1 +1 @@ -@import url("resource:///org/gtk/libgtk/theme/Adwaita/gtk-contained-dark.css"); +@import url("resource:///org/gtk/libgtk/theme/Adwaita/Adwaita-dark.css"); diff --git a/gtk/theme/Adwaita/gtk.css b/gtk/theme/Adwaita/gtk.css index fc3a3a6c9d..d99e088ea0 100644 --- a/gtk/theme/Adwaita/gtk.css +++ b/gtk/theme/Adwaita/gtk.css @@ -1 +1 @@ -@import url("resource:///org/gtk/libgtk/theme/Adwaita/gtk-contained.css"); +@import url("resource:///org/gtk/libgtk/theme/Adwaita/Adwaita.css"); diff --git a/gtk/theme/HighContrast/gtk-inverse.css b/gtk/theme/HighContrast/gtk-inverse.css index deca145004..6649fc4ef3 100644 --- a/gtk/theme/HighContrast/gtk-inverse.css +++ b/gtk/theme/HighContrast/gtk-inverse.css @@ -1 +1 @@ -@import url("resource:///org/gtk/libgtk/theme/HighContrast/gtk-contained-inverse.css"); +@import url("resource:///org/gtk/libgtk/theme/HighContrast/HighContrast-inverse.css"); diff --git a/gtk/theme/HighContrast/gtk.css b/gtk/theme/HighContrast/gtk.css index a568c7c11b..8dcda0018d 100644 --- a/gtk/theme/HighContrast/gtk.css +++ b/gtk/theme/HighContrast/gtk.css @@ -1 +1 @@ -@import url("resource:///org/gtk/libgtk/theme/HighContrast/gtk-contained.css"); +@import url("resource:///org/gtk/libgtk/theme/HighContrast/HighContrast.css"); |