Fix quick settings icons and centre its tiles
This commit is contained in:
1 parent
cb526038d8
commit
885ae8a17b
5 files changed
+30
-18
No files matched your search
@@ -44,12 +44,12 @@ Item {
|
|||||||
spacing: Style.spaceReal(4)
|
spacing: Style.spaceReal(4)
|
||||||
|
|
||||||
CardIconButton {
|
CardIconButton {
|
||||||
icon: ""
|
icon: "\uf023"
|
||||||
onActivated: root.lockRequested()
|
onActivated: root.lockRequested()
|
||||||
}
|
}
|
||||||
|
|
||||||
CardIconButton {
|
CardIconButton {
|
||||||
icon: ""
|
icon: "\uf08b"
|
||||||
onActivated: root.logoutRequested()
|
onActivated: root.logoutRequested()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -52,17 +52,17 @@ Item {
|
|||||||
spacing: Style.spaceReal(8)
|
spacing: Style.spaceReal(8)
|
||||||
|
|
||||||
CardIconButton {
|
CardIconButton {
|
||||||
icon: "⏮"
|
icon: "\uf048"
|
||||||
onActivated: root.controlRequested("previous")
|
onActivated: root.controlRequested("previous")
|
||||||
}
|
}
|
||||||
|
|
||||||
CardIconButton {
|
CardIconButton {
|
||||||
icon: root.playing ? "⏸" : "▶"
|
icon: root.playing ? "\uf04c" : "\uf04b"
|
||||||
onActivated: root.controlRequested("play-pause")
|
onActivated: root.controlRequested("play-pause")
|
||||||
}
|
}
|
||||||
|
|
||||||
CardIconButton {
|
CardIconButton {
|
||||||
icon: "⏭"
|
icon: "\uf051"
|
||||||
onActivated: root.controlRequested("next")
|
onActivated: root.controlRequested("next")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -227,6 +227,7 @@ Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Tiles {
|
Tiles {
|
||||||
|
width: parent.width
|
||||||
bluetoothOn: bluetoothFlag.value
|
bluetoothOn: bluetoothFlag.value
|
||||||
doNotDisturb: dndFlag.value
|
doNotDisturb: dndFlag.value
|
||||||
nightLight: nightLightFlag.value
|
nightLight: nightLightFlag.value
|
||||||
@@ -240,7 +241,7 @@ Item {
|
|||||||
|
|
||||||
SliderRow {
|
SliderRow {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
icon: mutedFlag.value ? "" : ""
|
icon: mutedFlag.value ? "\uf026" : "\uf028"
|
||||||
dimmed: mutedFlag.value
|
dimmed: mutedFlag.value
|
||||||
value: Number(volumeValue.value) || 0
|
value: Number(volumeValue.value) || 0
|
||||||
onIconActivated: root.toggleAndRefresh("pamixer --toggle-mute")
|
onIconActivated: root.toggleAndRefresh("pamixer --toggle-mute")
|
||||||
@@ -252,7 +253,7 @@ Item {
|
|||||||
|
|
||||||
SliderRow {
|
SliderRow {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
icon: ""
|
icon: "\uf185"
|
||||||
value: Number(brightnessValue.value) || 0
|
value: Number(brightnessValue.value) || 0
|
||||||
onValueRequested: function(next) {
|
onValueRequested: function(next) {
|
||||||
root.run("brightnessctl set " + next + "%")
|
root.run("brightnessctl set " + next + "%")
|
||||||
|
|||||||
@@ -16,44 +16,51 @@ Grid {
|
|||||||
signal toggleRequested(string command)
|
signal toggleRequested(string command)
|
||||||
|
|
||||||
columns: 3
|
columns: 3
|
||||||
|
readonly property real tileWidth: (width - columnSpacing * (columns - 1)) / columns
|
||||||
columnSpacing: Style.spaceReal(8)
|
columnSpacing: Style.spaceReal(8)
|
||||||
rowSpacing: Style.spaceReal(8)
|
rowSpacing: Style.spaceReal(8)
|
||||||
|
|
||||||
Tile {
|
Tile {
|
||||||
icon: ""
|
width: root.tileWidth
|
||||||
|
icon: "\uf1eb"
|
||||||
label: "Wi-Fi"
|
label: "Wi-Fi"
|
||||||
onActivated: root.panelRequested("blob.network")
|
onActivated: root.panelRequested("blob.network")
|
||||||
}
|
}
|
||||||
|
|
||||||
Tile {
|
Tile {
|
||||||
icon: ""
|
width: root.tileWidth
|
||||||
|
icon: "\uf293"
|
||||||
label: "Bluetooth"
|
label: "Bluetooth"
|
||||||
active: root.bluetoothOn
|
active: root.bluetoothOn
|
||||||
onActivated: root.panelRequested("blob.bluetooth")
|
onActivated: root.panelRequested("blob.bluetooth")
|
||||||
}
|
}
|
||||||
|
|
||||||
Tile {
|
Tile {
|
||||||
icon: ""
|
width: root.tileWidth
|
||||||
|
icon: "\uf03e"
|
||||||
label: "Wallpaper"
|
label: "Wallpaper"
|
||||||
onActivated: root.runRequested("blob-wallpaper-set --menu")
|
onActivated: root.runRequested("blob-wallpaper-set --menu")
|
||||||
}
|
}
|
||||||
|
|
||||||
Tile {
|
Tile {
|
||||||
icon: ""
|
width: root.tileWidth
|
||||||
|
icon: "\uf1f6"
|
||||||
label: "Silence"
|
label: "Silence"
|
||||||
active: root.doNotDisturb
|
active: root.doNotDisturb
|
||||||
onActivated: root.toggleRequested("blob-shell notifications toggleDnd")
|
onActivated: root.toggleRequested("blob-shell notifications toggleDnd")
|
||||||
}
|
}
|
||||||
|
|
||||||
Tile {
|
Tile {
|
||||||
icon: ""
|
width: root.tileWidth
|
||||||
|
icon: "\uf186"
|
||||||
label: "Night Light"
|
label: "Night Light"
|
||||||
active: root.nightLight
|
active: root.nightLight
|
||||||
onActivated: root.toggleRequested("blob-toggle-nightlight")
|
onActivated: root.toggleRequested("blob-toggle-nightlight")
|
||||||
}
|
}
|
||||||
|
|
||||||
Tile {
|
Tile {
|
||||||
icon: ""
|
width: root.tileWidth
|
||||||
|
icon: "\uf03d"
|
||||||
label: "Record"
|
label: "Record"
|
||||||
active: root.recording
|
active: root.recording
|
||||||
tooltip: root.recording ? "Stop screen recording" : "Start a screen recording"
|
tooltip: root.recording ? "Stop screen recording" : "Start a screen recording"
|
||||||
@@ -63,6 +70,7 @@ Grid {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Tile {
|
Tile {
|
||||||
|
width: root.tileWidth
|
||||||
icon: ""
|
icon: ""
|
||||||
label: "Stay Awake"
|
label: "Stay Awake"
|
||||||
active: root.stayAwake
|
active: root.stayAwake
|
||||||
@@ -71,19 +79,22 @@ Grid {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Tile {
|
Tile {
|
||||||
icon: ""
|
width: root.tileWidth
|
||||||
|
icon: "\uf1fb"
|
||||||
label: "Pick Color"
|
label: "Pick Color"
|
||||||
onActivated: root.runRequested("hyprpicker -a")
|
onActivated: root.runRequested("hyprpicker -a")
|
||||||
}
|
}
|
||||||
|
|
||||||
Tile {
|
Tile {
|
||||||
icon: ""
|
width: root.tileWidth
|
||||||
|
icon: "\uf1fc"
|
||||||
label: "Theme"
|
label: "Theme"
|
||||||
onActivated: root.runRequested("blob-theme-menu")
|
onActivated: root.runRequested("blob-theme-menu")
|
||||||
}
|
}
|
||||||
|
|
||||||
Tile {
|
Tile {
|
||||||
icon: ""
|
width: root.tileWidth
|
||||||
|
icon: "\uf10a"
|
||||||
label: "Tablet Lock"
|
label: "Tablet Lock"
|
||||||
active: root.tabletFollow
|
active: root.tabletFollow
|
||||||
tooltip: root.tabletFollow ? "Tablet follows focused monitor" : "Tablet spans all monitors"
|
tooltip: root.tabletFollow ? "Tablet follows focused monitor" : "Tablet spans all monitors"
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ Card {
|
|||||||
StatRow {
|
StatRow {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
visible: root.available
|
visible: root.available
|
||||||
icon: ""
|
icon: "\uf2c9"
|
||||||
label: "Temperature"
|
label: "Temperature"
|
||||||
value: root.temperature
|
value: root.temperature
|
||||||
}
|
}
|
||||||
@@ -38,7 +38,7 @@ Card {
|
|||||||
StatRow {
|
StatRow {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
visible: root.available
|
visible: root.available
|
||||||
icon: ""
|
icon: "\udb81\udd9d"
|
||||||
label: "Wind"
|
label: "Wind"
|
||||||
value: root.wind
|
value: root.wind
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user