Theme-aware status bar hover and remove dead nav panel code

Use Kirigami.Theme.textColor for the status bar hover overlay
so it works on both light and dark themes instead of hardcoded
white. Remove convergence-mode branches from the navigation
panel left action since it is hidden in convergence mode and
the code paths were unreachable.
This commit is contained in:
Marco Allegretti 2026-04-18 20:25:26 +02:00
parent 9bf7b70d2b
commit 6a1631023e
2 changed files with 5 additions and 9 deletions

View file

@ -92,7 +92,7 @@ Item {
// Hover highlight in convergence mode to indicate the bar is clickable
Rectangle {
anchors.fill: parent
color: Qt.rgba(1.0, 1.0, 1.0, 0.1)
color: Qt.rgba(Kirigami.Theme.textColor.r, Kirigami.Theme.textColor.g, Kirigami.Theme.textColor.b, 0.1)
visible: ShellSettings.Settings.convergenceModeEnabled && statusBarHover.hovered
}

View file

@ -75,20 +75,16 @@ MobileShell.NavigationPanel {
// ~~~~
// navigation panel actions
// toggle task switcher button (KWin Overview in convergence mode, mobile task switcher otherwise)
// toggle task switcher button
leftAction: MobileShell.NavigationPanelAction {
id: taskSwitcherAction
enabled: true
iconSource: ShellSettings.Settings.convergenceModeEnabled ? "view-grid-symbolic" : "mobile-task-switcher"
shrinkSize: ShellSettings.Settings.convergenceModeEnabled ? 0 : 4
iconSource: "mobile-task-switcher"
shrinkSize: 4
onTriggered: {
if (ShellSettings.Settings.convergenceModeEnabled) {
Plasmoid.triggerOverview();
} else {
Plasmoid.triggerTaskSwitcher();
}
Plasmoid.triggerTaskSwitcher();
}
}