[gnome-shell/shell-toolkit] testcommon.css: Don't theme all buttons



commit 0a187b7222a0d79e4a17f75689dc22bda546542e
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Wed Sep 30 09:50:37 2009 -0400

    testcommon.css: Don't theme all buttons
    
    StButton is used for many things - scrollbar steppers, etc. Theming
    all buttons to look like push-buttons breaks that. So in testcommon.css
    just theme a .push-button class to look vaguely button-like.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=596432

 tests/interactive/inline-style.js |    4 ++--
 tests/testcommon/test.css         |    6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/tests/interactive/inline-style.js b/tests/interactive/inline-style.js
index fa23b1f..e06082c 100644
--- a/tests/interactive/inline-style.js
+++ b/tests/interactive/inline-style.js
@@ -27,14 +27,14 @@ update_size();
 
 let button;
 
-button = new St.Button ({ label: 'Smaller' });
+button = new St.Button ({ label: 'Smaller', style_class: 'push-button' });
 hbox.add (button);
 button.connect('clicked', function() {
                    size /= 1.2;
                    update_size ();
                });
 
-button = new St.Button ({ label: 'Bigger' });
+button = new St.Button ({ label: 'Bigger', style_class: 'push-button' });
 hbox.add (button);
 button.connect('clicked', function() {
                    size *= 1.2;
diff --git a/tests/testcommon/test.css b/tests/testcommon/test.css
index 36e1b21..d1005ee 100644
--- a/tests/testcommon/test.css
+++ b/tests/testcommon/test.css
@@ -37,17 +37,17 @@ stage {
     border-image: url('border-image.png') 16;
 }
 
-StButton {
+.push-button {
     background: #eeddbb;
     border: 1px solid black;
     border-radius: 8px;
     padding: 5px;
 }
 
-StButton:hover {
+.push-button:hover {
     background: #ffeecc;
 }
 
-StButton:active {
+.push-button:active {
     background: #ccbb99;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]