WallpaperTab: fix width of NInputAction for individual wallpapers

NFilePicker: reverse grid/listview button
This commit is contained in:
Ly-sec
2025-09-21 21:32:57 +02:00
parent 385f4943ae
commit 3684c87f8c
2 changed files with 16 additions and 16 deletions
+15 -15
View File
@@ -72,27 +72,27 @@ ColumnLayout {
spacing: Style.marginM * scaling
Repeater {
model: Quickshell.screens || []
delegate: RowLayout {
delegate: ColumnLayout {
Layout.fillWidth: true
spacing: Style.marginS * scaling
NText {
text: (modelData.name || "Unknown")
color: Color.mPrimary
font.weight: Style.fontWeightBold
Layout.preferredWidth: 90 * scaling
}
NTextInput {
id: monitorPathInput
Layout.fillWidth: true
text: WallpaperService.getMonitorDirectory(modelData.name)
onEditingFinished: WallpaperService.setMonitorDirectory(modelData.name, text)
Layout.maximumWidth: 420 * scaling
font.pointSize: Style.fontSizeM * scaling
}
NIconButton {
icon: "folder-open"
tooltipText: "Browse for wallpaper folder"
baseSize: Style.baseWidgetSize * 0.8
Layout.alignment: Qt.AlignBottom
onClicked: {
NInputButton {
text: WallpaperService.getMonitorDirectory(modelData.name)
buttonIcon: "folder-open"
buttonTooltip: "Browse for wallpaper folder"
Layout.fillWidth: true
onInputEditingFinished: {
WallpaperService.setMonitorDirectory(modelData.name, text)
}
onButtonClicked: {
openMonitorFileManager(modelData.name)
}
}
+1 -1
View File
@@ -255,7 +255,7 @@ Popup {
}
NIconButton {
icon: filePickerPanel.viewMode ? "filepicker-layout-grid" : "filepicker-list"
icon: filePickerPanel.viewMode ? "filepicker-list" : "filepicker-layout-grid"
tooltipText: filePickerPanel.viewMode ? "List View" : "Grid View"
baseSize: Style.baseWidgetSize * 0.8
onClicked: filePickerPanel.viewMode = !filePickerPanel.viewMode