4040 property bool useTransparentForeground: false
4141 property bool transparent: false
4242 property bool centerSectionHovered: false
43+ property bool centerSectionRevealHeld: false
44+ property bool centerHoverRevealSuppressed: false
4345 property int barConfigSerial: 0
4446 property string position: " top"
4547 // Resolves through fontconfig at paint time (Style.font.family defaults
@@ -374,6 +376,22 @@ Item {
374376
375377 Component .onCompleted : applyBarConfig ()
376378
379+ function setCenterSectionHovered (hovered ) {
380+ centerSectionHovered = hovered
381+ if (hovered) {
382+ centerSectionRevealTimer .stop ()
383+ centerSectionRevealHeld = true
384+ } else {
385+ centerSectionRevealTimer .restart ()
386+ }
387+ }
388+
389+ Timer {
390+ id: centerSectionRevealTimer
391+ interval: 120
392+ onTriggered: root .centerSectionRevealHeld = root .centerSectionHovered
393+ }
394+
377395 function run (command ) {
378396 if (! command) return
379397
@@ -970,7 +988,7 @@ Item {
970988 CenterGestureArea { anchors .fill : parent }
971989
972990 HoverHandler {
973- onHoveredChanged: root .centerSectionHovered = hovered
991+ onHoveredChanged: root .setCenterSectionHovered ( hovered)
974992 }
975993
976994 ModuleList {
@@ -1001,7 +1019,7 @@ Item {
10011019
10021020 visible: centerRoot .hasAnchor && centerAnchorModule .moduleName === " omarchy.clock"
10031021 clockHovered: centerAnchorModule .hovered
1004- centerHovered: root .centerSectionHovered
1022+ centerHovered: root .centerSectionRevealHeld && ! root . centerHoverRevealSuppressed
10051023 anchors .right : centerAnchorModule .left
10061024 anchors .verticalCenter : centerAnchorModule .verticalCenter
10071025 }
@@ -1025,7 +1043,7 @@ Item {
10251043 CenterGestureArea { anchors .fill : parent }
10261044
10271045 HoverHandler {
1028- onHoveredChanged: root .centerSectionHovered = hovered
1046+ onHoveredChanged: root .setCenterSectionHovered ( hovered)
10291047 }
10301048
10311049 ModuleList {
@@ -1056,7 +1074,7 @@ Item {
10561074
10571075 visible: centerRoot .hasAnchor && centerAnchorModule .moduleName === " omarchy.clock"
10581076 clockHovered: centerAnchorModule .hovered
1059- centerHovered: root .centerSectionHovered
1077+ centerHovered: root .centerSectionRevealHeld && ! root . centerHoverRevealSuppressed
10601078 anchors .bottom : centerAnchorModule .top
10611079 anchors .horizontalCenter : centerAnchorModule .horizontalCenter
10621080 }
@@ -1098,13 +1116,8 @@ Item {
10981116 implicitHeight: button .implicitHeight
10991117 width: implicitWidth
11001118 height: implicitHeight
1101- opacity: revealed ? 1.0 : 0
11021119 z: 500
11031120
1104- Behavior on opacity {
1105- NumberAnimation { duration: 120 ; easing .type : Easing .OutCubic }
1106- }
1107-
11081121 HoverHandler { id: controlHover }
11091122
11101123 Component .onCompleted : root .registerConfigControl (configControl)
0 commit comments