Files
mxandClaude Opus 5.5 84c2385cfa Fix plugin colours on Qt 6.12
Qt 6.12's QtQuick exports a Color singleton, which hides the Omarchy and
Noctalia kits' Commons.Color: every Color.foreground read undefined, so
plugin buttons, toggles and text fell back to black. The kits now import
QtQuick 6.8, which predates it, and the installer pins the same version
in plugin files that use Color (reinstall plugins to pick it up).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:59:38 +01:00

35 lines
823 B
QML

import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
import QtQuick.Layouts
import qs.compat.noctalia.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
}
}