mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-28 12:36:35 +00:00
Fix doubled button press state
This commit is contained in:
parent
d71eee42de
commit
b616ba3de2
3 changed files with 11 additions and 7 deletions
2
skin.js
2
skin.js
|
|
@ -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",
|
||||
|
|
|
|||
15
winamp.css
15
winamp.css
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -104,6 +104,7 @@ function Winamp () {
|
|||
}
|
||||
|
||||
this.nodes.buttonD.onclick = function() {
|
||||
this.classList.toggle('selected');
|
||||
self.nodes.winamp.classList.toggle('doubled');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue