Merge pull request 'Add Description to Settings Widget' (#8) from settings-description into master
Reviewed-on: #8
This commit is contained in:
commit
bd31ce4d7d
|
@ -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
|
||||
|
|
25
Setting.qml
25
Setting.qml
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue