Settings Tab: replaced Tab IDs by a QML enum

This commit is contained in:
quadbyte 2025-08-14 07:42:03 -04:00
parent 71433c7807
commit 2a7810c17c
9 changed files with 36 additions and 42 deletions

View file

@ -4,7 +4,7 @@ import qs.Modules.Lockscreen
Item {
id: root
// Reference to the lockscreen component
property var lockscreen: null

View file

@ -7,6 +7,21 @@ pragma Singleton
Singleton {
id: root
// Our tabs used in the UI, needs to be defined in a Singleton so they can be accessed anywhere
enum Tab {
General,
Bar,
TimeWeather,
ScreenRecorder,
Network,
Audio,
Display,
Wallpaper,
WallpaperSelector,
//Misc,
About
}
// Define our app directories
// Default config directory: ~/.config/noctalia
// Default cache directory: ~/.cache/noctalia