Warning, /frameworks/kirigami/src/controls/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 "private" as P 0010 import "templates" as T 0011 0012 0013 //TODO KF6: remove 0014 /** 0015 * @brief An item that can be used as a title for the application. 0016 * 0017 * Scrolling the main page will make it taller or shorter (through the point of going away) 0018 * It's a behavior similar to the typical mobile web browser addressbar 0019 * the minimum, preferred and maximum heights of the item can be controlled with 0020 * * ``minimumHeight``: default is 0, i.e. hidden 0021 * * ``preferredHeight``: default is Kirigami.Units.gridUnit * 1.6 0022 * * ``maximumHeight``: default is Kirigami.Units.gridUnit * 3 0023 * 0024 * To achieve a titlebar that stays completely fixed just set the 3 sizes as the same 0025 * 0026 * @inherit org::kde::kirigami::templates::AbstractApplicationHeader 0027 */ 0028 T.AbstractApplicationHeader { 0029 id: root 0030 0031 Kirigami.Theme.inherit: false 0032 Kirigami.Theme.colorSet: Kirigami.Theme.Header 0033 0034 background: Rectangle { 0035 color: Kirigami.Theme.backgroundColor 0036 P.EdgeShadow { 0037 id: shadow 0038 visible: root.separatorVisible 0039 anchors { 0040 right: parent.right 0041 left: parent.left 0042 top: parent.bottom 0043 } 0044 edge: Qt.TopEdge 0045 opacity: (!root.page || !root.page.header || root.page.header.toString().indexOf("ToolBar") === -1) 0046 Behavior on opacity { 0047 OpacityAnimator { 0048 duration: Kirigami.Units.longDuration 0049 easing.type: Easing.InOutQuad 0050 } 0051 } 0052 } 0053 Behavior on opacity { 0054 OpacityAnimator { 0055 duration: Kirigami.Units.longDuration 0056 easing.type: Easing.InOutQuad 0057 } 0058 } 0059 } 0060 }