0
trickyni trickyniv56@gmail.com
Mon, 15 Sep 2025 09:56:29 +0300
14 files changed,
70 insertions(+),
27 deletions(-)
M
Resources.qml
→
Resources.qml
@@ -7,28 +7,33 @@
Singleton { id: root property var palette: { - "fg": "#afd2e9", - "bg": "#3b3228", - "bg95": "#43392d", - "bg75": "#4c4134", - "altbg": "#5d4f40", - "bg25": "#6b6055", - "sand": "#c1a387", - "scarlet": "#e86045", - "moss": "#92a650", - "celadon": "#ace1af", - "orange": "#e68d53", - "saffron": "#f8e2a0", - "cyan": "#3eccbe", - "grey": "#868686" + "fg": "#afd2e9", + "bg": "#3b3228", + "bg95": "#43392d", + "bg75": "#4c4134", + "altbg": "#5d4f40", + "bg25": "#6b6055", + "sand": "#c1a387", + "scarlet": "#e86045", + "moss": "#92a650", + "celadon": "#ace1af", + "orange": "#e68d53", + "saffron": "#f8e2a0", + "cyan": "#3eccbe", + "grey": "#868686" } property var fontsize: { - "topbar_text": 16, - "topbar_icon": 14, - "workspace_icon": 10, - "bottombar_text": 10, - "bottombar_icon": 10, - "moonphase": 24, + "topbar_text": 16*Size.scale, + "topbar_icon": 12*Size.scale, + "workspace_icon": 10*Size.scale, + "bottombar_text": 10*Size.scale, + "bottombar_sep": 16*Size.scale, + "bottombar_icon": 10*Size.scale, + "moonphase": 24*Size.scale, + } + property var barsize: { + "topbar": 18*Size.scale, + "bottombar": 12*Size.scale, } }
A
Size.qml
@@ -0,0 +1,13 @@
+pragma Singleton +import QtQuick +import Quickshell +import Quickshell.Io + +Singleton { + id: root + property var scale: 1 + IpcHandler { + target: "panel" + function scale(scale: real): void { root.scale = scale; } + } +}
M
bar/Bar.qml
→
bar/Bar.qml
@@ -27,6 +27,7 @@ Module.Battery{}
} BottombarLeft{ Module.Network{} + Module.Scale{} } } }
M
bar/BottomBar.qml
→
bar/BottomBar.qml
@@ -1,4 +1,3 @@
-// BottomBar.qml import Quickshell import QtQuick import QtQuick.Layouts@@ -15,6 +14,6 @@ margins {
left: 8 right:8 } - implicitHeight: 12 + implicitHeight: Resources.barsize.bottombar color: Resources.palette.bg }
M
bar/TopBar.qml
→
bar/TopBar.qml
@@ -17,6 +17,7 @@ right:8
top: 0 bottom: 0 } - height: 24 + height: Resources.barsize.topbar + // height: 24 color: Resources.palette.bg }
M
bar/classes/BotSep.qml
→
bar/classes/BotSep.qml
@@ -8,4 +8,6 @@ BottombarText {
id: separator text: "|" color: Resources.palette.sand + anchors.verticalCenter : parent + font.pixelSize: Resources.fontsize.bottombar_sep }
M
bar/classes/BottombarText.qml
→
bar/classes/BottombarText.qml
@@ -8,6 +8,7 @@
Text { font.pixelSize: Resources.fontsize.bottombar_text color: Resources.palette.fg + anchors.verticalCenter : parent // font.family: font_proggy.name // renderType: Text.NativeRendering
M
bar/classes/TopSep.qml
→
bar/classes/TopSep.qml
@@ -9,4 +9,5 @@ id: separator
text: "|" color: Resources.palette.sand padding: 0 + anchors.verticalCenter : parent }
M
bar/classes/TopbarIcon.qml
→
bar/classes/TopbarIcon.qml
@@ -9,4 +9,5 @@ Text {
font.pixelSize: Resources.fontsize.topbar_icon color: Resources.palette.orange font.family: font_icon.name + anchors.verticalCenter: verticalCenter }
M
bar/classes/TopbarText.qml
→
bar/classes/TopbarText.qml
@@ -9,6 +9,5 @@ Text {
font.pixelSize: Resources.fontsize.topbar_text font.family: font_proggy.name color: Resources.palette.fg - antialiasing: true renderType: Text.NativeRendering }
M
bar/modules/Battery.qml
→
bar/modules/Battery.qml
@@ -43,7 +43,7 @@ }[device_type]
?? modelData.model font.pixelSize: (device_type == "Gaming Input") - ? 14 + ? 14*Size.scale : Resources.fontsize.bottombar_icon color: modelData.model == "Jupiter of the Monkey"
A
bar/modules/Scale.qml
@@ -0,0 +1,20 @@
+//Scale.qml +import QtQuick +import Quickshell +import QtQuick.Layouts +import Quickshell.Services.UPower +import "../.." +import "../classes" as Class + +RowLayout { + spacing: 2 + Class.BotSep { + color: Resources.palette.grey +} + Class.BottombarIcon { + text: " "+Size.scale + color: Resources.palette.grey + font.family: font_jetbrains.name + anchors.centerIn: parent + } +}