[gtk+/wip/matthiasc/gadget] stackswitcher: Improve the min-width handling
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/gadget] stackswitcher: Improve the min-width handling
- Date: Tue, 8 Dec 2015 15:17:39 +0000 (UTC)
commit 9bcd35c6f302c4a90c5d384d5075cc25ea762bc5
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Dec 8 10:16:54 2015 -0500
stackswitcher: Improve the min-width handling
Instead of the labels, put the min-width on the buttons themselves,
but only if they are text buttons.
gtk/theme/Adwaita/_common.scss | 3 ++-
gtk/theme/Adwaita/gtk-contained-dark.css | 7 ++++++-
gtk/theme/Adwaita/gtk-contained.css | 7 ++++++-
3 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 5c88715..469da48 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -2702,6 +2702,7 @@ row {
*************/
expander {
+ & title:hover { background: red; }
& arrow {
-gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
&:dir(rtl) { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic-rtl'); }
@@ -3436,6 +3437,6 @@ frame.keycap {
padding: 3px 8px 3px 8px;
}
-stackswitcher label {
+stackswitcher button.text-button {
min-width: 100px;
}
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index ceae734..53448e5 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -3814,6 +3814,8 @@ row {
/*************
* Expanders *
*************/
+expander title:hover {
+ background: red; }
expander arrow {
-gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
expander arrow:dir(rtl) {
@@ -4663,7 +4665,10 @@ frame.keycap {
color: #555753;
padding: 3px 8px 3px 8px; }
-stackswitcher label {
+stackswitcher button.text-button, stackswitcher GtkScaleButton.button.text-button,
+stackswitcher GtkVolumeButton.button.text-button,
+stackswitcher .titlebar button.text-button.titlebutton,
+.titlebar stackswitcher button.text-button.titlebutton {
min-width: 100px; }
/* GTK NAMED COLORS
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index aacac94..ed94473 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -3984,6 +3984,8 @@ row {
/*************
* Expanders *
*************/
+expander title:hover {
+ background: red; }
expander arrow {
-gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
expander arrow:dir(rtl) {
@@ -4836,7 +4838,10 @@ frame.keycap {
color: #555753;
padding: 3px 8px 3px 8px; }
-stackswitcher label {
+stackswitcher button.text-button, stackswitcher GtkScaleButton.button.text-button,
+stackswitcher GtkVolumeButton.button.text-button,
+stackswitcher .titlebar button.text-button.titlebutton,
+.titlebar stackswitcher button.text-button.titlebutton {
min-width: 100px; }
/* GTK NAMED COLORS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]