noctalia-shell/Widgets/NLabel.qml
LemmyCook e79c163dd9 Wallpaper rework
- removed swww to the code is easier to maintain
- basic multi monitor wallpaper support
2025-08-29 08:33:40 -04:00

32 lines
677 B
QML

import QtQuick
import QtQuick.Layouts
import qs.Commons
ColumnLayout {
id: root
property string label: ""
property string description: ""
property color labelColor: Color.mOnSurface
property color descriptionColor: Color.mOnSurfaceVariant
spacing: Style.marginXXS * scaling
Layout.fillWidth: true
NText {
text: label
font.pointSize: Style.fontSizeL * scaling
font.weight: Style.fontWeightBold
color: labelColor
visible: label !== ""
}
NText {
text: description
font.pointSize: Style.fontSizeS * scaling
color: descriptionColor
wrapMode: Text.WordWrap
visible: description !== ""
Layout.fillWidth: true
}
}