mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
35 lines
737 B
QML
35 lines
737 B
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
import qs.Commons
|
|
|
|
ColumnLayout {
|
|
id: root
|
|
|
|
property string label: ""
|
|
property string description: ""
|
|
property bool enableDescriptionRichText: false
|
|
|
|
opacity: enabled ? 1.0 : 0.6
|
|
spacing: Style.marginXXS
|
|
Layout.fillWidth: true
|
|
Layout.bottomMargin: Style.marginM
|
|
|
|
NText {
|
|
text: root.label
|
|
pointSize: Style.fontSizeXL
|
|
font.weight: Style.fontWeightSemiBold
|
|
color: Color.mPrimary
|
|
visible: root.label !== ""
|
|
}
|
|
|
|
NText {
|
|
text: root.description
|
|
pointSize: Style.fontSizeM
|
|
color: Color.mOnSurfaceVariant
|
|
wrapMode: Text.WordWrap
|
|
Layout.fillWidth: true
|
|
visible: root.description !== ""
|
|
richTextEnabled: root.enableDescriptionRichText
|
|
}
|
|
}
|