dedup, monospace font for icons
This commit is contained in:
parent
cd45c2d9cf
commit
00838e1d64
18 changed files with 67 additions and 80 deletions
|
|
@ -2,11 +2,18 @@ import QtQuick
|
|||
import Quickshell.Io
|
||||
import "." as M
|
||||
|
||||
Text {
|
||||
M.BarIcon {
|
||||
id: root
|
||||
|
||||
property string profile: ""
|
||||
|
||||
icon: {
|
||||
if (root.profile === "performance") return "";
|
||||
if (root.profile === "power-saver") return "";
|
||||
if (root.profile === "balanced") return "";
|
||||
return "";
|
||||
}
|
||||
|
||||
Process {
|
||||
id: proc
|
||||
running: true
|
||||
|
|
@ -21,18 +28,4 @@ Text {
|
|||
repeat: true
|
||||
onTriggered: proc.running = true
|
||||
}
|
||||
|
||||
text: {
|
||||
if (root.profile === "performance")
|
||||
return "";
|
||||
if (root.profile === "power-saver")
|
||||
return "";
|
||||
if (root.profile === "balanced")
|
||||
return "";
|
||||
return "";
|
||||
}
|
||||
color: M.Theme.base05
|
||||
font.pixelSize: M.Theme.fontSize + 1
|
||||
font.family: M.Theme.fontFamily
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue