Initial commit implementing reveal on hover in fullscreen
C++ / fmt (pull_request) Successful in 5s
JS/TS / fmt (pull_request) Successful in 20s
JS/TS / lint (pull_request) Successful in 26s
Python / fmt (pull_request) Successful in 34s
Python / lint (pull_request) Successful in 32s
Python / test (pull_request) Successful in 59s
Python / typecheck (pull_request) Failing after 1m2s
C++ / build (pull_request) Successful in 1m50s
Rust / fmt (pull_request) Successful in 46s
Rust / build (pull_request) Successful in 1m40s
Python / buildcheck (pull_request) Successful in 2m27s
Rust / clippy (pull_request) Successful in 2m5s
C++ / clang-tidy (pull_request) Successful in 5m56s

This commit is contained in:
2026-08-12 01:35:23 +02:00
parent c29b91cd26
commit 439a14d29e
8 changed files with 65 additions and 15 deletions
+10 -9
View File
@@ -13,6 +13,7 @@ RowLayout {
id: root
required property bool fullscreen
required property bool isHovered
required property Wrapper popouts
required property ClipWrapper popoutsWrapper
required property ShellScreen screen
@@ -85,7 +86,7 @@ RowLayout {
delegate: EntryWrapper {
HyprsunsetWidget {
visible: !root.fullscreen
visible: !root.fullscreen || root.isHovered
}
}
}
@@ -104,7 +105,7 @@ RowLayout {
delegate: EntryWrapper {
Workspaces {
screen: root.screen
visible: !root.fullscreen
visible: !root.fullscreen || root.isHovered
}
}
}
@@ -116,7 +117,7 @@ RowLayout {
TrayIcons {
loader: root
popouts: root.popouts
visible: !root.fullscreen
visible: !root.fullscreen || root.isHovered
}
}
}
@@ -136,7 +137,7 @@ RowLayout {
delegate: EntryWrapper {
Resources {
visibilities: root.visibilities
visible: !root.fullscreen
visible: !root.fullscreen || root.isHovered
}
}
}
@@ -146,7 +147,7 @@ RowLayout {
delegate: EntryWrapper {
UpdatesWidget {
visible: !root.fullscreen
visible: !root.fullscreen || root.isHovered
}
}
}
@@ -158,7 +159,7 @@ RowLayout {
NotifBell {
popouts: root.popouts
visibilities: root.visibilities
visible: !root.fullscreen
visible: !root.fullscreen || root.isHovered
}
}
}
@@ -171,7 +172,7 @@ RowLayout {
loader: root
popouts: root.popouts
visibilities: root.visibilities
visible: !root.fullscreen
visible: !root.fullscreen || root.isHovered
}
}
}
@@ -182,7 +183,7 @@ RowLayout {
delegate: EntryWrapper {
WindowTitle {
bar: root
visible: !root.fullscreen
visible: !root.fullscreen || root.isHovered
}
}
}
@@ -201,7 +202,7 @@ RowLayout {
delegate: EntryWrapper {
MediaWidget {
visible: !root.fullscreen
visible: !root.fullscreen || root.isHovered
}
}
}
+2 -1
View File
@@ -23,7 +23,7 @@ Item {
required property Wrapper popouts
required property ClipWrapper popoutsWrapper
required property ShellScreen screen
readonly property bool shouldBeVisible: !fullscreen && (!Config.bar.autoHide || visibilities.bar || isHovered)
readonly property bool shouldBeVisible: (!fullscreen && (!Config.bar.autoHide || visibilities.bar)) || isHovered
readonly property int vPadding: 6
required property PersistentProperties visibilities
@@ -78,6 +78,7 @@ Item {
sourceComponent: Bar {
fullscreen: root.fullscreen
height: root.contentHeight
isHovered: root.isHovered
popouts: root.popouts
popoutsWrapper: root.popoutsWrapper
screen: root.screen
+22 -1
View File
@@ -25,7 +25,6 @@ PageBase {
ToggleRow {
checked: Config.bar.autoHide
first: true
last: true
settingAnchor: "bar-autohide"
subtext: qsTr("Hide the bar, reveal on hover")
text: qsTr("Auto hide")
@@ -33,6 +32,28 @@ PageBase {
onToggled: Config.bar.autoHide = checked
}
ToggleRow {
checked: Config.bar.fullscreenReveal
settingAnchor: "bar-fullscreen-reveal"
subtext: qsTr("Hover top edge to show bar in fullscreen")
text: qsTr("Reveal on edge")
onToggled: Config.bar.fullscreenReveal = checked
}
SpinRow {
from: 0
last: true
settingAnchor: "bar-reveal-delay"
stepSize: 100
subtext: qsTr("The delay before bar is revealed when cursor is at edge")
text: qsTr("Reveal delay")
to: 2000
value: Config.bar.revealDelay
onMoved: v => Config.bar.revealDelay = v
}
// Components
SectionHeader {
text: qsTr("Components")