• Skip to content
  • Skip to link menu
Brand

API Documentation

  1. KDE API Reference
  2. Kirigami
  • KDE Home
  • Contact Us

Quick Links

Skip menu "Kirigami"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • File List
  • Related Pages

Class Picker

About

QtQuick plugins to build user interfaces based on the KDE UX guidelines

Maintainer
Marco Martin
Supported platforms
Android, Linux
Community
IRC: #plasma on Freenode
Mailing list: plasma-devel
Use with CMake
find_package(KF5Kirigami)
target_link_libraries(yourapp KF5::Kirigami)
Clone
git clone git://anongit.kde.org/kirigami1.git
Browse source
Kirigami on cgit.kde.org

Kirigami

  • src
  • controls
OverlaySheet.qml
1 /*
2 * Copyright (C) 2016 by Marco Martin <mart@kde.org>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Library General Public License as
6 * published by the Free Software Foundation; either version 2, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Library General Public License for more details
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 2.010-1301, USA.
18 */
19 
20 import QtQuick 2.5
21 import org.kde.kirigami 1.0
22 import "private"
23 import "templates" as T
24 
33 T.OverlaySheet {
34  id: root
35 
36  background: Item {
37  anchors.fill: parent
38  //Why not a shadow or rectangularglow?
39  //on some android devices they break badly when the OverlaySheet is bigger than
40  //the screen
41  CornerShadow {
42  corner: Qt.BottomRightCorner
43  anchors {
44  right: parent.left
45  bottom: parent.top
46  }
47  }
48  CornerShadow {
49  corner: Qt.BottomLeftCorner
50  anchors {
51  left: parent.right
52  bottom: parent.top
53  }
54  }
55  CornerShadow {
56  corner: Qt.TopRightCorner
57  anchors {
58  right: parent.left
59  top: parent.bottom
60  }
61  }
62  CornerShadow {
63  corner: Qt.TopLeftCorner
64  anchors {
65  left: parent.right
66  top: parent.bottom
67  }
68  }
69  EdgeShadow {
70  edge: Qt.BottomEdge
71  anchors {
72  left: parent.left
73  right: parent.right
74  bottom: parent.top
75  }
76  }
77  EdgeShadow {
78  edge: Qt.TopEdge
79  anchors {
80  left: parent.left
81  right: parent.right
82  top: parent.bottom
83  }
84  }
85  EdgeShadow {
86  edge: Qt.LeftEdge
87  anchors {
88  top: parent.top
89  bottom: parent.bottom
90  left: parent.right
91  }
92  }
93  EdgeShadow {
94  edge: Qt.RightEdge
95  anchors {
96  top: parent.top
97  bottom: parent.bottom
98  right: parent.left
99  }
100  }
101  Rectangle {
102  anchors.fill: parent
103  color: Theme.viewBackgroundColor
104  }
105  }
106 }
org::kde::kirigami::Theme
Definition: controls/Theme.qml:22
This file is part of the KDE documentation.
Documentation copyright © 1996-2017 The KDE developers.
Generated on Fri Feb 17 2017 11:09:23 by doxygen 1.8.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal