Warning, /frameworks/kirigami/src/styles/org.kde.desktop/AbstractApplicationHeader.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * SPDX-FileCopyrightText: 2016 Marco Martin <mart@kde.org> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 import QtQuick 0008 import org.kde.kirigami as Kirigami 0009 import "../../templates" as T 0010 0011 T.AbstractApplicationHeader { 0012 id: root 0013 0014 // Always use header bg color for toolbar (if available), even if the page 0015 // it's located on uses a different color set 0016 Kirigami.Theme.inherit: false 0017 Kirigami.Theme.colorSet: Kirigami.Theme.Header 0018 0019 background: Rectangle { 0020 color: Kirigami.Theme.backgroundColor 0021 Kirigami.Separator { 0022 visible: root.separatorVisible && (!root.page || !root.page.header || !root.page.header.visible || root.page.header.toString().indexOf("ToolBar") === -1) 0023 anchors { 0024 left: parent.left 0025 right: parent.right 0026 bottom: root.y <= 0 ? parent.bottom : undefined 0027 top: root.y <= 0 ? undefined : parent.top 0028 } 0029 } 0030 } 0031 }