quickshell: offset calendar below bar, match opacity
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
2c4a7a155e
commit
bebd19bbff
1 changed files with 7 additions and 5 deletions
|
|
@ -830,9 +830,11 @@ in
|
||||||
// Calendar popup
|
// Calendar popup
|
||||||
PopupWindow {
|
PopupWindow {
|
||||||
id: calPopup
|
id: calPopup
|
||||||
anchor.item: clockText
|
anchor.window: bar
|
||||||
anchor.edges: Edges.Bottom
|
anchor.rect.x: bar.width / 2 - (fullWidth + 4) / 2
|
||||||
anchor.gravity: Edges.Bottom
|
anchor.rect.y: bar.height
|
||||||
|
anchor.edges: Edges.Top | Edges.Left
|
||||||
|
anchor.gravity: Edges.Bottom | Edges.Right
|
||||||
anchor.adjustment: PopupAdjustment.Slide
|
anchor.adjustment: PopupAdjustment.Slide
|
||||||
grabFocus: true
|
grabFocus: true
|
||||||
visible: false
|
visible: false
|
||||||
|
|
@ -857,10 +859,10 @@ in
|
||||||
id: calContent
|
id: calContent
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.topMargin: 1
|
anchors.topMargin: 0
|
||||||
width: calPopup.open ? calPopup.fullWidth : calPopup.fullWidth
|
width: calPopup.open ? calPopup.fullWidth : calPopup.fullWidth
|
||||||
height: calPopup.open ? calPopup.fullHeight : 0
|
height: calPopup.open ? calPopup.fullHeight : 0
|
||||||
color: "#${c.base00}"
|
color: "#D1${c.base00}"
|
||||||
border.width: 0
|
border.width: 0
|
||||||
radius: 8
|
radius: 8
|
||||||
topLeftRadius: 0
|
topLeftRadius: 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue