feat: Add music and sysinfo to top bar (togglable) - also a bunch of misc fixes
This commit is contained in:
parent
e1caf737fe
commit
b4697235c0
29 changed files with 795 additions and 399 deletions
|
|
@ -14,7 +14,7 @@ QtObject {
|
|||
}
|
||||
property string weatherCity: "Dinslaken"
|
||||
property string profileImage: "/home/" + Quickshell.env("USER") + "/.face"
|
||||
property bool useFahrenheit
|
||||
property bool useFahrenheit: false
|
||||
property string wallpaperFolder: "/usr/share/wallpapers"
|
||||
property string currentWallpaper: ""
|
||||
property string videoPath: "~/Videos/"
|
||||
|
|
@ -22,6 +22,8 @@ QtObject {
|
|||
property bool useSWWW: false
|
||||
property bool randomWallpaper: false
|
||||
property bool useWallpaperTheme: false
|
||||
property bool showSystemInfoInBar: true
|
||||
property bool showMediaInBar: false
|
||||
property int wallpaperInterval: 300
|
||||
property string wallpaperResize: "crop"
|
||||
property int transitionFps: 60
|
||||
|
|
@ -43,6 +45,10 @@ QtObject {
|
|||
videoPath = settings.value("videoPath", videoPath)
|
||||
let showActiveWindowIconFlag = settings.value("showActiveWindowIconFlag", "false")
|
||||
showActiveWindowIcon = showActiveWindowIconFlag === "true"
|
||||
let showSystemInfoInBarFlag = settings.value("showSystemInfoInBarFlag", "true")
|
||||
showSystemInfoInBar = showSystemInfoInBarFlag === "true"
|
||||
let showMediaInBarFlag = settings.value("showMediaInBarFlag", "true")
|
||||
showMediaInBar = showMediaInBarFlag === "true"
|
||||
let useSWWWFlag = settings.value("useSWWWFlag", "false")
|
||||
useSWWW = useSWWWFlag === "true"
|
||||
let randomWallpaperFlag = settings.value("randomWallpaperFlag", "false")
|
||||
|
|
@ -54,6 +60,7 @@ QtObject {
|
|||
transitionFps = settings.value("transitionFps", transitionFps)
|
||||
transitionType = settings.value("transitionType", transitionType)
|
||||
transitionDuration = settings.value("transitionDuration", transitionDuration)
|
||||
|
||||
WallpaperManager.setCurrentWallpaper(currentWallpaper, true);
|
||||
}
|
||||
|
||||
|
|
@ -65,6 +72,8 @@ QtObject {
|
|||
settings.setValue("currentWallpaper", currentWallpaper)
|
||||
settings.setValue("videoPath", videoPath)
|
||||
settings.setValue("showActiveWindowIconFlag", showActiveWindowIcon ? "true" : "false")
|
||||
settings.setValue("showSystemInfoInBarFlag", showSystemInfoInBar ? "true" : "false")
|
||||
settings.setValue("showMediaInBarFlag", showMediaInBar ? "true" : "false")
|
||||
settings.setValue("useSWWWFlag", useSWWW ? "true" : "false")
|
||||
settings.setValue("randomWallpaperFlag", randomWallpaper ? "true" : "false")
|
||||
settings.setValue("useWallpaperThemeFlag", useWallpaperTheme ? "true" : "false")
|
||||
|
|
|
|||
|
|
@ -23,6 +23,6 @@
|
|||
"onAccent": "#0E0F10",
|
||||
"outline": "#565758",
|
||||
|
||||
"shadow": "#0E0F10B3",
|
||||
"overlay": "#0E0F10CC"
|
||||
"shadow": "#0E0F10",
|
||||
"overlay": "#0E0F10"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,6 +6,10 @@ import Quickshell.Io
|
|||
|
||||
Singleton {
|
||||
id: root
|
||||
|
||||
function applyOpacity(color, opacity) {
|
||||
return color.replace("#", "#" + opacity);
|
||||
}
|
||||
|
||||
// FileView to load theme data from JSON file
|
||||
FileView {
|
||||
|
|
@ -50,8 +54,8 @@ Singleton {
|
|||
property string outline: "#44485A"
|
||||
|
||||
// Shadows & Overlays
|
||||
property string shadow: "#000000B3"
|
||||
property string overlay: "#11121ACC"
|
||||
property string shadow: "#000000"
|
||||
property string overlay: "#11121A"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -87,8 +91,8 @@ Singleton {
|
|||
property color outline: themeData.outline
|
||||
|
||||
// Shadows & Overlays
|
||||
property color shadow: themeData.shadow
|
||||
property color overlay: themeData.overlay
|
||||
property color shadow: applyOpacity(themeData.shadow, "B3")
|
||||
property color overlay: applyOpacity(themeData.overlay, "66")
|
||||
|
||||
// Font Properties
|
||||
property string fontFamily: "Roboto" // Family for all text
|
||||
|
|
@ -98,3 +102,4 @@ Singleton {
|
|||
property int fontSizeSmall: 14 // Small text like clock, labels
|
||||
property int fontSizeCaption: 12 // Captions and fine print
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue