Kirigami2

styles/org.kde.desktop/AbstractApplicationHeader.qml
1/*
2 * SPDX-FileCopyrightText: 2016 Marco Martin <mart@kde.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7import QtQuick
8import org.kde.kirigami as Kirigami
9import "../../templates" as T
10
11T.AbstractApplicationHeader {
12 id: root
13
14 // Always use header bg color for toolbar (if available), even if the page
15 // it's located on uses a different color set
16 Kirigami.Theme.inherit: false
17 Kirigami.Theme.colorSet: Kirigami.Theme.Header
18
19 background: Rectangle {
20 color: Kirigami.Theme.backgroundColor
21 Kirigami.Separator {
22 visible: root.separatorVisible && (!root.page || !root.page.header || !root.page.header.visible || root.page.header.toString().indexOf("ToolBar") === -1)
23 anchors {
24 left: parent.left
25 right: parent.right
26 bottom: root.y <= 0 ? parent.bottom : undefined
27 top: root.y <= 0 ? undefined : parent.top
28 }
29 }
30 }
31}
QTextStream & left(QTextStream &stream)
QTextStream & right(QTextStream &stream)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.