some clear-ups
This commit is contained in:
parent
bb2e49515d
commit
842f9b7058
2 changed files with 2 additions and 2 deletions
|
@ -535,7 +535,7 @@ export function getAccentColor() {
|
||||||
const hexColor = `#${toHex(r255)}${toHex(g255)}${toHex(b255)}`;
|
const hexColor = `#${toHex(r255)}${toHex(g255)}${toHex(b255)}`;
|
||||||
return hexColor;
|
return hexColor;
|
||||||
}
|
}
|
||||||
return undefined;
|
return "";
|
||||||
} else {
|
} else {
|
||||||
return `#${systemPreferences.getAccentColor?.() || ""}`;
|
return `#${systemPreferences.getAccentColor?.() || ""}`;
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,7 +48,7 @@ async function changeIcon(iconName, settings) {
|
||||||
return;
|
return;
|
||||||
case "invalid":
|
case "invalid":
|
||||||
Toasts.show({
|
Toasts.show({
|
||||||
message: "Please select a valid .png or .jpg image!",
|
message: "Please select a valid .png, .jpg or .svg image!",
|
||||||
id: Toasts.genId(),
|
id: Toasts.genId(),
|
||||||
type: Toasts.Type.FAILURE
|
type: Toasts.Type.FAILURE
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue