[Pkg-sugar-commit] [sugar-artwork] 05/10: Gtk 3.14 regressions: use sugar assets for checkboxes and radio buttons
Jonas Smedegaard
dr at jones.dk
Mon Jun 15 00:01:13 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag v0.105.1
in repository sugar-artwork.
commit 8088214ed9b4c2c67b097ab104f4abaa8af916f4
Author: Sam Parkinson <sam.parkinson3 at gmail.com>
Date: Fri May 15 20:08:14 2015 +1000
Gtk 3.14 regressions: use sugar assets for checkboxes and radio buttons
Changes in Gtk 3.14 [1] expect assets for checkboxes and radio buttons to be
included in the icon theme, not as the css background. This commit uses the
`-gtk-icon-source` property to tell gtk to use our pre-exsisting assets.
This also removes the needs for hacks such as adding a border in css, namely
commit 27fac30cb028a7461f40da6765db13c017ad6f13.
How to test:
1. Open "gtk3-widget-factory" or the network control panel
2. Notice how the checkboxes have the simple sugar tick, not the complex
GNOME tick.
[1] https://mail.gnome.org/archives/gtk-devel-list/2014-May/msg00020.html
---
gtk3/theme/gtk-widgets.css.em | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/gtk3/theme/gtk-widgets.css.em b/gtk3/theme/gtk-widgets.css.em
index 04e3649..aedff0b 100644
--- a/gtk3/theme/gtk-widgets.css.em
+++ b/gtk3/theme/gtk-widgets.css.em
@@ -716,6 +716,9 @@ SugarPaletteWindowWidget .check {
.radio row:selected,
.radio row:selected:focused {
background-image: url("assets/radio.svg");
+ /* Gtk 3.14+ expect these to be included in icon theme however we want to
+ override that */
+ -gtk-icon-source: url("assets/radio.svg");
background-color: alpha(@theme_base_color, 0.0);
}
@@ -723,44 +726,50 @@ SugarPaletteWindowWidget .check {
.radio:selected row:selected,
.radio:selected row:selected:focused {
background-image: url("assets/radio-selected.svg");
+ -gtk-icon-source: url("assets/radio-selected.svg");
}
.radio:active,
.radio row:selected:active,
.radio row:selected:focused:active {
background-image: url("assets/radio-active.svg");
+ -gtk-icon-source: url("assets/radio-active.svg");
}
.radio:active:selected,
.radio:selected row:selected:active,
.radio:selected row:selected:focused:active {
background-image: url("assets/radio-active-selected.svg");
+ -gtk-icon-source: url("assets/radio-active-selected.svg");
}
.check,
.check row:selected,
.check row:selected:focused {
background-image: url("assets/checkbox-unchecked.svg");
+ -gtk-icon-source: url("assets/checkbox-unchecked.svg");
background-color: alpha(@theme_base_color, 0.0);
- border: 1px solid @black;
}
.check:selected,
.check:selected row:selected,
.check:selected row:selected:focused {
background-image: url("assets/checkbox-unchecked-selected.svg");
+ -gtk-icon-source: url("assets/checkbox-unchecked-selected.svg");
}
.check:active,
.check row:selected:active,
.check row:selected:focused:active {
background-image: url("assets/checkbox-checked.svg");
+ -gtk-icon-source: url("assets/checkbox-checked.svg");
}
.check:active:selected,
.check:selected row:selected:active,
.check:selected row:selected:focused:active {
background-image: url("assets/checkbox-checked-selected.svg");
+ -gtk-icon-source: url("assets/checkbox-checked-selected.svg");
}
/* Tool items */
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-sugar/sugar-artwork.git
More information about the pkg-sugar-commit
mailing list