use PlasmaCore.ColorScope in needed places
standard controls should work better in inverted color scopes Change-Id: I3d10a195cb0ae0b2f2fbbcca21fc6f87f99e7cfc
This commit is contained in:
parent
eca200f67e
commit
a2e223c1ad
@ -58,6 +58,7 @@ Style {
|
||||
imagePath: "widgets/frame"
|
||||
prefix: "plain"
|
||||
visible: !control.flat
|
||||
colorGroup: PlasmaCore.ColorScope.colorGroup
|
||||
Component.onCompleted: {
|
||||
styleRoot.padding.left = frame.margins.left
|
||||
styleRoot.padding.top = frame.margins.top + label.height
|
||||
|
@ -43,6 +43,7 @@ QtQuickControlStyle.MenuBarStyle {
|
||||
implicitWidth: text.implicitWidth + units.smallSpacing * 3
|
||||
implicitHeight: text.implicitHeight + units.smallSpacing * 2
|
||||
enabled: styleData.enabled
|
||||
colorGroup: PlasmaCore.ColorScope.colorGroup
|
||||
|
||||
Accessible.role: Accessible.MenuItem
|
||||
Accessible.name: plainText
|
||||
|
@ -35,6 +35,7 @@ QtQuickControlStyle.ScrollViewStyle {
|
||||
PlasmaCore.Svg {
|
||||
id: borderSvg
|
||||
imagePath: "widgets/scrollwidget"
|
||||
colorGroup: PlasmaCore.ColorScope.colorGroup
|
||||
}
|
||||
|
||||
PlasmaCore.SvgItem {
|
||||
@ -121,12 +122,14 @@ QtQuickControlStyle.ScrollViewStyle {
|
||||
imagePath:"widgets/scrollbar"
|
||||
prefix: styleData.horizontal ? "background-horizontal" : "background-vertical"
|
||||
implicitWidth: widthHint
|
||||
colorGroup: PlasmaCore.ColorScope.colorGroup
|
||||
}
|
||||
|
||||
handle: PlasmaCore.FrameSvgItem {
|
||||
imagePath:"widgets/scrollbar"
|
||||
implicitWidth: widthHint
|
||||
implicitHeight: widthHint
|
||||
colorGroup: PlasmaCore.ColorScope.colorGroup
|
||||
|
||||
prefix: {
|
||||
if (styleData.hovered) {
|
||||
|
@ -50,6 +50,7 @@ QtQuickControlStyle.TabViewStyle {
|
||||
opacity: styleData.selected ? 1 : (styleData.hovered ? 0.4 : 0)
|
||||
imagePath: "widgets/tabbar"
|
||||
prefix: control.tabPosition === Qt.TopEdge ? "north-active-tab" : "south-active-tab"
|
||||
colorGroup: PlasmaCore.ColorScope.colorGroup
|
||||
Behavior on opacity {
|
||||
PropertyAnimation {
|
||||
duration: units.longDuration
|
||||
|
@ -28,5 +28,6 @@ QtQuickControlStyle.ToolBarStyle {
|
||||
|
||||
background: PlasmaCore.FrameSvgItem {
|
||||
imagePath: "widgets/toolbar"
|
||||
colorGroup: PlasmaCore.ColorScope.colorGroup
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user