From c02b7e5d5d55c1ab526d644a1d2667757deaa7ed Mon Sep 17 00:00:00 2001 From: lucy Date: Mon, 24 Aug 2026 21:46:10 +0200 Subject: [PATCH] fixup all the shit and properly add icontheme --- modules/bar/Date.qml | 34 ++++++++++++++++++++++++++++---- modules/bar/Pw.qml | 1 - modules/wallpaper/WallPicker.qml | 2 +- settings/settings.ini | 2 +- shell.qml | 2 ++ 5 files changed, 34 insertions(+), 7 deletions(-) diff --git a/modules/bar/Date.qml b/modules/bar/Date.qml index e6b3c29..3238e99 100644 --- a/modules/bar/Date.qml +++ b/modules/bar/Date.qml @@ -1,19 +1,45 @@ import Quickshell +import Quickshell.Widgets import QtQuick +import QtQuick.Layouts +import QtQuick.Effects import qs import qs.widgets import qs.settings BarComponent { id: root - implicitWidth: clockText.width + 16 + implicitWidth: clockLayout.width + 16 SystemClock { id: clock precision: SystemClock.Seconds } - StyledText { + active: clickHandler.containsMouse + RowLayout { + id: clockLayout anchors.centerIn: parent - id: clockText - text: Qt.formatDateTime(clock.date, "d.M.yy - hh:mm:ss") + IconImage { + source: Quickshell.iconPath("clock-applet-symbolic") + implicitSize: Config.iconSize + layer.enabled: true + layer.effect: MultiEffect { + colorization: 1.0 + colorizationColor: Colors.text + brightness: 0.5 + } + } + StyledText { + id: clockText + text: Qt.formatDateTime(clock.date, toggleFormat ? "hh:mm:ss | dd.mm.yy" : "hh:mm:ss") + property bool toggleFormat: false + } + } + MouseArea { + id: clickHandler + anchors.fill: parent + cursorShape: Qt.PointingHandCursor + hoverEnabled: true + onClicked: { clockText.toggleFormat = !clockText.toggleFormat } + } } diff --git a/modules/bar/Pw.qml b/modules/bar/Pw.qml index 57f1dad..3a81570 100644 --- a/modules/bar/Pw.qml +++ b/modules/bar/Pw.qml @@ -1,4 +1,3 @@ -//@ pragma IconTheme Adwaita pragma ComponentBehavior: Bound import Quickshell.Services.Pipewire import Quickshell.Io diff --git a/modules/wallpaper/WallPicker.qml b/modules/wallpaper/WallPicker.qml index daaf5cd..e933efd 100644 --- a/modules/wallpaper/WallPicker.qml +++ b/modules/wallpaper/WallPicker.qml @@ -63,7 +63,7 @@ BarComponent { wallPicker.visible = false; } anchors.fill: parent - color: Colors.base00 + color: Colors.base02 radius: Config.rounding GridView { id: wallpaperLayout diff --git a/settings/settings.ini b/settings/settings.ini index c5fa764..065a0ff 100644 --- a/settings/settings.ini +++ b/settings/settings.ini @@ -9,4 +9,4 @@ primaryMon=eDP-1 rounding=4 showCorners=true wallDir=file:///home/lucy/.walls -wallpaper=@Variant(\0\0\0\x11\0\0\0'/home/lucy/.walls/lance_of_longinus.png) +wallpaper=@Variant(\0\0\0\x11\0\0\0!/home/lucy/.walls/frierensuff.png) diff --git a/shell.qml b/shell.qml index ac48f5a..badd681 100644 --- a/shell.qml +++ b/shell.qml @@ -1,3 +1,5 @@ +//@ pragma UseQApplication +//@ pragma IconTheme Papirus import Quickshell import qs.modules.bar import qs.modules.wallpaper