2022-06-23 04:16:20 +00:00
|
|
|
// SPDX-FileCopyrightText: 2013 Marco Martin <mart@kde.org>
|
|
|
|
|
// SPDX-FileCopyrightText: 2022 Devin Lin <devin@kde.org>
|
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2022-06-22 18:59:34 +00:00
|
|
|
|
|
|
|
|
import QtQuick 2.12
|
|
|
|
|
import QtQuick.Layouts 1.0
|
|
|
|
|
import QtQuick.Window 2.2
|
2022-06-23 04:16:20 +00:00
|
|
|
import QtQuick.Controls 2.15 as Controls
|
|
|
|
|
|
2023-07-25 01:13:52 +00:00
|
|
|
import org.kde.kirigami 2.20 as Kirigami
|
2022-06-23 04:16:20 +00:00
|
|
|
import org.kde.plasma.components 3.0 as PlasmaComponents3
|
2023-09-05 15:34:49 +00:00
|
|
|
import org.kde.plasma.core as PlasmaCore
|
2022-06-22 18:59:34 +00:00
|
|
|
import org.kde.plasma.configuration 2.0
|
2023-09-28 05:38:54 +00:00
|
|
|
import org.kde.ksvg 1.0 as KSvg
|
2022-06-22 18:59:34 +00:00
|
|
|
|
|
|
|
|
AppletConfiguration {
|
|
|
|
|
id: root
|
|
|
|
|
isContainment: true
|
2024-01-02 03:30:55 +00:00
|
|
|
loadApp: true
|
2022-06-22 18:59:34 +00:00
|
|
|
|
|
|
|
|
readonly property bool horizontal: root.width > root.height
|
|
|
|
|
|
2022-06-25 17:04:26 +00:00
|
|
|
onAppLoaded: {
|
2023-07-25 01:13:52 +00:00
|
|
|
app.width = root.width < root.height ? root.width : Math.min(root.width, Math.max(app.implicitWidth, Kirigami.Units.gridUnit * 45));
|
|
|
|
|
app.height = Math.min(root.height, Math.max(app.implicitHeight, Kirigami.Units.gridUnit * 29));
|
2022-06-25 17:04:26 +00:00
|
|
|
}
|
2024-07-27 03:47:44 +00:00
|
|
|
|
2022-06-22 18:59:34 +00:00
|
|
|
//BEGIN model
|
|
|
|
|
globalConfigModel: globalContainmentConfigModel
|
|
|
|
|
|
|
|
|
|
ConfigModel {
|
|
|
|
|
id: globalContainmentConfigModel
|
|
|
|
|
ConfigCategory {
|
|
|
|
|
name: i18nd("plasma_shell_org.kde.plasma.desktop", "Wallpaper")
|
|
|
|
|
icon: "preferences-desktop-wallpaper"
|
|
|
|
|
source: "ConfigurationContainmentAppearance.qml"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//END model
|
|
|
|
|
}
|