Add Description to Settings Widget

This commit is contained in:
Sarah Jamie Lewis 2020-07-08 15:30:15 -07:00
parent 12d74e8f97
commit ce7e17cc0c
2 changed files with 20 additions and 6 deletions

View File

@ -16,6 +16,7 @@ Item {
property alias weight: label.font.weight
property alias strikeout: label.font.strikeout
property alias font: label.font
property alias topPadding: label.topPadding
property int extraPadding: 0
property Item container: parent

View File

@ -23,6 +23,7 @@ Column {
property bool last: false
property alias label: settingLabel.text
property alias description: settingDescriptionLabel.text
property alias field: fieldContainer.children
@ -39,12 +40,24 @@ Column {
anchors.horizontalCenter: parent.horizontalCenter
Opaque.EllipsisLabel {
id: settingLabel
width: container.gridWidth
color: Theme.mainTextColor
size: Theme.secondaryTextSize * gcd.themeScale
font.weight: Font.Bold
Column {
Opaque.EllipsisLabel {
id: settingLabel
width: container.gridWidth
color: Theme.mainTextColor
size: Theme.secondaryTextSize * gcd.themeScale
font.weight: Font.Bold
}
Opaque.ScalingLabel {
id: settingDescriptionLabel
width: container.gridWidth
color: Theme.mainTextColor
size: Theme.chatMetaTextSize * gcd.themeScale
visible: settingDescriptionLabel.text != ""
topPadding:10
}
}