Warning, /plasma/latte-dock/shell/package/contents/views/InfoView.qml is written in an unsupported language. File is not indexed.

0001 /*
0002     SPDX-FileCopyrightText: 2016 Smith AR <audoban@openmailbox.org>
0003     SPDX-FileCopyrightText: 2016 Michail Vourlakos <mvourlakos@gmail.com>
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 import QtQuick 2.0
0008 import QtQuick.Layouts 1.1
0009 import QtQuick.Window 2.1
0010 import org.kde.plasma.core 2.0 as PlasmaCore
0011 import org.kde.plasma.components 2.0 as PlasmaComponents
0012 import org.kde.plasma.extras 2.0 as PlasmaExtras
0013 
0014 import org.kde.latte.core 0.2 as LatteCore
0015 
0016 PlasmaCore.FrameSvgItem {
0017     id: dialog
0018 
0019     imagePath: "widgets/panel-background"
0020     prefix:""
0021     enabledBorders: infoWindow ? infoWindow.enabledBorders : PlasmaCore.FrameSvg.AllBorders
0022 
0023     width: Screen.width + 1
0024     height: Math.min(Screen.height - units.gridUnit * 8, logo.height + messageLbl.height + 2 *units.gridUnit)
0025 
0026     property string message
0027 
0028     ColumnLayout {
0029         id: root
0030 
0031         anchors.centerIn: parent
0032 
0033         Item{
0034             id: iconItem
0035             Layout.fillWidth: true
0036             Layout.minimumHeight: logo.height
0037 
0038             LatteCore.IconItem {
0039                 id: logo
0040                 anchors.centerIn: parent
0041 
0042                 width: units.iconSizes.huge
0043                 height: width
0044 
0045                 source: "latte-dock"
0046             }
0047         }
0048 
0049         PlasmaComponents.Label {
0050             id: messageLbl
0051             Layout.fillWidth: true
0052 
0053             horizontalAlignment: Text.AlignHCenter
0054             text: dialog.message
0055             font.italic: true
0056         }
0057     }
0058 }