use styled

This commit is contained in:
Benjamin Palko 2025-07-17 22:06:25 -04:00
parent c33b9e2a4c
commit 5e7035efdc

View file

@ -1,6 +1,7 @@
import Quickshell import Quickshell
import Quickshell.Io import Quickshell.Io
import QtQuick import QtQuick
import "root:styled"
Item { Item {
id: clock id: clock
@ -8,19 +9,14 @@ Item {
implicitWidth: 200 implicitWidth: 200
implicitHeight: 30 implicitHeight: 30
Rectangle { StyledLabel {
anchors.fill: parent anchors.fill: parent
color: "#333"
opacity: 0.5
radius: 5
} }
Text { StyledText {
id: text id: text
anchors.centerIn: parent anchors.centerIn: parent
color: "white"
Process { Process {
// give the process object an id so we can talk // give the process object an id so we can talk
// about it from the timer // about it from the timer