mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-20 01:54:01 +00:00
Use the volume slider if no balance exists
This commit is contained in:
parent
9a9231c458
commit
62e6db2939
1 changed files with 7 additions and 1 deletions
|
|
@ -77,6 +77,12 @@ class ClipPaths extends React.Component {
|
|||
}
|
||||
}
|
||||
|
||||
const FALLBACKS = {
|
||||
MAIN_BALANCE_BACKGROUND: "MAIN_VOLUME_BACKGROUND",
|
||||
MAIN_BALANCE_THUMB: "MAIN_VOLUME_THUMB",
|
||||
MAIN_BALANCE_THUMB_ACTIVE: "MAIN_VOLUME_THUMB_SELECTED"
|
||||
};
|
||||
|
||||
const Skin = props => {
|
||||
const { skinImages, skinCursors, skinGenLetterWidths } = props;
|
||||
if (!skinImages || !skinCursors) {
|
||||
|
|
@ -84,7 +90,7 @@ const Skin = props => {
|
|||
}
|
||||
const cssRules = [];
|
||||
Object.keys(imageSelectors).forEach(imageName => {
|
||||
const imageUrl = skinImages[imageName];
|
||||
const imageUrl = skinImages[imageName] || skinImages[FALLBACKS[imageName]];
|
||||
if (imageUrl) {
|
||||
imageSelectors[imageName].forEach(selector => {
|
||||
cssRules.push(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue