Compare commits
2 commits
2aa72accda
...
823dd66719
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
823dd66719 | ||
|
|
617931a115 |
2 changed files with 15 additions and 9 deletions
|
|
@ -3,6 +3,7 @@ pragma ComponentBehavior: Bound
|
||||||
import qs.config
|
import qs.config
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Controls
|
import QtQuick.Controls
|
||||||
|
import Quickshell.Widgets
|
||||||
|
|
||||||
ComboBox {
|
ComboBox {
|
||||||
id: control
|
id: control
|
||||||
|
|
@ -41,7 +42,6 @@ ComboBox {
|
||||||
duration: Styling.animations.speed.fast
|
duration: Styling.animations.speed.fast
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
radius: Styling.theme.radiusSelector
|
|
||||||
}
|
}
|
||||||
highlighted: control.highlightedIndex === index
|
highlighted: control.highlightedIndex === index
|
||||||
}
|
}
|
||||||
|
|
@ -81,7 +81,10 @@ ComboBox {
|
||||||
height: Math.min(contentItem.implicitHeight, control.Window.height - topMargin - bottomMargin)
|
height: Math.min(contentItem.implicitHeight, control.Window.height - topMargin - bottomMargin)
|
||||||
padding: 1
|
padding: 1
|
||||||
|
|
||||||
contentItem: ListView {
|
contentItem: ClippingWrapperRectangle {
|
||||||
|
radius: Styling.theme.radiusField
|
||||||
|
|
||||||
|
ListView {
|
||||||
clip: true
|
clip: true
|
||||||
implicitHeight: contentHeight + 2
|
implicitHeight: contentHeight + 2
|
||||||
model: control.popup.visible ? control.delegateModel : null
|
model: control.popup.visible ? control.delegateModel : null
|
||||||
|
|
@ -89,6 +92,7 @@ ComboBox {
|
||||||
|
|
||||||
ScrollIndicator.vertical: ScrollIndicator {}
|
ScrollIndicator.vertical: ScrollIndicator {}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
color: palette.window
|
color: palette.window
|
||||||
|
|
@ -97,8 +101,7 @@ ComboBox {
|
||||||
duration: Styling.animations.speed.fast
|
duration: Styling.animations.speed.fast
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
bottomLeftRadius: Styling.theme.radiusField
|
radius: Styling.theme.radiusField
|
||||||
bottomRightRadius: Styling.theme.radiusField
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,9 @@ StackView {
|
||||||
Image {}
|
Image {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Component.onCompleted: stack.replace(img, {
|
||||||
|
"source": stack.wallpaper
|
||||||
|
})
|
||||||
onWallpaperChanged: stack.replace(img, {
|
onWallpaperChanged: stack.replace(img, {
|
||||||
"source": stack.wallpaper
|
"source": stack.wallpaper
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue