expandable dialogs for color scheme, fonts and scheduling modes
This commit is contained in:
@@ -17,6 +17,7 @@ ConnectedRect {
|
||||
property alias subtext: subLabel.text
|
||||
property alias text: label.text
|
||||
property string trailingIcon
|
||||
property string activeItem
|
||||
|
||||
signal clicked(event: MouseEvent)
|
||||
|
||||
@@ -40,15 +41,16 @@ ConnectedRect {
|
||||
spacing: Tokens.spacing.medium
|
||||
|
||||
Behavior on opacity {
|
||||
Anim {
|
||||
}
|
||||
Anim {}
|
||||
}
|
||||
|
||||
MaterialIcon {
|
||||
id: iconLabel
|
||||
|
||||
color: Colors.palette.m3onSurfaceVariant
|
||||
visible: root.icon !== ""
|
||||
fill: 1
|
||||
text: root.icon
|
||||
font.pointSize: Tokens.font.size.normal
|
||||
}
|
||||
|
||||
@@ -79,6 +81,26 @@ ConnectedRect {
|
||||
}
|
||||
}
|
||||
|
||||
Loader {
|
||||
active: root.activeItem && root.subtext
|
||||
asynchronous: true
|
||||
visible: active
|
||||
Layout.fillHeight: true
|
||||
|
||||
sourceComponent: CustomRect {
|
||||
color: Colors.palette.m3secondaryContainer
|
||||
radius: Tokens.rounding.full
|
||||
implicitWidth: text.implicitWidth + Tokens.padding.medium * 2
|
||||
|
||||
CustomText {
|
||||
id: text
|
||||
anchors.centerIn: parent
|
||||
color: Colors.palette.m3onSecondaryContainer
|
||||
text: root.activeItem
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loader {
|
||||
active: root.trailingIcon
|
||||
asynchronous: true
|
||||
|
||||
Reference in New Issue
Block a user