mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-28 20:40:39 +00:00
Fix small cursor bugs
This commit is contained in:
parent
0e11291dc5
commit
077fa94b3a
8 changed files with 10 additions and 5 deletions
|
|
@ -19,7 +19,6 @@
|
|||
padding: 0;
|
||||
margin: 0;
|
||||
border: 1px solid #a7a394;
|
||||
cursor: default;
|
||||
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -65,7 +65,6 @@
|
|||
#webamp .playlist-tracks {
|
||||
display: flex;
|
||||
flex: 1 0 auto;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
#webamp .playlist-tracks .track-cell {
|
||||
|
|
|
|||
|
|
@ -117,7 +117,13 @@ const Skin = props => {
|
|||
if (cursorUrl) {
|
||||
cursorSelectors[cursorName].forEach(selector => {
|
||||
cssRules.push(
|
||||
`${CSS_PREFIX} ${selector} {cursor: url(${cursorUrl}), auto}`
|
||||
`${
|
||||
// TODO: Fix this hack
|
||||
// Maybe our CSS name spacing should be based on some other class/id
|
||||
// than the one we use for defining the main div.
|
||||
// That way it could be shared by both the player and the context menu.
|
||||
selector.startsWith("#webamp-context-menu") ? "" : CSS_PREFIX
|
||||
} ${selector} {cursor: url(${cursorUrl}), auto}`
|
||||
);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -337,11 +337,12 @@ export const cursorSelectors = {
|
|||
"#equalizer-window.shade",
|
||||
"#equalizer-window.shade input"
|
||||
],
|
||||
MAINMENU: ["#main-window #option"],
|
||||
MAINMENU: ["#main-window #option", "#webamp-context-menu .context-menu"],
|
||||
MIN: ["#main-window #minimize"],
|
||||
NORMAL: [
|
||||
// Use this as the default cursor.
|
||||
".window",
|
||||
".window input", // Otherwise
|
||||
"#main-window",
|
||||
"#main-window.shade #title-bar"
|
||||
],
|
||||
|
|
@ -367,7 +368,7 @@ export const cursorSelectors = {
|
|||
PVSCROLL: ["#playlist-window .playlist-scrollbar"],
|
||||
SONGNAME: ["#main-window #marquee"],
|
||||
TITLEBAR: ["#main-window #title-bar"],
|
||||
VOLBAL: ["#volume", "#balance"],
|
||||
VOLBAL: ["#volume", "#volume input", "#balance"],
|
||||
WINBUT: ["#main-window #shade"],
|
||||
WSNORMAL: ["#main-window.shade #title-bar"],
|
||||
WSPOSBAR: ["#main-window.shade #position"]
|
||||
|
|
|
|||
Binary file not shown.
BIN
skins/base-2.91-png/PTBAR.CUR
Normal file
BIN
skins/base-2.91-png/PTBAR.CUR
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 766 B |
Binary file not shown.
BIN
skins/base-2.91/PTBAR.CUR
Normal file
BIN
skins/base-2.91/PTBAR.CUR
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 766 B |
Loading…
Add table
Add a link
Reference in a new issue