63 lines
1.6 KiB
QML
63 lines
1.6 KiB
QML
pragma Singleton
|
|
|
|
import QtQuick
|
|
import Quickshell
|
|
import Quickshell.Io
|
|
|
|
Singleton {
|
|
id: timeRoot
|
|
|
|
readonly property int barSize: 35
|
|
readonly property double heightGaps: barSize * 0.8
|
|
|
|
// Colors
|
|
FileView {
|
|
id: walColors
|
|
path: Qt.resolvedUrl("/home/amaro/.cache/wal/colors")
|
|
blockLoading: true
|
|
watchChanges: true
|
|
onFileChanged: this.reload()
|
|
}
|
|
readonly property var walColorsText: walColors.text().split('\n')
|
|
|
|
property double barOpacity: 0.2
|
|
property color backgroudColor: walColorsText[0]
|
|
property color color2: walColorsText[1]
|
|
property color color3: walColorsText[2]
|
|
property color color4: walColorsText[3]
|
|
property color color5: walColorsText[4]
|
|
property color color6: walColorsText[5]
|
|
property color color7: walColorsText[6]
|
|
property color foregroundColor: walColorsText[7]
|
|
property color backgroudColorBright: walColorsText[8]
|
|
property color color2Bright: walColorsText[9]
|
|
property color color3Bright: walColorsText[10]
|
|
property color color4Bright: walColorsText[11]
|
|
property color color5Bright: walColorsText[12]
|
|
property color color6Bright: walColorsText[13]
|
|
property color color7Bright: walColorsText[14]
|
|
property color foregroundColorBright: walColorsText[15]
|
|
|
|
readonly property string textColor: foregroundColor
|
|
// background "#0e1721"
|
|
// color2 "#463e44"
|
|
// color3 "#7b4834"
|
|
// color4 "#735148"
|
|
// color5 "#896451"
|
|
// color6 "#9d7057"
|
|
// color7 "#595563"
|
|
// foreground "#91959b"
|
|
// "#5d6772"
|
|
// "#5E535B"
|
|
// "#A56046"
|
|
// "#9A6C60"
|
|
// "#B7866C"
|
|
// "#D29674"
|
|
// "#777285"
|
|
// "#c2c5c7"
|
|
|
|
|
|
|
|
|
|
}
|