diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-11-14 22:29:31 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-11-15 14:22:17 -0500 |
commit | c6c342750753efc77d0221db7f0465643f96882a (patch) | |
tree | cbf279b89ba3ca2263499dec8a3382c42e9582a4 /gtk/theme | |
parent | 2301d8d90bda35c2e1d6e461cd3c815a4e6bd3e6 (diff) | |
download | gtk+-c6c342750753efc77d0221db7f0465643f96882a.tar.gz |
iconhelper: Query size via CSS
Instead of looking at the icon size, look at the CSS value for
-gtk-icon-size. Set style classes depending on icon size instead.
Trivially change Adwaita and HighContrast to report the same values as
before.
Diffstat (limited to 'gtk/theme')
-rw-r--r-- | gtk/theme/Adwaita/_common.scss | 8 | ||||
-rw-r--r-- | gtk/theme/HighContrast/_common.scss | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss index 05037eb227..599631f6c5 100644 --- a/gtk/theme/Adwaita/_common.scss +++ b/gtk/theme/Adwaita/_common.scss @@ -47,6 +47,14 @@ row:focus(visible) { } } +.normal-icons { + -gtk-icon-size: 16px; +} + +.large-icons { + -gtk-icon-size: 32px; +} + /* These wildcard seems unavoidable, need to investigate. Wildcards are bad and troublesome, use them with care, diff --git a/gtk/theme/HighContrast/_common.scss b/gtk/theme/HighContrast/_common.scss index c172362ce6..e71b9261cf 100644 --- a/gtk/theme/HighContrast/_common.scss +++ b/gtk/theme/HighContrast/_common.scss @@ -88,6 +88,14 @@ $ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94); } } +.normal-icons { + -gtk-icon-size: 16px; +} + +.large-icons { + -gtk-icon-size: 32px; +} + .view { color: $fg_color; background-color: $base_color; |