48 lines
1.7 KiB
QML
48 lines
1.7 KiB
QML
pragma Singleton
|
|
|
|
import QtQuick
|
|
import Quickshell
|
|
import Quickshell.Io
|
|
|
|
Singleton {
|
|
id: root
|
|
|
|
readonly property int barSize: 35
|
|
readonly property double heightGaps: barSize * 0.8
|
|
readonly property string fontFamily: "Noto Sans"
|
|
readonly property string fontFamilyMono: "SauceCodePro Nerd Font Mono"
|
|
readonly property int pixelSize: 14
|
|
readonly property int gaps: 5
|
|
readonly property int animationDuration: 200
|
|
|
|
// Colors
|
|
FileView {
|
|
id: walColors
|
|
path: Qt.resolvedUrl(Quickshell.env("XDG_CACHE_HOME") + "/wal/colors")
|
|
blockLoading: true
|
|
watchChanges: true
|
|
onFileChanged: this.reload()
|
|
}
|
|
readonly property var walColorsText: walColors.text().split('\n')
|
|
|
|
readonly property double barOpacity: 0.2
|
|
readonly property color backgroudColor: walColorsText[0]
|
|
readonly property color color2: walColorsText[1]
|
|
readonly property color color3: walColorsText[2]
|
|
readonly property color color4: walColorsText[3]
|
|
readonly property color color5: walColorsText[4]
|
|
readonly property color color6: walColorsText[5]
|
|
readonly property color color7: walColorsText[6]
|
|
readonly property color foregroundColor: walColorsText[7]
|
|
readonly property color backgroudColorBright: walColorsText[8]
|
|
readonly property color color2Bright: walColorsText[9]
|
|
readonly property color color3Bright: walColorsText[10]
|
|
readonly property color color4Bright: walColorsText[11]
|
|
readonly property color color5Bright: walColorsText[12]
|
|
readonly property color color6Bright: walColorsText[13]
|
|
readonly property color color7Bright: walColorsText[14]
|
|
readonly property color foregroundColorBright: walColorsText[15]
|
|
|
|
readonly property color textColor: foregroundColorBright
|
|
}
|