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>
31 lines
803 B
QML
31 lines
803 B
QML
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
|
import qs.compat.noctalia.Commons
|
|
|
|
// Rounded group container using the variant surface color.
|
|
// To be used in side panels and settings panes to group fields or buttons.
|
|
// Opacity is based on panelBackgroundOpacity but clamped to a minimum to avoid full transparency.
|
|
|
|
Item {
|
|
id: root
|
|
|
|
property color color: Color.mSurfaceVariant
|
|
property bool forceOpaque: false
|
|
property alias radius: bg.radius
|
|
property alias border: bg.border
|
|
|
|
Rectangle {
|
|
id: bg
|
|
anchors.fill: parent
|
|
radius: Style.radiusM
|
|
border.color: Style.boxBorderColor
|
|
border.width: Style.borderS
|
|
color: {
|
|
if (forceOpaque) {
|
|
return root.color;
|
|
}
|
|
|
|
return Color.smartAlpha(root.color);
|
|
}
|
|
}
|
|
}
|