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
This commit is contained in:
Owen W. Taylor 2009-09-30 09:50:37 -04:00
parent 3abe92d15d
commit 0a187b7222
2 changed files with 5 additions and 5 deletions

View File

@ -27,14 +27,14 @@ update_size();
let button; let button;
button = new St.Button ({ label: 'Smaller' }); button = new St.Button ({ label: 'Smaller', style_class: 'push-button' });
hbox.add (button); hbox.add (button);
button.connect('clicked', function() { button.connect('clicked', function() {
size /= 1.2; size /= 1.2;
update_size (); update_size ();
}); });
button = new St.Button ({ label: 'Bigger' }); button = new St.Button ({ label: 'Bigger', style_class: 'push-button' });
hbox.add (button); hbox.add (button);
button.connect('clicked', function() { button.connect('clicked', function() {
size *= 1.2; size *= 1.2;

View File

@ -37,17 +37,17 @@ stage {
border-image: url('border-image.png') 16; border-image: url('border-image.png') 16;
} }
StButton { .push-button {
background: #eeddbb; background: #eeddbb;
border: 1px solid black; border: 1px solid black;
border-radius: 8px; border-radius: 8px;
padding: 5px; padding: 5px;
} }
StButton:hover { .push-button:hover {
background: #ffeecc; background: #ffeecc;
} }
StButton:active { .push-button:active {
background: #ccbb99; background: #ccbb99;
} }