/* * SPDX-FileCopyrightText: 2016 Marco Martin * * SPDX-License-Identifier: LGPL-2.0-or-later */ import QtQuick import org.kde.kirigami as Kirigami import "../../templates" as T T.AbstractApplicationHeader { id: root // Always use header bg color for toolbar (if available), even if the page // it's located on uses a different color set Kirigami.Theme.inherit: false Kirigami.Theme.colorSet: Kirigami.Theme.Header background: Rectangle { color: Kirigami.Theme.backgroundColor Kirigami.Separator { visible: root.separatorVisible && (!root.page || !root.page.header || !root.page.header.visible || root.page.header.toString().indexOf("ToolBar") === -1) anchors { left: parent.left right: parent.right bottom: root.y <= 0 ? parent.bottom : undefined top: root.y <= 0 ? undefined : parent.top } } } }