Fix doubled button press state

This commit is contained in:
Jordan Eldredge 2014-12-05 21:04:37 -08:00
parent d71eee42de
commit b616ba3de2
3 changed files with 11 additions and 7 deletions

View file

@ -16,6 +16,8 @@ SkinManager = {
"#title-bar #shade": "TITLEBAR.BMP",
"#title-bar #close": "TITLEBAR.BMP",
".status #clutter-bar": "TITLEBAR.BMP",
".status #clutter-bar div:active": "TITLEBAR.BMP",
".status #clutter-bar div.selected": "TITLEBAR.BMP",
".status #play-pause": "PLAYPAUS.BMP",
".play .status #work-indicator": "PLAYPAUS.BMP",
".status #time #minus-sign": "NUMBERS.BMP",

View file

@ -139,10 +139,6 @@ body {
background-position: -312px 0;
}
.doubled .status #clutter-bar {
background-position: -328px -44px;
}
#clutter-bar div {
position: absolute;
height: 7px;
@ -162,11 +158,16 @@ body {
}
#clutter-bar #button-d {
top: 25px;
}
#clutter-bar #button-v {
top: 32px;
}
/* Other buttons could follow this model */
#clutter-bar #button-d:active,
#clutter-bar #button-d.selected {
background-position: -328px -69px;
height: 8px;
}
#clutter-bar #button-v {
top: 33px;
}
.status #play-pause {
position: absolute;

View file

@ -104,6 +104,7 @@ function Winamp () {
}
this.nodes.buttonD.onclick = function() {
this.classList.toggle('selected');
self.nodes.winamp.classList.toggle('doubled');
}