widget impl of StyledText & StyledLabel
This commit is contained in:
parent
827af72aac
commit
725c0941fd
2 changed files with 24 additions and 0 deletions
17
widgets/StyledLabel.qml
Normal file
17
widgets/StyledLabel.qml
Normal 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
7
widgets/StyledText.qml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import qs.config
|
||||
import QtQuick
|
||||
|
||||
Text {
|
||||
color: Theme.palette.basecontent
|
||||
font.family: Theme.fontFamily
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue