use PlasmaCore.ColorScope in needed places

standard controls should work better in inverted color scopes

Change-Id: I3d10a195cb0ae0b2f2fbbcca21fc6f87f99e7cfc
This commit is contained in:
Marco Martin 2015-05-28 12:51:30 +02:00
parent eca200f67e
commit a2e223c1ad
5 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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) {

View File

@ -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

View File

@ -28,5 +28,6 @@ QtQuickControlStyle.ToolBarStyle {
background: PlasmaCore.FrameSvgItem {
imagePath: "widgets/toolbar"
colorGroup: PlasmaCore.ColorScope.colorGroup
}
}