Fix PC3.GroupBox.color
SystemPaletteSingleton was a QQC1.Private import. Not sure why it's in a QQC2 theme. Nothing in Plasma uses this GroupBox so it makes sense why it wasn't noticed before.
This commit is contained in:
parent
d59fe4e07a
commit
ba6414959d
@ -8,6 +8,7 @@ import QtQuick 2.6
|
|||||||
import QtQuick.Controls @QQC2_VERSION@
|
import QtQuick.Controls @QQC2_VERSION@
|
||||||
import QtQuick.Templates @QQC2_VERSION@ as T
|
import QtQuick.Templates @QQC2_VERSION@ as T
|
||||||
import org.kde.plasma.core 2.0 as PlasmaCore
|
import org.kde.plasma.core 2.0 as PlasmaCore
|
||||||
|
import "." as PC3
|
||||||
|
|
||||||
T.GroupBox {
|
T.GroupBox {
|
||||||
id: control
|
id: control
|
||||||
@ -21,13 +22,13 @@ T.GroupBox {
|
|||||||
padding: 6
|
padding: 6
|
||||||
topPadding: padding + (label && label.implicitWidth > 0 ? label.implicitHeight + spacing : 0)
|
topPadding: padding + (label && label.implicitWidth > 0 ? label.implicitHeight + spacing : 0)
|
||||||
|
|
||||||
label: Label {
|
label: PC3.Label {
|
||||||
x: control.leftPadding
|
x: control.leftPadding
|
||||||
width: control.availableWidth
|
width: control.availableWidth
|
||||||
|
|
||||||
text: control.title
|
text: control.title
|
||||||
font: control.font
|
font: control.font
|
||||||
color: SystemPaletteSingleton.text(control.enabled)
|
enabled: control.enabled
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
horizontalAlignment: Text.AlignLeft
|
horizontalAlignment: Text.AlignLeft
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
|
Loading…
Reference in New Issue
Block a user