qmlformat + fix build
This commit is contained in:
parent
2ed3488453
commit
61abcddeeb
9 changed files with 140 additions and 130 deletions
|
|
@ -15,7 +15,7 @@ Singleton {
|
|||
property string colorsFile: Quickshell.env("NOCTALIA_COLORS_FILE")
|
||||
|| (settingsDir + "colors.json")
|
||||
property var data: settingAdapter
|
||||
|
||||
|
||||
// Needed to only have one NPanel loaded at a time.
|
||||
property var openPanel: null
|
||||
|
||||
|
|
@ -32,7 +32,6 @@ Singleton {
|
|||
// Qt.callLater(function () {
|
||||
// WallpaperManager.setCurrentWallpaper(settings.currentWallpaper, true);
|
||||
// })
|
||||
|
||||
id: settingFileView
|
||||
|
||||
path: settingsFile
|
||||
|
|
|
|||
|
|
@ -9,9 +9,9 @@ Singleton {
|
|||
|
||||
property var date: new Date()
|
||||
property string time: Settings.data.location.use12HourClock ? Qt.formatDateTime(
|
||||
date,
|
||||
"h:mm AP") : Qt.formatDateTime(
|
||||
date, "HH:mm")
|
||||
date,
|
||||
"h:mm AP") : Qt.formatDateTime(
|
||||
date, "HH:mm")
|
||||
property string dateString: {
|
||||
let now = date
|
||||
let dayName = now.toLocaleDateString(Qt.locale(), "ddd")
|
||||
|
|
|
|||
|
|
@ -69,8 +69,7 @@ Singleton {
|
|||
if (Settings.data.wallpaper.isRandom && !randomWallpaperTimer.running) {
|
||||
randomWallpaperTimer.start()
|
||||
setRandomWallpaper()
|
||||
} else if (!Settings.data.randomWallpaper
|
||||
&& randomWallpaperTimer.running) {
|
||||
} else if (!Settings.data.randomWallpaper && randomWallpaperTimer.running) {
|
||||
randomWallpaperTimer.stop()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue