mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-03 12:08:31 -04:00
launcher: add option to choose spotlight style on niri overview
(cherry picked from commit 3da19e5c15)
This commit is contained in:
@@ -322,9 +322,13 @@ DankPopout {
|
||||
DankTabBar {
|
||||
id: tabBar
|
||||
|
||||
// Effective visibility is false while the popout window is unmapped, so gating
|
||||
// height on `visible` collapses the bar between opens and resizes the surface
|
||||
// mid-animation. Gate on the model instead.
|
||||
readonly property bool hasTabs: (model?.length ?? 0) > 0
|
||||
width: parent.width
|
||||
height: visible ? 48 : 0
|
||||
visible: model.length > 0
|
||||
height: hasTabs ? 48 : 0
|
||||
visible: hasTabs
|
||||
currentIndex: root.currentTabIndex
|
||||
spacing: Theme.spacingS
|
||||
equalWidthTabs: true
|
||||
@@ -356,8 +360,8 @@ DankPopout {
|
||||
|
||||
Item {
|
||||
width: parent.width
|
||||
height: visible ? Theme.spacingXS : 0
|
||||
visible: tabBar.visible
|
||||
height: tabBar.hasTabs ? Theme.spacingXS : 0
|
||||
visible: tabBar.hasTabs
|
||||
}
|
||||
|
||||
Item {
|
||||
|
||||
@@ -223,8 +223,9 @@ Rectangle {
|
||||
Rectangle {
|
||||
id: dankWarning
|
||||
width: parent.width
|
||||
visible: CalendarService && CalendarService.dankNeedsLaunch
|
||||
height: visible ? Math.max(28, warningRow.implicitHeight) + Theme.spacingS : 0
|
||||
readonly property bool showWarning: CalendarService?.dankNeedsLaunch ?? false
|
||||
visible: showWarning
|
||||
height: showWarning ? Math.max(28, warningRow.implicitHeight) + Theme.spacingS : 0
|
||||
radius: Theme.cornerRadius
|
||||
color: Theme.warningHover
|
||||
border.color: Theme.withAlpha(Theme.warning, 0.35)
|
||||
|
||||
Reference in New Issue
Block a user