Add Description to Settings Widget
This commit is contained in:
parent
12d74e8f97
commit
ce7e17cc0c
|
@ -16,6 +16,7 @@ Item {
|
||||||
property alias weight: label.font.weight
|
property alias weight: label.font.weight
|
||||||
property alias strikeout: label.font.strikeout
|
property alias strikeout: label.font.strikeout
|
||||||
property alias font: label.font
|
property alias font: label.font
|
||||||
|
property alias topPadding: label.topPadding
|
||||||
property int extraPadding: 0
|
property int extraPadding: 0
|
||||||
|
|
||||||
property Item container: parent
|
property Item container: parent
|
||||||
|
|
25
Setting.qml
25
Setting.qml
|
@ -23,6 +23,7 @@ Column {
|
||||||
property bool last: false
|
property bool last: false
|
||||||
|
|
||||||
property alias label: settingLabel.text
|
property alias label: settingLabel.text
|
||||||
|
property alias description: settingDescriptionLabel.text
|
||||||
property alias field: fieldContainer.children
|
property alias field: fieldContainer.children
|
||||||
|
|
||||||
|
|
||||||
|
@ -39,12 +40,24 @@ Column {
|
||||||
|
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
|
||||||
Opaque.EllipsisLabel {
|
Column {
|
||||||
id: settingLabel
|
Opaque.EllipsisLabel {
|
||||||
width: container.gridWidth
|
id: settingLabel
|
||||||
color: Theme.mainTextColor
|
width: container.gridWidth
|
||||||
size: Theme.secondaryTextSize * gcd.themeScale
|
color: Theme.mainTextColor
|
||||||
font.weight: Font.Bold
|
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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue