diff --git a/shell/contents/components/SatelliteStripe.qml b/shell/contents/components/SatelliteStripe.qml new file mode 100644 index 00000000..03e1aa91 --- /dev/null +++ b/shell/contents/components/SatelliteStripe.qml @@ -0,0 +1,15 @@ +import QtQuick 2.0 +import org.kde.plasma.core 2.0 as PlasmaCore + +Rectangle { + gradient: Gradient { + GradientStop { position: 0.0; color: "#FFEDDF00" } + GradientStop { position: 3.0; color: "#00EDDF00" } + } + + opacity: 0.6 + height: Math.max(100, units.gridUnit * 2.5) + width: parent.width + y: parent.height / 2 - height / 2 + x: 0 +} diff --git a/shell/contents/defaults b/shell/contents/defaults new file mode 100644 index 00000000..58c841a4 --- /dev/null +++ b/shell/contents/defaults @@ -0,0 +1,6 @@ +[Desktop] +Containment=org.kde.desktopcontainment +ToolBox= + +[Desktop][ContainmentActions] + diff --git a/shell/contents/layout.js b/shell/contents/layout.js new file mode 100644 index 00000000..c5c75fb4 --- /dev/null +++ b/shell/contents/layout.js @@ -0,0 +1,10 @@ +var id = createActivity("Homescreen"); +var desktopsArray = desktopsForActivity(id); +print("Reaaaaaally?????? " + desktopsArray.length); +for( var j = 0; j < desktopsArray.length; j++) { + desktopsArray[j].wallpaperPlugin = 'org.kde.color'; + desktopsArray[j].currentConfigGroup = ["Wallpaper", "General"]; + print("currently at ... " + desktopsArray[j].currentConfigGroup); + desktopsArray[j].writeConfig("Image", "org.kde.satellite.lockers"); +} + diff --git a/shell/contents/loader.qml b/shell/contents/loader.qml new file mode 100644 index 00000000..01f51620 --- /dev/null +++ b/shell/contents/loader.qml @@ -0,0 +1,34 @@ +/* vim:set foldmethod=marker: + * + * Copyright (C) 2013 Ivan Cukic + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2, + * or (at your option) any later version, as published by the Free + * Software Foundation + * + * This program 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, write to the + * Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +import QtQuick 2 + +Item { + id: main + + property string shell : "org.kde.satellite.phone" + property bool willing : true + property int priority : 0 + + // This is not needed, but allows the + // handler to know whether its shell is loaded + property bool loaded : false +} + diff --git a/shell/contents/views/Desktop.qml b/shell/contents/views/Desktop.qml new file mode 100644 index 00000000..af137947 --- /dev/null +++ b/shell/contents/views/Desktop.qml @@ -0,0 +1,31 @@ +import QtQuick 2.0 +import org.kde.plasma.core 2.0 as PlasmaCore +import "../components" + +Rectangle { + id: root + width: 1024 + height: 768 + + property Item containment; + property Item wallpaper; + + onContainmentChanged: console.log(containment.pluginName) + onWallpaperChanged: { + console.log(wallpaper.pluginName + ' ' + wallpaper.opacity); + } + + SatelliteStripe { + id: stripe + z: 1 + + MouseArea { + anchors.fill: parent + onPressed: { + } + + onReleased: { + } + } + } +} diff --git a/shell/metadata.desktop b/shell/metadata.desktop new file mode 100644 index 00000000..647b0910 --- /dev/null +++ b/shell/metadata.desktop @@ -0,0 +1,14 @@ +[Desktop Entry] +Name=Phone +Type=Service + +X-KDE-ServiceTypes=Plasma/Shell +X-KDE-ParentApp= +X-KDE-PluginInfo-Author=Aaron Seigo +X-KDE-PluginInfo-Category= +X-KDE-PluginInfo-Email=aseigo@kde.org +X-KDE-PluginInfo-License=GPLv2+ +X-KDE-PluginInfo-Name=org.kde.plasma.satellite.phone +X-KDE-PluginInfo-Version=0.1 +X-KDE-PluginInfo-Website= +