mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
Move from a C++ library + QML plugin to a QML plugin only for simplicity, since the homescreen switching architecture will be done from Plasma, and so use of the shell library only needs to be from QML.
26 lines
785 B
QML
26 lines
785 B
QML
/*
|
|
SPDX-FileCopyrightText: 2021 Devin Lin <eespidev@gmail.com>
|
|
SPDX-FileCopyrightText: 2019 Aditya Mehra <Aix.m@outlook.com>
|
|
SPDX-FileCopyrightText: 2014-2015 Harald Sitter <sitter@kde.org>
|
|
|
|
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
|
|
*/
|
|
|
|
import QtQuick 2.2
|
|
import QtQuick.Layouts 1.4
|
|
import org.kde.plasma.core 2.0 as PlasmaCore
|
|
import org.kde.plasma.private.volume 0.1
|
|
import org.kde.plasma.private.mobileshell 1.0 as MobileShell
|
|
|
|
PlasmaCore.IconItem {
|
|
id: paIcon
|
|
property MobileShell.VolumeProvider provider: MobileShell.VolumeProvider
|
|
|
|
Layout.fillHeight: true
|
|
Layout.preferredWidth: height
|
|
source: provider.icon
|
|
|
|
colorGroup: PlasmaCore.ColorScope.colorGroup
|
|
|
|
visible: provider.isVisible
|
|
}
|