Added floaty bar mode, made sidebar texts and Crypto.qml module bold
This commit is contained in:
20
bar/Bar.qml
20
bar/Bar.qml
@@ -12,6 +12,9 @@ PanelWindow {
|
||||
|
||||
readonly property var cfg: Cfg.Config
|
||||
|
||||
readonly property real barEdgePad: cfg.frameVariant === "bar" ? (isTop ? cfg.frameBarPadTop : cfg.frameBarPadBottom) : 0
|
||||
readonly property real barRoundPad: cfg.frameVariant === "bar" ? Math.min(cfg.radius, cfg.barHeight / 2) : 0
|
||||
|
||||
color: "transparent"
|
||||
anchors {
|
||||
top: isTop
|
||||
@@ -19,15 +22,21 @@ PanelWindow {
|
||||
left: true
|
||||
right: true
|
||||
}
|
||||
implicitHeight: cfg.barHeight
|
||||
implicitHeight: cfg.barHeight + barEdgePad
|
||||
|
||||
WlrLayershell.layer: WlrLayer.Top
|
||||
WlrLayershell.namespace: "main-shell-bar"
|
||||
WlrLayershell.exclusiveZone: cfg.barHeight
|
||||
WlrLayershell.exclusiveZone: cfg.barHeight + barEdgePad
|
||||
|
||||
Item {
|
||||
id: animatedWrapper
|
||||
anchors.fill: parent
|
||||
anchors {
|
||||
fill: parent
|
||||
topMargin: isTop ? barEdgePad : 0
|
||||
bottomMargin: !isTop ? barEdgePad : 0
|
||||
leftMargin: 0
|
||||
rightMargin: 0
|
||||
}
|
||||
|
||||
opacity: 0
|
||||
scale: 0.95
|
||||
@@ -66,8 +75,8 @@ PanelWindow {
|
||||
Item {
|
||||
id: barContent
|
||||
anchors.fill: parent
|
||||
anchors.leftMargin: cfg.margin
|
||||
anchors.rightMargin: cfg.margin
|
||||
anchors.leftMargin: cfg.margin + barRoundPad
|
||||
anchors.rightMargin: cfg.margin + barRoundPad
|
||||
|
||||
function bindModule(item, side) {
|
||||
item.height = Qt.binding(() => barContent.height - 12)
|
||||
@@ -78,6 +87,7 @@ PanelWindow {
|
||||
"targetScreen": barWindow.modelData,
|
||||
"barHeight": cfg.barHeight,
|
||||
"barMargin": cfg.margin,
|
||||
"barEdgePad": barEdgePad,
|
||||
"barSide": side,
|
||||
"menuWindow": barWindow
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user