From 0a187b7222a0d79e4a17f75689dc22bda546542e Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Wed, 30 Sep 2009 09:50:37 -0400 Subject: [PATCH] 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 fa23b1f70..e06082cab 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 36e1b21fd..d1005eeb3 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; }