You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
2.4 KiB
QML
74 lines
2.4 KiB
QML
7 years ago
|
/*
|
||
|
* Copyright 2016 Smith AR <audoban@openmailbox.org>
|
||
|
* Michail Vourlakos <mvourlakos@gmail.com>
|
||
|
*
|
||
|
* This file is part of Latte-Dock
|
||
|
*
|
||
|
* Latte-Dock is free software; you can redistribute it and/or
|
||
|
* modify it under the terms of the GNU General Public License as
|
||
|
* published by the Free Software Foundation; either version 2 of
|
||
|
* the License, or (at your option) any later version.
|
||
|
*
|
||
|
* Latte-Dock is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
* GNU General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU General Public License
|
||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
*/
|
||
|
|
||
|
import QtQuick 2.7
|
||
|
import QtQuick.Controls 1.4
|
||
|
import QtQuick.Layouts 1.3
|
||
|
import QtGraphicalEffects 1.0
|
||
|
import QtQuick.Window 2.2
|
||
|
|
||
|
import org.kde.plasma.core 2.0 as PlasmaCore
|
||
|
import org.kde.plasma.components 2.0 as PlasmaComponents
|
||
|
import org.kde.plasma.extras 2.0 as PlasmaExtras
|
||
|
import QtQuick.Controls.Styles.Plasma 2.0 as Styles
|
||
|
|
||
|
import org.kde.plasma.plasmoid 2.0
|
||
|
|
||
|
import org.kde.kquickcontrolsaddons 2.0 as KQuickControlAddons
|
||
|
|
||
|
import org.kde.latte 0.1 as Latte
|
||
|
|
||
|
FocusScope {
|
||
|
id: dialog
|
||
|
|
||
|
property int maxWidth: panelIsVertical ? 9 * theme.defaultFont.pixelSize : 16 * theme.defaultFont.pixelSize
|
||
|
|
||
|
width: maxWidth + units.smallSpacing * 2
|
||
|
height: typeSettings.height + units.smallSpacing * 2
|
||
|
Layout.minimumWidth: width
|
||
|
Layout.minimumHeight: height
|
||
|
LayoutMirroring.enabled: Qt.application.layoutDirection === Qt.RightToLeft
|
||
|
LayoutMirroring.childrenInherit: true
|
||
|
|
||
|
property bool advanced: plasmoid.configuration.advanced
|
||
|
property bool panelIsVertical: plasmoid.formFactor === PlasmaCore.Types.Vertical
|
||
|
property int subGroupSpacing: units.largeSpacing + units.smallSpacing * 1.5
|
||
|
|
||
|
property color bC: theme.backgroundColor
|
||
|
property color transparentBackgroundColor: Qt.rgba(bC.r, bC.g, bC.b, 0.7)
|
||
|
|
||
|
PlasmaCore.FrameSvgItem{
|
||
|
anchors.fill: parent
|
||
|
imagePath: "dialogs/background"
|
||
|
enabledBorders: dockConfig.enabledBorders
|
||
|
}
|
||
|
|
||
|
|
||
|
TypeSelection{
|
||
|
id: typeSettings
|
||
|
anchors.centerIn: parent
|
||
|
}
|
||
|
|
||
|
Component.onCompleted: dockConfig.setVisibleWindow(advanced);
|
||
|
|
||
|
onAdvancedChanged: dockConfig.setVisibleWindow(advanced);
|
||
|
|
||
|
}
|