mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 06:13:09 +00:00
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:
parent
9bf7b70d2b
commit
6a1631023e
2 changed files with 5 additions and 9 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue