mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 20:39:18 -08:00
feat: wheee
This commit is contained in:
parent
4be1b9f090
commit
d218e71e17
10 changed files with 250 additions and 164 deletions
|
|
@ -31,32 +31,37 @@ Item {
|
|||
|
||||
function get_color() {
|
||||
if (modelData.isUrgent) {
|
||||
return Settings.base0F
|
||||
return [Stylix.base08, Stylix.base00]
|
||||
}
|
||||
if (modelData.isFocused) {
|
||||
return Settings.base0E
|
||||
return [Stylix.base0F, Stylix.base00]
|
||||
}
|
||||
if (modelData.isActive) {
|
||||
return Settings.base0C
|
||||
return [Stylix.base0C, Stylix.base00]
|
||||
}
|
||||
if (modelData.activeWindowId > 0) {
|
||||
return Settings.base0F
|
||||
return [Stylix.base0D, Stylix.base00]
|
||||
}
|
||||
return Settings.lighterBg
|
||||
return [Stylix.base02, Stylix.base04]
|
||||
}
|
||||
|
||||
property var colors: get_color()
|
||||
property color bg: root.colors[0]
|
||||
property color fg: root.colors[1]
|
||||
|
||||
visible: isVisible
|
||||
implicitHeight: 25
|
||||
implicitWidth: gen_width()
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
color: get_color()
|
||||
color: bg
|
||||
radius: 5
|
||||
|
||||
Text {
|
||||
anchors.centerIn: parent
|
||||
color: Settings.defaultBg
|
||||
verticalAlignment: Text.AlignVCenter;
|
||||
color: fg
|
||||
text: gen_text()
|
||||
font.pixelSize: 20
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue