mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
maximized widgets explorer
add applet with single click
This commit is contained in:
parent
791d5c5f49
commit
9765dfa679
6 changed files with 9 additions and 8 deletions
|
|
@ -8,7 +8,7 @@ X-KDE-ServiceTypes=Plasma/Applet,Plasma/Containment
|
|||
X-Plasma-API=declarativeappletscript
|
||||
X-KDE-Library=plasma_containment_phone_homescreen
|
||||
X-KDE-PluginInfo-Author=Marco Martin
|
||||
X-KDE-PluginInfo-Category=
|
||||
X-KDE-PluginInfo-Category=Containments
|
||||
X-KDE-PluginInfo-Email=mart@kde.org
|
||||
X-KDE-PluginInfo-License=GPLv2+
|
||||
X-KDE-PluginInfo-Name=org.kde.phone.homescreen
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ X-KDE-ServiceTypes=Plasma/Applet,Plasma/Containment
|
|||
X-Plasma-API=declarativeappletscript
|
||||
X-KDE-ParentApp=
|
||||
X-KDE-PluginInfo-Author=Marco Martin
|
||||
X-KDE-PluginInfo-Category=
|
||||
X-KDE-PluginInfo-Category=Containments
|
||||
X-KDE-PluginInfo-Email=mart@kde.org
|
||||
X-KDE-PluginInfo-License=GPLv2+
|
||||
X-KDE-PluginInfo-Name=org.kde.phone.panel
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ X-KDE-ServiceTypes=Plasma/Applet,Plasma/Containment
|
|||
X-Plasma-API=declarativeappletscript
|
||||
X-KDE-Library=plasma_containment_phone_taskpanel
|
||||
X-KDE-PluginInfo-Author=Marco Martin
|
||||
X-KDE-PluginInfo-Category=
|
||||
X-KDE-PluginInfo-Category=Containments
|
||||
X-KDE-PluginInfo-Email=mart@kde.org
|
||||
X-KDE-PluginInfo-License=GPLv2+
|
||||
X-KDE-PluginInfo-Name=org.kde.phone.taskpanel
|
||||
|
|
|
|||
|
|
@ -146,8 +146,9 @@ Item {
|
|||
id: mouseArea
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
onDoubleClicked: widgetExplorer.addApplet(pluginName)
|
||||
onEntered: delegate.ListView.view.currentIndex = index
|
||||
onExited: delegate.ListView.view.currentIndex = -1
|
||||
onClicked: {
|
||||
widgetExplorer.addApplet(pluginName);
|
||||
main.closed();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ import org.kde.plasma.private.shell 2.0
|
|||
PlasmaCore.FrameSvgItem {
|
||||
id: main
|
||||
imagePath: "widgets/background"
|
||||
enabledBorders: PlasmaCore.FrameSvgItem.RightBorder
|
||||
enabledBorders: PlasmaCore.FrameSvgItem.NoBorder
|
||||
|
||||
width: Math.max(heading.paintedWidth, units.gridUnit * 16)
|
||||
height: 800//Screen.height
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ Item {
|
|||
asynchronous: true
|
||||
y: containment ? containment.availableScreenRect.y : 0
|
||||
height: containment ? containment.availableScreenRect.height : parent.height
|
||||
width: item ? item.width: 0
|
||||
width: parent.width
|
||||
|
||||
onLoaded: {
|
||||
if (widgetExplorerStack.item) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue