mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
start of shell
had to work through NUMEROUS plasmashell bugs again this week to get even this far *sgh*
This commit is contained in:
parent
4603c1ad1d
commit
33ccadbb83
6 changed files with 110 additions and 0 deletions
15
shell/contents/components/SatelliteStripe.qml
Normal file
15
shell/contents/components/SatelliteStripe.qml
Normal file
|
|
@ -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
|
||||||
|
}
|
||||||
6
shell/contents/defaults
Normal file
6
shell/contents/defaults
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
[Desktop]
|
||||||
|
Containment=org.kde.desktopcontainment
|
||||||
|
ToolBox=
|
||||||
|
|
||||||
|
[Desktop][ContainmentActions]
|
||||||
|
|
||||||
10
shell/contents/layout.js
Normal file
10
shell/contents/layout.js
Normal file
|
|
@ -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");
|
||||||
|
}
|
||||||
|
|
||||||
34
shell/contents/loader.qml
Normal file
34
shell/contents/loader.qml
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
/* vim:set foldmethod=marker:
|
||||||
|
*
|
||||||
|
* Copyright (C) 2013 Ivan Cukic <ivan.cukic(at)kde.org>
|
||||||
|
*
|
||||||
|
* 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
|
||||||
|
}
|
||||||
|
|
||||||
31
shell/contents/views/Desktop.qml
Normal file
31
shell/contents/views/Desktop.qml
Normal file
|
|
@ -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: {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
14
shell/metadata.desktop
Normal file
14
shell/metadata.desktop
Normal file
|
|
@ -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=
|
||||||
|
|
||||||
Loading…
Reference in a new issue