Refactor persistent settings (remove duplicates)
Change notification popup fallback color
This commit is contained in:
parent
1cb30757de
commit
ac456fa9a3
2 changed files with 6 additions and 8 deletions
|
|
@ -18,15 +18,13 @@ QtObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadSettings() {
|
function loadSettings() {
|
||||||
let wc = settings.value("weatherCity", "Dinslaken");
|
weatherCity = settings.value("weatherCity", weatherCity)
|
||||||
weatherCity = (wc !== undefined && wc !== null) ? wc : "Dinslaken";
|
profileImage = settings.value("profileImage", profileImage)
|
||||||
let pi = settings.value("profileImage", "https://cdn.discordapp.com/avatars/158005126638993408/de403f05fd7f74bb17e01a9b066a30fa?size=64");
|
|
||||||
profileImage = (pi !== undefined && pi !== null) ? pi : "https://cdn.discordapp.com/avatars/158005126638993408/de403f05fd7f74bb17e01a9b066a30fa?size=64";
|
|
||||||
let tempUnit = settings.value("weatherTempUnit", "celsius")
|
let tempUnit = settings.value("weatherTempUnit", "celsius")
|
||||||
useFahrenheit = (tempUnit === "fahrenheit")
|
useFahrenheit = (tempUnit === "fahrenheit")
|
||||||
wallpaperFolder = settings.value("wallpaperFolder", "/home/lysec/nixos/assets/wallpapers")
|
wallpaperFolder = settings.value("wallpaperFolder", wallpaperFolder)
|
||||||
currentWallpaper = settings.value("currentWallpaper", "")
|
currentWallpaper = settings.value("currentWallpaper", currentWallpaper)
|
||||||
videoPath = settings.value("videoPath", "/home/lysec/Videos")
|
videoPath = settings.value("videoPath", videoPath)
|
||||||
console.log("Loaded profileImage:", profileImage)
|
console.log("Loaded profileImage:", profileImage)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -157,7 +157,7 @@ PanelWindow {
|
||||||
text: model.appName ? model.appName.charAt(0).toUpperCase() : "?"
|
text: model.appName ? model.appName.charAt(0).toUpperCase() : "?"
|
||||||
font.pixelSize: 18
|
font.pixelSize: 18
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Theme.textPrimary
|
color: Theme.backgroundPrimary
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue