Changeset View
Changeset View
Standalone View
Standalone View
src/styles/org.kde.desktop/AbstractApplicationHeader.qml
Show All 21 Lines | |||||
22 | * To achieve a titlebar that stays completely fixed just set the 3 sizes as the same | 22 | * To achieve a titlebar that stays completely fixed just set the 3 sizes as the same | ||
23 | */ | 23 | */ | ||
24 | T.AbstractApplicationHeader { | 24 | T.AbstractApplicationHeader { | ||
25 | id: root | 25 | id: root | ||
26 | 26 | | |||
27 | Theme.inherit: true | 27 | Theme.inherit: true | ||
28 | 28 | | |||
29 | background: Rectangle { | 29 | background: Rectangle { | ||
30 | // Always use window bg color for toolbar, even if the page | ||||
31 | // it's located on uses a different color set | ||||
32 | Theme.colorSet: Theme.Window | ||||
33 | Theme.inherit: false | ||||
30 | color: Theme.backgroundColor | 34 | color: Theme.backgroundColor | ||
31 | Separator { | 35 | Separator { | ||
32 | visible: root.separatorVisible && (!root.page || !root.page.header || !root.page.header.visible || root.page.header.toString().indexOf("ToolBar") === -1) | 36 | visible: root.separatorVisible && (!root.page || !root.page.header || !root.page.header.visible || root.page.header.toString().indexOf("ToolBar") === -1) | ||
33 | anchors { | 37 | anchors { | ||
34 | left: parent.left | 38 | left: parent.left | ||
35 | right: parent.right | 39 | right: parent.right | ||
36 | bottom: root.y <= 0 ? parent.bottom : undefined | 40 | bottom: root.y <= 0 ? parent.bottom : undefined | ||
37 | top: root.y <= 0 ? undefined : parent.top | 41 | top: root.y <= 0 ? undefined : parent.top | ||
38 | } | 42 | } | ||
39 | } | 43 | } | ||
40 | } | 44 | } | ||
41 | } | 45 | } | ||
42 | 46 | |