Merge pull request 'Add Description to Settings Widget' (#8) from settings-description into master

Reviewed-on: #8
This commit is contained in:
erinn 2020-07-09 13:26:49 -07:00
commit bd31ce4d7d
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
}
}