Add wallust support

This commit is contained in:
Ly-sec 2025-08-12 19:39:28 +02:00
commit 48f54c0b82
32 changed files with 257 additions and 245 deletions

View file

@ -116,4 +116,4 @@ Item {
Layout.fillHeight: true
}
}
}
}

View file

@ -84,7 +84,7 @@ ColumnLayout {
text: Settings.data.general.avatarImage
placeholderText: "/home/user/.face"
Layout.fillWidth: true
onEditingFinished: function () {
onEditingFinished: {
Settings.data.general.avatarImage = text
}
}

View file

@ -65,7 +65,7 @@ ColumnLayout {
NTextInput {
text: Settings.data.screenRecorder.directory
Layout.fillWidth: true
onEditingFinished: function () {
onEditingFinished: {
Settings.data.screenRecorder.directory = text
}
}
@ -324,4 +324,4 @@ ColumnLayout {
}
}
}
}
}

View file

@ -58,7 +58,7 @@ ColumnLayout {
text: Settings.data.location.name
placeholderText: "Enter city name"
Layout.fillWidth: true
onEditingFinished: function () {
onEditingFinished: {
Settings.data.location.name = text
}
}

View file

@ -70,7 +70,7 @@ ColumnLayout {
NTextInput {
text: Settings.data.wallpaper.directory
Layout.fillWidth: true
onEditingFinished: function () {
onEditingFinished: {
Settings.data.wallpaper.directory = text
}
}

View file

@ -83,9 +83,8 @@ Item {
}
NText {
text: Settings.data.wallpaper.swww.enabled ?
"Wallpapers will change with " + Settings.data.wallpaper.swww.transitionType + " transition" :
"Wallpapers will change instantly"
text: Settings.data.wallpaper.swww.enabled ? "Wallpapers will change with " + Settings.data.wallpaper.swww.transitionType
+ " transition" : "Wallpapers will change instantly"
color: Colors.textSecondary
font.pointSize: Style.fontSizeSmall * scaling
visible: Settings.data.wallpaper.swww.enabled
@ -128,13 +127,13 @@ Item {
anchors.fill: parent
clip: true
model: folderModel
// Fixed 5 items per row - more aggressive sizing
property int itemSize: Math.floor((width - leftMargin - rightMargin - (4 * Style.marginSmall * scaling)) / 5)
cellWidth: Math.floor((width - leftMargin - rightMargin) / 5)
cellHeight: Math.floor(itemSize * 0.67) + Style.marginSmall * scaling
leftMargin: Style.marginSmall * scaling
rightMargin: Style.marginSmall * scaling
topMargin: Style.marginSmall * scaling
@ -191,9 +190,11 @@ Item {
color: Colors.textPrimary
opacity: mouseArea.containsMouse ? 0.1 : 0
radius: parent.radius
Behavior on opacity {
NumberAnimation { duration: 150 }
NumberAnimation {
duration: 150
}
}
}
@ -249,4 +250,4 @@ Item {
}
}
}
}
}