mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
hooks: cleaned ui and colorize active hooks
This commit is contained in:
@@ -14,27 +14,10 @@ RowLayout {
|
|||||||
|
|
||||||
spacing: Style.marginM
|
spacing: Style.marginM
|
||||||
|
|
||||||
ColumnLayout {
|
NLabel {
|
||||||
Layout.fillWidth: true
|
label: root.label
|
||||||
spacing: Style.marginXS
|
description: root.description
|
||||||
|
labelColor: root.value ? Color.mPrimary : Color.mOnSurface
|
||||||
NText {
|
|
||||||
text: root.label
|
|
||||||
font.weight: Style.fontWeightBold
|
|
||||||
Layout.fillWidth: true
|
|
||||||
elide: Text.ElideRight
|
|
||||||
}
|
|
||||||
|
|
||||||
NText {
|
|
||||||
text: root.description
|
|
||||||
color: Color.mOnSurfaceVariant
|
|
||||||
pointSize: Style.fontSizeS
|
|
||||||
Layout.fillWidth: true
|
|
||||||
wrapMode: Text.WordWrap
|
|
||||||
}
|
|
||||||
|
|
||||||
// Optional: Show current value preview if not empty?
|
|
||||||
// For now, let's keep it clean as requested.
|
|
||||||
}
|
}
|
||||||
|
|
||||||
NIconButton {
|
NIconButton {
|
||||||
|
|||||||
Reference in New Issue
Block a user