[gnome-themes-standard] assets: don't repeat background images for checks/radios
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] assets: don't repeat background images for checks/radios
- Date: Sat, 24 Nov 2012 21:44:45 +0000 (UTC)
commit 4567d8efaa5823b37b01c0adc486cdea896f114c
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sat Nov 24 16:22:35 2012 -0500
assets: don't repeat background images for checks/radios
These images are used both for GtkCheckButton (which fortunately has an
indicator-size style property) and for GtkCellRendererToggle; in the
latter case, indicator-size is a property that can be changed from code
with a GObject property.
Since we used fixed-size assets for those, we must specify not to repeat
them, or it will look bad when the code changes indicator-size on a cell
renderer.
https://bugzilla.gnome.org/show_bug.cgi?id=685921
themes/Adwaita/gtk-3.0/gtk-widgets-assets.css | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets-assets.css b/themes/Adwaita/gtk-3.0/gtk-widgets-assets.css
index e31efe7..c47b67d 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets-assets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets-assets.css
@@ -14,6 +14,8 @@
/* draw regular check and radio items using our SVG assets */
.check {
background-image: url("assets/checkbox-unchecked.png");
+ background-repeat: no-repeat;
+ background-position: center;
}
.check row:selected,
@@ -105,6 +107,8 @@
.radio {
background-image: url("assets/radio-unchecked.png");
+ background-repeat: no-repeat;
+ background-position: center;
}
.radio row:selected,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]