adds files & wallpaper switcher toolbar
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
// WallpaperPopup.qml - A popup for browsing and setting wallpapers from /usr/share/wallpapers
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import Quickshell.Wayland
|
||||
@@ -116,9 +117,15 @@ PanelWindow {
|
||||
|
||||
GridView {
|
||||
id: grid
|
||||
anchors { fill: parent; margins: 8 }
|
||||
anchors {
|
||||
fill: parent
|
||||
leftMargin: 8
|
||||
topMargin: 8
|
||||
rightMargin: 8
|
||||
bottomMargin: 8
|
||||
}
|
||||
clip: true
|
||||
cellWidth: Math.floor(width / 2)
|
||||
cellWidth: Math.floor((width - 12) / 2)
|
||||
cellHeight: 104
|
||||
focus: true
|
||||
keyNavigationEnabled: true
|
||||
@@ -136,6 +143,30 @@ PanelWindow {
|
||||
|
||||
model: wallpaperModel
|
||||
|
||||
ScrollBar.vertical: ScrollBar {
|
||||
policy: ScrollBar.AsNeeded
|
||||
width: 12
|
||||
anchors {
|
||||
rightMargin: 0
|
||||
topMargin: 4
|
||||
bottomMargin: 4
|
||||
}
|
||||
|
||||
background: Rectangle {
|
||||
implicitWidth: 12
|
||||
radius: 6
|
||||
color: Theme.accent ?? Theme.pillText
|
||||
opacity: 0.1
|
||||
}
|
||||
|
||||
contentItem: Rectangle {
|
||||
implicitWidth: 6
|
||||
radius: 3
|
||||
color: Theme.accent ?? Theme.pillText
|
||||
opacity: parent.pressed ? 1.0 : 0.7
|
||||
}
|
||||
}
|
||||
|
||||
highlight: Rectangle {
|
||||
z: 2
|
||||
radius: Theme.radius + 1
|
||||
|
||||
Reference in New Issue
Block a user