mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Replaced all NWidgets callback by proper signals
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ ColumnLayout {
|
||||
NTextInput {
|
||||
text: Settings.data.screenRecorder.directory
|
||||
Layout.fillWidth: true
|
||||
onEditingFinished: function () {
|
||||
onEditingFinished: {
|
||||
Settings.data.screenRecorder.directory = text
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ ColumnLayout {
|
||||
NTextInput {
|
||||
text: Settings.data.wallpaper.directory
|
||||
Layout.fillWidth: true
|
||||
onEditingFinished: function () {
|
||||
onEditingFinished: {
|
||||
Settings.data.wallpaper.directory = text
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user