17 lines
599 B
QML
17 lines
599 B
QML
import Quickshell
|
|
import QtQuick
|
|
import qs
|
|
import qs.settings
|
|
|
|
Rectangle {
|
|
id: root
|
|
readonly property color barColor: Colors.c.base00
|
|
property real lightnessBoost: 0.07
|
|
property real activeBoost: 0.06
|
|
property bool active: false
|
|
readonly property real baseLightness: Math.min(1.0, barColor.hslLightness + lightnessBoost)
|
|
property color base: Qt.hsla(barColor.hslHue, barColor.hslSaturation, active ? Math.min(1.0, baseLightness + activeBoost) : baseLightness)
|
|
color: base
|
|
implicitHeight: Config.cfg.bar.height - 8
|
|
radius: Config.cfg.appearance.rounding - 4
|
|
}
|