Add wallust support
This commit is contained in:
commit
48f54c0b82
32 changed files with 257 additions and 245 deletions
|
|
@ -8,10 +8,11 @@ Variants {
|
|||
|
||||
delegate: PanelWindow {
|
||||
required property ShellScreen modelData
|
||||
property string wallpaperSource: Wallpapers.currentWallpaper !== "" && !Settings.data.wallpaper.swww.enabled ? Wallpapers.currentWallpaper : ""
|
||||
property string wallpaperSource: Wallpapers.currentWallpaper !== ""
|
||||
&& !Settings.data.wallpaper.swww.enabled ? Wallpapers.currentWallpaper : ""
|
||||
|
||||
visible: wallpaperSource !== "" && !Settings.data.wallpaper.swww.enabled
|
||||
|
||||
|
||||
// Force update when SWWW setting changes
|
||||
onVisibleChanged: {
|
||||
if (visible) {
|
||||
|
|
|
|||
|
|
@ -9,7 +9,8 @@ Variants {
|
|||
|
||||
delegate: PanelWindow {
|
||||
required property ShellScreen modelData
|
||||
property string wallpaperSource: Wallpapers.currentWallpaper !== "" && !Settings.data.wallpaper.swww.enabled ? Wallpapers.currentWallpaper : ""
|
||||
property string wallpaperSource: Wallpapers.currentWallpaper !== ""
|
||||
&& !Settings.data.wallpaper.swww.enabled ? Wallpapers.currentWallpaper : ""
|
||||
|
||||
visible: wallpaperSource !== "" && !Settings.data.wallpaper.swww.enabled
|
||||
color: "transparent"
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ Variants {
|
|||
sizeMultiplier: 0.8
|
||||
showBorder: false
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
onClicked: function () {
|
||||
onClicked: {
|
||||
demoPanel.isLoaded = !demoPanel.isLoaded
|
||||
}
|
||||
}
|
||||
|
|
@ -121,7 +121,7 @@ Variants {
|
|||
sizeMultiplier: 0.8
|
||||
showBorder: false
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
onClicked: function () {
|
||||
onClicked: {
|
||||
// Map this button's center to the screen and open the side panel below it
|
||||
const localCenterX = width / 2
|
||||
const localCenterY = height / 2
|
||||
|
|
|
|||
|
|
@ -12,15 +12,15 @@ NClock {
|
|||
target: root
|
||||
}
|
||||
|
||||
onEntered: function () {
|
||||
onEntered: {
|
||||
if (!calendar.isLoaded) {
|
||||
tooltip.show()
|
||||
}
|
||||
}
|
||||
onExited: function () {
|
||||
onExited: {
|
||||
tooltip.hide()
|
||||
}
|
||||
onClicked: function () {
|
||||
onClicked: {
|
||||
tooltip.hide()
|
||||
calendar.isLoaded = !calendar.isLoaded
|
||||
}
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ Item {
|
|||
Audio.volumeDecrement()
|
||||
}
|
||||
}
|
||||
onClicked: function () {
|
||||
onClicked: {
|
||||
audioDeviceSelector.isLoaded = !audioDeviceSelector.isLoaded
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ NIconButton {
|
|||
return connected ? network.signalIcon(parent.currentSignal) : "wifi_off"
|
||||
}
|
||||
tooltipText: "WiFi Networks"
|
||||
onClicked: function () {
|
||||
onClicked: {
|
||||
if (!wifiMenuLoader.active) {
|
||||
wifiMenuLoader.isLoaded = true
|
||||
}
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ NLoader {
|
|||
NIconButton {
|
||||
icon: "refresh"
|
||||
sizeMultiplier: 0.8
|
||||
onClicked: function () {
|
||||
onClicked: {
|
||||
network.refreshNetworks()
|
||||
}
|
||||
}
|
||||
|
|
@ -86,7 +86,7 @@ NLoader {
|
|||
NIconButton {
|
||||
icon: "close"
|
||||
sizeMultiplier: 0.8
|
||||
onClicked: function () {
|
||||
onClicked: {
|
||||
wifiPanel.visible = false
|
||||
network.onMenuClosed()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ NLoader {
|
|||
|
||||
NIconButton {
|
||||
icon: "chevron_left"
|
||||
onClicked: function () {
|
||||
onClicked: {
|
||||
let newDate = new Date(grid.year, grid.month - 1, 1)
|
||||
grid.year = newDate.getFullYear()
|
||||
grid.month = newDate.getMonth()
|
||||
|
|
@ -65,7 +65,7 @@ NLoader {
|
|||
|
||||
NIconButton {
|
||||
icon: "chevron_right"
|
||||
onClicked: function () {
|
||||
onClicked: {
|
||||
let newDate = new Date(grid.year, grid.month + 1, 1)
|
||||
grid.year = newDate.getFullYear()
|
||||
grid.month = newDate.getMonth()
|
||||
|
|
|
|||
|
|
@ -73,17 +73,17 @@ NLoader {
|
|||
stepSize: 0.01
|
||||
value: Scaling.overrideScale
|
||||
implicitWidth: bgRect.width * 0.75
|
||||
onMoved: function () {
|
||||
onMoved: {
|
||||
Scaling.overrideScale = value
|
||||
}
|
||||
onPressedChanged: function () {
|
||||
onPressedChanged: {
|
||||
Scaling.overrideEnabled = true
|
||||
}
|
||||
}
|
||||
NIconButton {
|
||||
icon: "refresh"
|
||||
fontPointSize: Style.fontSizeXL * scaling
|
||||
onClicked: function () {
|
||||
onClicked: {
|
||||
Scaling.overrideEnabled = false
|
||||
Scaling.overrideScale = 1.0
|
||||
}
|
||||
|
|
@ -171,8 +171,9 @@ NLoader {
|
|||
NTextInput {
|
||||
text: "Type anything"
|
||||
Layout.fillWidth: true
|
||||
onEditingFinished: function () {}
|
||||
onEditingFinished: {
|
||||
|
||||
}
|
||||
NDivider {
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
|
|
|||
|
|
@ -191,7 +191,7 @@ PanelWindow {
|
|||
anchors.right: parent.right
|
||||
anchors.margins: Style.marginSmall * scaling
|
||||
icon: "close"
|
||||
onClicked: function () {
|
||||
onClicked: {
|
||||
animateOut()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,13 +46,11 @@ NLoader {
|
|||
"label": "Wallpaper",
|
||||
"icon": "image",
|
||||
"source": "Tabs/Wallpaper.qml"
|
||||
},
|
||||
{
|
||||
}, {
|
||||
"label": "Wallpaper Selector",
|
||||
"icon": "wallpaper_slideshow",
|
||||
"source": "Tabs/WallpaperSelector.qml"
|
||||
},
|
||||
{
|
||||
}, {
|
||||
"label": "Misc",
|
||||
"icon": "more_horiz",
|
||||
"source": "Tabs/Misc.qml"
|
||||
|
|
@ -62,7 +60,7 @@ NLoader {
|
|||
"source": "Tabs/About.qml"
|
||||
}]
|
||||
|
||||
onVisibleChanged: function () {
|
||||
onVisibleChanged: {
|
||||
if (visible)
|
||||
currentTabIndex = 0
|
||||
}
|
||||
|
|
@ -190,7 +188,7 @@ NLoader {
|
|||
icon: "close"
|
||||
tooltipText: "Close settings panel"
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
onClicked: function () {
|
||||
onClicked: {
|
||||
settingsWindow.isLoaded = !settingsWindow.isLoaded
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -116,4 +116,4 @@ Item {
|
|||
Layout.fillHeight: true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
@ -324,4 +324,4 @@ ColumnLayout {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,17 +21,23 @@ NBox {
|
|||
// Performance
|
||||
NIconButton {
|
||||
icon: "speed"
|
||||
onClicked: function () {/* TODO: hook to power profile */ }
|
||||
onClicked: {
|
||||
|
||||
/* TODO: hook to power profile */ }
|
||||
}
|
||||
// Balanced
|
||||
NIconButton {
|
||||
icon: "balance"
|
||||
onClicked: function () {/* TODO: hook to power profile */ }
|
||||
onClicked: {
|
||||
|
||||
/* TODO: hook to power profile */ }
|
||||
}
|
||||
// Eco
|
||||
NIconButton {
|
||||
icon: "eco"
|
||||
onClicked: function () {/* TODO: hook to power profile */ }
|
||||
onClicked: {
|
||||
|
||||
/* TODO: hook to power profile */ }
|
||||
}
|
||||
Item {
|
||||
Layout.fillWidth: true
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ NBox {
|
|||
}
|
||||
NIconButton {
|
||||
icon: "settings"
|
||||
onClicked: function () {
|
||||
onClicked: {
|
||||
if (!root.settingsWindow) {
|
||||
const comp = Qt.createComponent("../../Settings/SettingsWindow.qml")
|
||||
if (comp.status === Component.Ready) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue