widget impl of StyledText & StyledLabel

This commit is contained in:
Benjamin Palko 2025-07-26 23:09:24 -04:00
parent 827af72aac
commit 725c0941fd
2 changed files with 24 additions and 0 deletions

17
widgets/StyledLabel.qml Normal file
View file

@ -0,0 +1,17 @@
import qs.config
import QtQuick
import Quickshell.Widgets
WrapperRectangle {
id: root
required property Component content
margin: 8
radius: 8
color: Theme.palette.base100
Behavior on color {
ColorAnimation {
duration: 200
easing.type: Easing.InOutQuad
}
}
}

7
widgets/StyledText.qml Normal file
View file

@ -0,0 +1,7 @@
import qs.config
import QtQuick
Text {
color: Theme.palette.basecontent
font.family: Theme.fontFamily
}