NIconButton: default scale is 1.0, default show border
This commit is contained in:
parent
7fe87c0633
commit
f8e436fb2d
7 changed files with 14 additions and 16 deletions
|
|
@ -59,7 +59,6 @@ NBox {
|
|||
}
|
||||
NIconButton {
|
||||
icon: "settings"
|
||||
sizeMultiplier: 0.9
|
||||
onClicked: function () {
|
||||
if (!root.settingsWindow) {
|
||||
const comp = Qt.createComponent("../Settings/SettingsWindow.qml")
|
||||
|
|
@ -80,17 +79,15 @@ NBox {
|
|||
}
|
||||
NIconButton {
|
||||
icon: "power_settings_new"
|
||||
sizeMultiplier: 0.9
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Timer {
|
||||
interval: 60000
|
||||
repeat: true
|
||||
running: true
|
||||
onTriggered: uptimeProcess.running = true
|
||||
interval: 60000
|
||||
repeat: true
|
||||
running: true
|
||||
onTriggered: uptimeProcess.running = true
|
||||
}
|
||||
|
||||
Process {
|
||||
|
|
@ -101,7 +98,6 @@ NBox {
|
|||
stdout: StdioCollector {
|
||||
onStreamFinished: {
|
||||
var uptimeSeconds = parseFloat(this.text.trim().split(' ')[0])
|
||||
|
||||
var minutes = Math.floor(uptimeSeconds / 60) % 60
|
||||
var hours = Math.floor(uptimeSeconds / 3600) % 24
|
||||
var days = Math.floor(uptimeSeconds / 86400)
|
||||
|
|
|
|||
|
|
@ -138,19 +138,16 @@ NLoader {
|
|||
// Performance
|
||||
NIconButton {
|
||||
icon: "speed"
|
||||
sizeMultiplier: 1.0
|
||||
onClicked: function () {/* TODO: hook to power profile */ }
|
||||
}
|
||||
// Balanced
|
||||
NIconButton {
|
||||
icon: "balance"
|
||||
sizeMultiplier: 1.0
|
||||
onClicked: function () {/* TODO: hook to power profile */ }
|
||||
}
|
||||
// Eco
|
||||
NIconButton {
|
||||
icon: "eco"
|
||||
sizeMultiplier: 1.0
|
||||
onClicked: function () {/* TODO: hook to power profile */ }
|
||||
}
|
||||
Item {
|
||||
|
|
@ -175,12 +172,10 @@ NLoader {
|
|||
// Record
|
||||
NIconButton {
|
||||
icon: "fiber_manual_record"
|
||||
sizeMultiplier: 1.0
|
||||
}
|
||||
// Wallpaper
|
||||
NIconButton {
|
||||
icon: "image"
|
||||
sizeMultiplier: 1.0
|
||||
}
|
||||
Item {
|
||||
Layout.fillWidth: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue