Compare commits

...

8 commits

Author SHA1 Message Date
catpswin56
2ebf38f521 Merge branch 'sevenstart-blurdelay-fix' into 'Plasma/6.6'
SevenStart: let PlasmaCore::Dialog manage the background

See merge request aeroshell/atp/aerothemeplasma!61
2026-06-15 20:28:59 -03:00
wackyideas
d6d6352e17 Merge branch 'suse-req-pkg-upd' into 'Plasma/6.6'
fix: Update INSTALL.md

See merge request aeroshell/atp/aerothemeplasma!66
2026-06-13 07:34:14 +02:00
wackyideas
c6099adee8 Merge branch 'patch-1' into 'Plasma/6.6'
Fixed discord link

See merge request aeroshell/atp/aerothemeplasma!67
2026-06-13 07:32:53 +02:00
atmk
04df2fe66d Fixed discord link 2026-06-13 05:24:30 +00:00
jayrickaby
d721a8c977 fix: Update INSTALL.md
Update INSTALL.md with current required OpenSUSE packages
2026-06-12 21:35:54 +00:00
catpswin56
2643ffb10f SevenStart: set appletInterface in MenuRepresentation.qml 2026-03-24 09:22:49 -03:00
catpswin56
cce3804b57 SevenStart: fix KickoffItem actions menu failing to show if sevenTasksReference wasn't found 2026-03-24 09:04:13 -03:00
catpswin56
1c6d14ef45 SevenStart: let PlasmaCore::Dialog manage the background
SevenStart now requires aeroshell-libplasma in order to work properly.
2026-03-24 08:39:36 -03:00
14 changed files with 117 additions and 931 deletions

View file

@ -242,7 +242,7 @@ Some of these issues are fixable but not a lot of effort has been put into doing
2. Certain animation effects play for certain windows even though they shouldn't, this is usually caused by different window identification and/or the inability to identify such windows (As the first issue points out). Most of these can likely be fixed in the future. 2. Certain animation effects play for certain windows even though they shouldn't, this is usually caused by different window identification and/or the inability to identify such windows (As the first issue points out). Most of these can likely be fixed in the future.
3. SevenTasks uses window positioning to animate its jumplists which isn't smooth or reliable on Wayland, as client-side window positioning on Wayland is not supported as part of the protocol spec. (See [xx-zones](https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/264) for more insight on the state of window positioning on Wayland). This is arguably bad practice in any case and should be replaced with some kind of KWin effect that actually performs the sliding animation. 3. SevenTasks uses window positioning to animate its jumplists which isn't smooth or reliable on Wayland, as client-side window positioning on Wayland is not supported as part of the protocol spec. (See [xx-zones](https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/264) for more insight on the state of window positioning on Wayland). This is arguably bad practice in any case and should be replaced with some kind of KWin effect that actually performs the sliding animation.
4. SevenTasks jumplists (and context menus in general) cannot steal mouse inputs from all other windows, which might potentially result in strange behavior. 4. SevenTasks jumplists (and context menus in general) cannot steal mouse inputs from all other windows, which might potentially result in strange behavior.
5. SevenStart's blur region often lags behind or doesn't appear at all upon opening the menu. This can likely be fixed by restructuring SevenStart in some way, but not much time has been spent fixing this bug. 5. ~~SevenStart's blur region often lags behind or doesn't appear at all upon opening the menu. This can likely be fixed by restructuring SevenStart in some way, but not much time has been spent fixing this bug.~~
6. SevenStart's floating orb positioning fails only sometimes. Additionally, because Wayland doesn't allow client windows to raise themselves, in some cases the floating orb will appear permanently stuck underneath the panel and its child windows until the shell is restarted. 6. SevenStart's floating orb positioning fails only sometimes. Additionally, because Wayland doesn't allow client windows to raise themselves, in some cases the floating orb will appear permanently stuck underneath the panel and its child windows until the shell is restarted.
6. Aero Peek is not visible on Wayland, although the windows do properly fade in and out of view. This should most likely be replaced with a proper KWin effect that renders the Aero Peek windows in place of regular windows. 6. Aero Peek is not visible on Wayland, although the windows do properly fade in and out of view. This should most likely be replaced with a proper KWin effect that renders the Aero Peek windows in place of regular windows.
7. HiDPI is not properly supported for SMOD. See #252 for more details. This is an issue for both X11 and Wayland, but X11 has an easier workaround as KDecoration3 on X11 ignores DPI scaling entirely. 7. HiDPI is not properly supported for SMOD. See #252 for more details. This is an issue for both X11 and Wayland, but X11 has an easier workaround as KDecoration3 on X11 ignores DPI scaling entirely.

View file

@ -50,7 +50,7 @@ On Fedora, additional dependencies for X11 include:
Required packages: Required packages:
```bash ```bash
zypper install cmake make ninja gcc gcc-c++ gmp-ecm-devel kf6-extra-cmake-modules qt6-base-devel qt6-quick-devel qt6-svg-devel qt6-quickcontrols2-devel kf6-kwindowsystem-devel kf6-karchive-devel kf6-kirigami-devel kf6-kbookmarks-devel kf6-kcodecs-devel kf6-kcolorscheme-devel kf6-kcompletion-devel kf6-kconfig-devel kf6-kconfigwidgets-devel kf6-kcoreaddons-devel kf6-kguiaddons-devel kf6-ki18n-devel kf6-kio-devel kf6-kitemviews-devel kf6-kjobwidgets-devel kf6-kservice-devel kf6-kwidgetsaddons-devel kf6-kxmlgui-devel kf6-solid-devel kf6-kglobalaccel-devel kf6-kiconthemes-devel kf6-knotifications-devel kf6-kpackage-devel kf6-ksvg-devel plasma6-activities-devel plasma-wayland-protocols qt6-wayland-devel qt6-quicktest-devel qt6-gui-private-devel kdecoration6-devel kf6-kcmutils-devel qt6-uitools-devel kf6-kcrash-devel libepoxy-devel kwin6-devel kwin6-x11-devel kf6-qqc2-desktop-style-devel knotifications-devel kf6-kauth-devel libplasma6-devel plasma5support6-devel plasma6-activities-stats-devel plasma6-workspace-devel zypper install cmake gcc gcc-c++ gmp-ecm-devel kdecoration6-devel kf6-attica-devel kf6-extra-cmake-modules kf6-karchive-devel kf6-kauth-devel kf6-kbookmarks-devel kf6-kcmutils-devel kf6-kcodecs-devel kf6-kcolorscheme-devel kf6-kcompletion-devel kf6-kconfig-devel kf6-kconfigwidgets-devel kf6-kcoreaddons-devel kf6-kcrash-devel kf6-kdbusaddons-devel kf6-kglobalaccel-devel kf6-kguiaddons-devel kf6-ki18n-devel kf6-kiconthemes-devel kf6-kio-devel kf6-kirigami-devel kf6-kitemviews-devel kf6-kjobwidgets-devel kf6-knewstuff-devel kf6-knotifications-devel kf6-knotifyconfig-devel kf6-kpackage-devel kf6-krunner-devel kf6-kservice-devel kf6-ksvg-devel kf6-kwidgetsaddons-devel kf6-kwindowsystem-devel kf6-kxmlgui-devel kf6-qqc2-desktop-style-devel kf6-solid-devel kf6-sonnet-devel knotifications-devel kwin6-devel kwin6-x11-devel libepoxy-devel libksysguard6-devel libplasma6-devel libpolkit-qt6-1-devel make ninja plasma-wayland-protocols plasma5support6-devel plasma6-activities-devel plasma6-activities-stats-devel plasma6-workspace-devel qt6-base-devel qt6-gui-private-devel qt6-qt5compat-devel qt6-quick-devel qt6-quickcontrols2-devel qt6-quicktest-devel qt6-quickwidgets-devel qt6-svg-devel qt6-uitools-devel qt6-wayland-devel qt6-waylandclient-private-devel
``` ```
In openSUSE, additional dependencies for X11 include: In openSUSE, additional dependencies for X11 include:

View file

@ -94,9 +94,11 @@ Initially I wanted to make a Vista variant of AeroThemePlasma but [catpswin56](h
- [WinXplorer](https://gitgud.io/catpswin56/winxplorer) by catpswin56 - [WinXplorer](https://gitgud.io/catpswin56/winxplorer) by catpswin56
- [execbin](https://gitgud.io/catpswin56/execbin) (run dialog) by catpswin56 - [execbin](https://gitgud.io/catpswin56/execbin) (run dialog) by catpswin56
- [LinVer](https://gitgud.io/wackyideas/linver) (version dialog) by WackyIdeas - [LinVer](https://gitgud.io/wackyideas/linver) (version dialog) by WackyIdeas
- [Device Manager](https://github.com/actuallyaridan/linux-devmgmt) by ActuallyAdrian - [Device Manager](https://github.com/actuallyaridan/linux-devmgmt) by ActuallyAridan
- ~~[Sevulet](https://gitgud.io/snailatte/sevulet) by [snailatte](https://gitgud.io/snailatte)~~ - ~~[Sevulet](https://gitgud.io/snailatte/sevulet) by [snailatte](https://gitgud.io/snailatte)~~
To install most of these, the commands to run after cloning are: `mkdir build; cd build; cmake .. -DCMAKE_INSTALL_PREFIX=/usr; sudo make install`.
## Screenshots ## Screenshots
### Desktop ### Desktop

View file

@ -75,15 +75,6 @@ Item {
readonly property bool stickOutOrb: (Plasmoid.location == PlasmaCore.Types.TopEdge || Plasmoid.location == PlasmaCore.Types.BottomEdge) && Plasmoid.configuration.stickOutOrb && kicker.height <= 30 && !editMode readonly property bool stickOutOrb: (Plasmoid.location == PlasmaCore.Types.TopEdge || Plasmoid.location == PlasmaCore.Types.BottomEdge) && Plasmoid.configuration.stickOutOrb && kicker.height <= 30 && !editMode
readonly property bool useCustomButtonImage: (Plasmoid.configuration.useCustomButtonImage) readonly property bool useCustomButtonImage: (Plasmoid.configuration.useCustomButtonImage)
readonly property bool vertical: (Plasmoid.formFactor == PlasmaCore.Types.Vertical) readonly property bool vertical: (Plasmoid.formFactor == PlasmaCore.Types.Vertical)
readonly property bool enableShadow: (Plasmoid.configuration.enableShadow)
onEnableShadowChanged: {
//Plasmoid.enableShadow(Plasmoid.configuration.enableShadow);
if(dashWindow) {
dashWindow.firstTimeShadowSetup = false;
}
}
// If the url is empty (default value), then use the fallback url. Otherwise, return the url path relative to // If the url is empty (default value), then use the fallback url. Otherwise, return the url path relative to
// the location of the source code. // the location of the source code.
@ -112,12 +103,9 @@ Item {
function showMenu() { function showMenu() {
dashWindow.visible = !dashWindow.visible; dashWindow.visible = !dashWindow.visible;
dashWindow.showingAllPrograms = false; dashWindow.showingAllPrograms = false;
maskTimer.start();
if(KWindowSystem.isPlatformX11) Plasmoid.setActiveWin(dashWindow); if(KWindowSystem.isPlatformX11) Plasmoid.setActiveWin(dashWindow);
Plasmoid.setDialogAppearance(dashWindow, dashWindow.dialogBackgroundTexture.mask);
dashWindow.m_searchField.focus = true; dashWindow.m_searchField.focus = true;
orb.raise(); orb.raise();
} }
function updateSizeHints() { function updateSizeHints() {
return; return;
@ -157,10 +145,8 @@ Item {
dashWindow = Qt.createQmlObject("MenuRepresentation {}", kicker); dashWindow = Qt.createQmlObject("MenuRepresentation {}", kicker);
orb = Qt.createQmlObject("StartOrb {}", kicker); orb = Qt.createQmlObject("StartOrb {}", kicker);
maskTimer.start();
orbTimer.start(); orbTimer.start();
Plasmoid.activated.connect(function () { Plasmoid.activated.connect(function () {
console.log("hi");
showMenu(); showMenu();
}); });
} }
@ -266,17 +252,8 @@ Item {
Plasmoid.setOrb(orb); Plasmoid.setOrb(orb);
// Currently hardcoded, will make it configurable soon, when it's been properly tested and hopefully slightly refactored. // Currently hardcoded, will make it configurable soon, when it's been properly tested and hopefully slightly refactored.
Plasmoid.setMask(Qt.resolvedUrl("./orbs/mask.png"), false); Plasmoid.setMask(Qt.resolvedUrl("./orbs/mask.png"), false);
Plasmoid.setDashWindow(dashWindow, dashWindow.dialogBackgroundTexture.mask, dashWindow.dialogBackgroundTexture.imagePath);
updateSizeHints(); updateSizeHints();
positionOrb(); positionOrb();
} }
} }
Timer {
id: maskTimer
interval: 25
onTriggered: {
Plasmoid.setDialogAppearance(dashWindow, dashWindow.dialogBackgroundTexture.mask);
}
}
} }

View file

@ -80,7 +80,7 @@ Item {
while(panel !== null && typeof panel.sevenTasksReference === "undefined") { // Find seventasks loader reference from the panel while(panel !== null && typeof panel.sevenTasksReference === "undefined") { // Find seventasks loader reference from the panel
panel = panel.parent; panel = panel.parent;
} }
if(panel.sevenTasksReference) { // If found, add the pin/unpin menu item if(panel && panel.sevenTasksReference) { // If found, add the pin/unpin menu item
const unpin = (panel.sevenTasksReference.applet.findTask(entry) !== -1); const unpin = (panel.sevenTasksReference.applet.findTask(entry) !== -1);
var pinAction = { // Add custom action var pinAction = { // Add custom action
icon: "pin", icon: "pin",

View file

@ -47,17 +47,21 @@ PlasmaCore.Dialog {
location: "Floating" // To make the panel display all 4 borders, the panel will be positioned at a corner. location: "Floating" // To make the panel display all 4 borders, the panel will be positioned at a corner.
flags: Qt.WindowStaysOnTopHint //| Qt.Popup // Set to popup so that it is still considered a plasmoid popup, despite being a floating dialog window. flags: Qt.WindowStaysOnTopHint //| Qt.Popup // Set to popup so that it is still considered a plasmoid popup, despite being a floating dialog window.
hideOnWindowDeactivate: true hideOnWindowDeactivate: true
appletInterface: kicker
title: "aeroshell-menurepresentation" title: "aeroshell-menurepresentation"
backgroundHints: PlasmaCore.Types.NoBackground shadowBordersSync: false
shadowEnabled: Plasmoid.configuration.enableShadow
marginsEnabled: false
customImagePath: Qt.resolvedUrl("svgs/dialog.svgz")
property int iconSize: Kirigami.Units.iconSizes.medium property int iconSize: Kirigami.Units.iconSizes.medium
property int iconSizeSide: Kirigami.Units.iconSizes.smallMedium property int iconSizeSide: Kirigami.Units.iconSizes.smallMedium
property int cellWidth: 254 // Width for all standard menu items. property int cellWidth: 254 // Width for all standard menu items.
property int cellWidthSide: 139 // Width for sidebar menu items. property int cellWidthSide: 139 // Width for sidebar menu items.
property int cellHeight: iconSize + Kirigami.Units.smallSpacing + (Math.max(highlightItemSvg.margins.top + highlightItemSvg.margins.bottom, property int cellHeight: iconSize + Kirigami.Units.smallSpacing - Kirigami.Units.smallSpacing/2
highlightItemSvg.margins.left + highlightItemSvg.margins.right)) - Kirigami.Units.smallSpacing/2
property int cellCount: Plasmoid.configuration.numberRows + faves.getFavoritesCount() property int cellCount: Plasmoid.configuration.numberRows + faves.getFavoritesCount()
property bool searching: (searchField.text != "") property bool searching: (searchField.text != "")
property bool showingAllPrograms: false property bool showingAllPrograms: false
@ -89,7 +93,6 @@ PlasmaCore.Dialog {
property alias m_lockButton: lockma property alias m_lockButton: lockma
property alias m_searchField: searchField property alias m_searchField: searchField
property alias m_delayTimer: delayTimer property alias m_delayTimer: delayTimer
property alias dialogBackgroundTexture: dialogBackground
property bool newItemsAvailable: filteredNewItems.count > 0 property bool newItemsAvailable: filteredNewItems.count > 0
@ -101,12 +104,6 @@ PlasmaCore.Dialog {
firstTimePopup = true; firstTimePopup = true;
} }
onXChanged: {
Plasmoid.syncBorders(Qt.rect(x, y, width, height), Plasmoid.location);
}
onYChanged: {
Plasmoid.syncBorders(Qt.rect(x, y, width, height), Plasmoid.location);
}
onVisibleChanged: { onVisibleChanged: {
popupPosition(); popupPosition();
if (!visible) { if (!visible) {
@ -116,11 +113,6 @@ PlasmaCore.Dialog {
searchField.forceActiveFocus(); searchField.forceActiveFocus();
rootModel.refresh(); rootModel.refresh();
setFloatingAvatarPosition(); setFloatingAvatarPosition();
Plasmoid.setDialogAppearance(root, dialogBackground.mask);
if(!firstTimeShadowSetup) {
shadow_fix.start()
}
} }
resetRecents(); // Resets the recents model to prevent errors and crashes. resetRecents(); // Resets the recents model to prevent errors and crashes.
@ -128,15 +120,11 @@ PlasmaCore.Dialog {
onHeightChanged: { onHeightChanged: {
popupPosition(); popupPosition();
setFloatingAvatarPosition(); setFloatingAvatarPosition();
Plasmoid.setDialogAppearance(root, dialogBackground.mask);
Plasmoid.syncBorders(Qt.rect(x, y, width, height), Plasmoid.location);
} }
onWidthChanged: { onWidthChanged: {
popupPosition(); popupPosition();
setFloatingAvatarPosition(); setFloatingAvatarPosition();
Plasmoid.setDialogAppearance(root, dialogBackground.mask);
Plasmoid.syncBorders(Qt.rect(x, y, width, height), Plasmoid.location);
} }
onSearchingChanged: { onSearchingChanged: {
@ -228,16 +216,6 @@ PlasmaCore.Dialog {
filterRowCallback: (sourceRow, sourceParent) => containsNewItem(sourceRow, sourceParent) filterRowCallback: (sourceRow, sourceParent) => containsNewItem(sourceRow, sourceParent)
} }
Timer {
id: shadow_fix
interval: 25
onTriggered: {
Plasmoid.enableShadow(Plasmoid.configuration.enableShadow);
Plasmoid.syncBorders(Qt.rect(dashWindow.x, dashWindow.y, dashWindow.width, dashWindow.height), Plasmoid.location);
firstTimeShadowSetup = true;
}
}
Timer { // Janky wayland problems require janky solutions Timer { // Janky wayland problems require janky solutions
id: wayland_fix id: wayland_fix
interval: 25 interval: 25
@ -279,18 +257,18 @@ PlasmaCore.Dialog {
Item { Item {
PlasmaCore.Dialog { PlasmaCore.Dialog {
id: iconUser id: iconUser
//flags: Qt.WindowStaysOnTopHint// | Qt.BypassWindowManagerHint // To prevent the icon from animating its opacity when its visibility is changed
//type: "Notification" // So that we don't have to rely on this
location: "Floating"
type: "Notification"
title: "aeroshell-floatingavatar"
x: 0 x: 0
y: 0 y: 0
location: "Floating"
type: "Notification"
title: "aeroshell-floatingavatar"
backgroundHints: PlasmaCore.Types.NoBackground // To prevent the dialog background SVG from being rendered, we want a fully transparent window. backgroundHints: PlasmaCore.Types.NoBackground // To prevent the dialog background SVG from being rendered, we want a fully transparent window.
//visualParent: root
visible: root.visible && !searching && compositingEnabled && !root.isTouchingTopEdge() //Plasmoid.location != PlasmaCore.Types.TopEdge visible: root.visible && !searching && compositingEnabled && !root.isTouchingTopEdge() //Plasmoid.location != PlasmaCore.Types.TopEdge
opacity: iconUser.visible && firstTimePopup // To prevent even more NP-hard unpredictable behavior opacity: iconUser.visible && firstTimePopup // To prevent even more NP-hard unpredictable behavior
mainItem: FloatingIcon { mainItem: FloatingIcon {
id: compositingIcon id: compositingIcon
visible: compositingEnabled visible: compositingEnabled
@ -426,14 +404,6 @@ PlasmaCore.Dialog {
} }
} }
KSvg.FrameSvgItem {
id: dialogBackground
anchors.fill: parent
imagePath: Qt.resolvedUrl("svgs/dialog.svgz");
//opacity: 0
}
Rectangle { Rectangle {
id: backgroundGradient id: backgroundGradient
anchors.fill: parent anchors.fill: parent
@ -1381,6 +1351,5 @@ PlasmaCore.Dialog {
faves.listView.currentIndex = -1; faves.listView.currentIndex = -1;
popupPosition(); popupPosition();
Plasmoid.setDialogAppearance(root, dialogBackground.mask);
} }
} }

View file

@ -1,2 +0,0 @@
sudo make install
sh ~/scripts/restart_plasma.sh

View file

@ -1,33 +1,27 @@
# TODO: adapt "org.kde.plasma" here & elsewhere if needed (see README) # TODO: adapt "org.kde.plasma" here & elsewhere if needed (see README)
add_definitions(-DTRANSLATION_DOMAIN=\"plasma_applet_io.gitgud.wackyideas.SevenStart\") add_definitions(-DTRANSLATION_DOMAIN=\"plasma_applet_io.gitgud.wackyideas.SevenStart\")
remove_definitions(-DQT_NO_CAST_FROM_ASCII)
set(SevenStart_SRCS set(SevenStart_SRCS
SevenStart.cpp SevenStart.cpp
dialogshadows.cpp
) )
add_library(io.gitgud.wackyideas.SevenStart MODULE ${SevenStart_SRCS}) add_library(io.gitgud.wackyideas.SevenStart MODULE ${SevenStart_SRCS})
target_link_libraries(io.gitgud.wackyideas.SevenStart target_link_libraries(io.gitgud.wackyideas.SevenStart
PRIVATE
Qt6::Gui Qt6::Gui
Qt6::Quick Qt6::Quick
KF6::I18n KF6::I18n
KF6::WindowSystem KF6::WindowSystem
KF6::Kirigami
Plasma
PlasmaQuick
KF6::Svg KF6::Svg
KF6::ConfigCore KF6::ConfigCore
KF6::ConfigGui KF6::ConfigGui
KF6::CoreAddons) KF6::CoreAddons
Plasma
PlasmaQuick
)
#target_link_libraries(plasma_applet_seventasks KF5::WindowSystem)
include_directories(/usr/include/Plasma /usr/include/KF6/KConfigCore/ /usr/include/KF6/KConfig/ /usr/include/KF6/KCoreAddons/ /usr/include/PlasmaQuick/) include_directories(/usr/include/Plasma /usr/include/KF6/KConfigCore/ /usr/include/KF6/KConfig/ /usr/include/KF6/KCoreAddons/ /usr/include/PlasmaQuick/)
install(TARGETS io.gitgud.wackyideas.SevenStart DESTINATION ${KDE_INSTALL_PLUGINDIR}/plasma/applets) install(TARGETS io.gitgud.wackyideas.SevenStart DESTINATION ${KDE_INSTALL_PLUGINDIR}/plasma/applets)
#plasma_install_package(package io.gitgud.wackyideas.SevenStart)

View file

@ -4,12 +4,14 @@
*/ */
#include "SevenStart.h" #include "SevenStart.h"
#include <kwindowsystem.h>
SevenStart::SevenStart(QObject *parentObject, const KPluginMetaData &data, const QVariantList &args) SevenStart::SevenStart(QObject *parentObject, const KPluginMetaData &data, const QVariantList &args)
: Plasma::Applet(parentObject, data, args) : Plasma::Applet(parentObject, data, args)
{ {
if(KWindowSystem::isPlatformX11()) {
connect(KX11Extras::self(), SIGNAL(compositingChanged(bool)), this, SLOT(onCompositingChanged(bool))); connect(KX11Extras::self(), SIGNAL(compositingChanged(bool)), this, SLOT(onCompositingChanged(bool)));
}
connect(KWindowSystem::self(), SIGNAL(showingDesktopChanged(bool)), this, SLOT(onShowingDesktopChanged(bool))); connect(KWindowSystem::self(), SIGNAL(showingDesktopChanged(bool)), this, SLOT(onShowingDesktopChanged(bool)));
} }
@ -18,7 +20,70 @@ SevenStart::~SevenStart()
if(inputMaskCache) delete inputMaskCache; if(inputMaskCache) delete inputMaskCache;
} }
bool SevenStart::fileExists(QUrl path)
{
if(!path.isLocalFile()) return false;
QFileInfo file(path.toLocalFile());
return file.exists() && file.isFile();
}
void SevenStart::setOrb(QQuickWindow* w)
{
orb = w;
}
void SevenStart::setMask(QString mask, bool overrideMask)
{
QString m = mask.mid(7).toStdString().c_str();
if(overrideMask)
{
if(inputMaskCache != nullptr) delete inputMaskCache;
inputMaskCache = new QBitmap(m);
}
else
{
if(!inputMaskCache)
{
inputMaskCache = new QBitmap(m);
}
}
}
void SevenStart::setTransparentWindow()
{
if(orb == nullptr || inputMaskCache == nullptr) return;
bool compositingActive{true};
if(KWindowSystem::isPlatformX11()) compositingActive = KX11Extras::compositingActive();
if(!compositingActive) {
orb->setMask(*inputMaskCache);
} else {
orb->setMask(QRegion());
}
}
void SevenStart::setActiveWin(QQuickWindow* w)
{
if(w == nullptr || KWindowSystem::isPlatformWayland()) return;
KX11Extras::forceActiveWindow(w->winId());
}
void SevenStart::onCompositingChanged(bool enabled)
{
setTransparentWindow();
}
void SevenStart::onShowingDesktopChanged(bool enabled)
{
if(enabled && orb != nullptr)
orb->raise();
}
K_PLUGIN_CLASS(SevenStart) K_PLUGIN_CLASS(SevenStart)
//K_PLUGIN_CLASS_WITH_JSON(SevenStart, "package/metadata.json")
#include "SevenStart.moc" #include "SevenStart.moc"

View file

@ -5,29 +5,20 @@
#ifndef SEVENSTART_H #ifndef SEVENSTART_H
#define SEVENSTART_H #define SEVENSTART_H
#include <Plasma/Applet>
#include <QColor> #include <QFileInfo>
#include <QUrl>
#include <QPixmap> #include <QPixmap>
#include <QImage>
#include <QRgb>
#include <QIcon>
#include <QVariant> #include <QVariant>
#include <QtQuick/QQuickItem>
#include <QtQuick/QQuickItemGrabResult>
#include <QtQuick/QQuickWindow> #include <QtQuick/QQuickWindow>
#include <QBitmap> #include <QBitmap>
#include <QWindow> #include <QWindow>
#include <QCursor>
#include <QKeySequence>
#include <QVariantList> #include <QVariantList>
#include <kwindoweffects.h>
#include <kwindowsystem.h> #include <kwindowsystem.h>
#include <kwindowinfo.h>
#include <kx11extras.h> #include <kx11extras.h>
#include <QFileInfo>
#include <QUrl> #include <Plasma/Applet>
#include "dialogshadows_p.h"
#include <plasmaquick/dialog.h>
class SevenStart : public Plasma::Applet class SevenStart : public Plasma::Applet
{ {
@ -37,155 +28,26 @@ public:
SevenStart(QObject *parentObject, const KPluginMetaData &data, const QVariantList &args); SevenStart(QObject *parentObject, const KPluginMetaData &data, const QVariantList &args);
~SevenStart(); ~SevenStart();
QRect availableScreenGeometryForPosition(const QPoint &pos) const Q_INVOKABLE bool fileExists(QUrl path);
{
// FIXME: QWindow::screen() never ever changes if the window is moved across
// virtual screens (normal two screens with X), this seems to be intentional
// as it's explicitly mentioned in the docs. Until that's changed or some
// more proper way of howto get the current QScreen for given QWindow is found,
// we simply iterate over the virtual screens and pick the one our QWindow
// says it's at.
QRect avail;
const auto screens = QGuiApplication::screens();
for (QScreen *screen : screens) {
// we check geometry() but then take availableGeometry()
// to reliably check in which screen a position is, we need the full
// geometry, including areas for panels
if (screen->geometry().contains(pos)) {
avail = screen->availableGeometry();
break;
}
}
/* Q_INVOKABLE void setOrb(QQuickWindow* w);
* if the heuristic fails (because the topleft of the dialog is offscreen) Q_INVOKABLE void setMask(QString mask, bool overrideMask);
* use at least our screen()
* the screen should be correctly updated now on Qt 5.3+ so should be
* more reliable anyways (could be tried to remove the whole for loop
* above at this point)
*
* important: screen can be a nullptr... see bug 345173
*/
if (avail.isEmpty() && dashWindow && dashWindow->screen()) {
avail = dashWindow->screen()->availableGeometry();
}
return avail;
}
void setShadowBorders(KSvg::FrameSvg::EnabledBorders enabledBorders)
{
if(dashWindow == nullptr || shadow == nullptr) return;
shadow->setEnabledBorders(dashWindow, enabledBorders);
}
Q_INVOKABLE void syncBorders(const QRect &geom, Plasma::Types::Location location)
{
if(!shadowEnabled) return;
QRect avail = availableScreenGeometryForPosition(geom.topLeft());
int borders = KSvg::FrameSvg::AllBorders;
if (geom.x() <= avail.x() || location == Plasma::Types::LeftEdge) {
borders = borders & ~KSvg::FrameSvg::LeftBorder;
}
if (geom.y() <= avail.y() || location == Plasma::Types::TopEdge) {
borders = borders & ~KSvg::FrameSvg::TopBorder;
}
if (avail.right() <= geom.x() + geom.width() || location == Plasma::Types::RightEdge) {
borders = borders & ~KSvg::FrameSvg::RightBorder;
}
if (avail.bottom() <= geom.y() + geom.height() || location == Plasma::Types::BottomEdge) {
borders = borders & ~KSvg::FrameSvg::BottomBorder;
}
setShadowBorders((KSvg::FrameSvg::EnabledBorders)borders);
}
Q_INVOKABLE void setDashWindow(QQuickWindow* w, QRegion mask, QUrl svg)
{
dashWindow = w;
if(!shadow)
{
shadow = new DialogShadows(this, svg.toString());
}
if(!w) return;
setDialogAppearance(w, mask);
}
Q_INVOKABLE void enableShadow(bool enable)
{
QWindow *window = static_cast<QWindow *>(dashWindow);
if(!shadow || !dashWindow) return;
if(enable && !shadowEnabled) shadow->addWindow(window);
else if(!enable && shadowEnabled) shadow->removeWindow(window);
shadowEnabled = enable;
}
Q_INVOKABLE bool fileExists(QUrl path)
{
if(!path.isLocalFile()) return false;
QFileInfo file(path.toLocalFile());
return file.exists() && file.isFile();
}
Q_INVOKABLE void setOrb(QQuickWindow* w)
{
orb = w;
}
Q_INVOKABLE void setMask(QString mask, bool overrideMask)
{
QString m = mask.mid(7).toStdString().c_str();
if(overrideMask)
{
if(inputMaskCache != nullptr) delete inputMaskCache;
inputMaskCache = new QBitmap(m);
}
else
{
if(!inputMaskCache)
{
inputMaskCache = new QBitmap(m);
}
}
}
// Uses QWindow::setMask(QRegion) to set a X11 input mask which also defines an arbitrary window shape. // Uses QWindow::setMask(QRegion) to set a X11 input mask which also defines an arbitrary window shape.
Q_INVOKABLE void setTransparentWindow() Q_INVOKABLE void setTransparentWindow();
{ Q_INVOKABLE void setActiveWin(QQuickWindow* w);
if(orb == nullptr || inputMaskCache == nullptr) return;
if(!KX11Extras::compositingActive()) Q_SIGNALS:
{ void defaultsChanged();
orb->setMask(*inputMaskCache);
printf("Set input mask correctly\n");
}
else if(KX11Extras::compositingActive())
{
orb->setMask(QRegion());
printf("Reset input mask\n");
}
}
Q_INVOKABLE void setActiveWin(QQuickWindow* w)
{
if(w == nullptr) return;
KX11Extras::forceActiveWindow(w->winId());
}
Q_INVOKABLE void setDialogAppearance(QQuickWindow* w, QRegion mask)
{
if(w == nullptr) return;
KWindowEffects::enableBlurBehind(w, true, mask);
}
public Q_SLOTS: public Q_SLOTS:
void onCompositingChanged(bool enabled) void onCompositingChanged(bool enabled);
{ void onShowingDesktopChanged(bool enabled);
setTransparentWindow();
}
void onShowingDesktopChanged(bool enabled)
{
if(enabled && orb != nullptr)
orb->raise();
}
protected: protected:
QBitmap* inputMaskCache = nullptr; QBitmap* inputMaskCache = nullptr;
QQuickWindow* orb = nullptr; QQuickWindow* orb = nullptr;
QQuickWindow* dashWindow = nullptr; QQuickWindow* dashWindow = nullptr;
DialogShadows* shadow = nullptr;
bool shadowEnabled = false;
}; };
#endif #endif

View file

@ -1,268 +0,0 @@
/*
SPDX-FileCopyrightText: 2011 Aaron Seigo <aseigo@kde.org>
SPDX-FileCopyrightText: 2020 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
//#include "debug_p.h"
#include "dialogshadows_p.h"
#include <KWindowShadow>
class DialogShadows::Private
{
public:
Private(DialogShadows *shadows)
: q(shadows)
{
}
~Private()
{
}
void clearTiles();
void setupTiles();
void initTile(const QString &element);
void updateShadow(QWindow *window, KSvg::FrameSvg::EnabledBorders);
void clearShadow(QWindow *window);
void updateShadows();
void windowDestroyed(QObject *deletedObject);
DialogShadows *q;
QHash<QWindow *, KSvg::FrameSvg::EnabledBorders> m_windows;
QHash<QWindow *, KWindowShadow *> m_shadows;
QList<KWindowShadowTile::Ptr> m_tiles;
};
DialogShadows::DialogShadows(QObject *parent, const QString &prefix)
: KSvg::Svg(parent)
, d(new Private(this))
{
setImagePath(prefix);
connect(this, SIGNAL(repaintNeeded()), this, SLOT(updateShadows()));
}
DialogShadows::~DialogShadows()
{
delete d;
}
DialogShadows *DialogShadows::self()
{
// KF6 port to Q_APPLICATION_STATIC
static DialogShadows *s_privateDialogShadowsSelf = nullptr;
if (!s_privateDialogShadowsSelf) {
s_privateDialogShadowsSelf = new DialogShadows(qApp);
}
return s_privateDialogShadowsSelf;
}
void DialogShadows::addWindow(QWindow *window, KSvg::FrameSvg::EnabledBorders enabledBorders)
{
if (!window) {
return;
}
d->m_windows[window] = enabledBorders;
d->updateShadow(window, enabledBorders);
connect(window, SIGNAL(destroyed(QObject *)), this, SLOT(windowDestroyed(QObject *)), Qt::UniqueConnection);
}
void DialogShadows::removeWindow(QWindow *window)
{
if (!d->m_windows.contains(window)) {
return;
}
d->m_windows.remove(window);
disconnect(window, nullptr, this, nullptr);
d->clearShadow(window);
if (d->m_windows.isEmpty()) {
d->clearTiles();
}
}
void DialogShadows::setEnabledBorders(QWindow *window, KSvg::FrameSvg::EnabledBorders enabledBorders)
{
if (!window || !d->m_windows.contains(window)) {
return;
}
d->updateShadow(window, enabledBorders);
}
void DialogShadows::Private::windowDestroyed(QObject *deletedObject)
{
QWindow *window = static_cast<QWindow *>(deletedObject);
m_windows.remove(window);
clearShadow(window);
if (m_windows.isEmpty()) {
clearTiles();
}
}
void DialogShadows::Private::updateShadows()
{
setupTiles();
QHash<QWindow *, KSvg::FrameSvg::EnabledBorders>::const_iterator i;
for (i = m_windows.constBegin(); i != m_windows.constEnd(); ++i) {
updateShadow(i.key(), i.value());
}
}
void DialogShadows::Private::initTile(const QString &element)
{
const QImage image = q->pixmap(element).toImage();
KWindowShadowTile::Ptr tile = KWindowShadowTile::Ptr::create();
tile->setImage(image);
m_tiles << tile;
}
void DialogShadows::Private::setupTiles()
{
clearTiles();
initTile(QStringLiteral("shadow-top"));
initTile(QStringLiteral("shadow-topright"));
initTile(QStringLiteral("shadow-right"));
initTile(QStringLiteral("shadow-bottomright"));
initTile(QStringLiteral("shadow-bottom"));
initTile(QStringLiteral("shadow-bottomleft"));
initTile(QStringLiteral("shadow-left"));
initTile(QStringLiteral("shadow-topleft"));
}
void DialogShadows::Private::clearTiles()
{
m_tiles.clear();
}
void DialogShadows::Private::updateShadow(QWindow *window, KSvg::FrameSvg::EnabledBorders enabledBorders)
{
if (m_tiles.isEmpty()) {
setupTiles();
}
KWindowShadow *&shadow = m_shadows[window];
if (!shadow) {
shadow = new KWindowShadow(q);
}
if (shadow->isCreated()) {
shadow->destroy();
}
if (enabledBorders & KSvg::FrameSvg::TopBorder) {
shadow->setTopTile(m_tiles.at(0));
} else {
shadow->setTopTile(nullptr);
}
if (enabledBorders & KSvg::FrameSvg::TopBorder && enabledBorders & KSvg::FrameSvg::RightBorder) {
shadow->setTopRightTile(m_tiles.at(1));
} else {
shadow->setTopRightTile(nullptr);
}
if (enabledBorders & KSvg::FrameSvg::RightBorder) {
shadow->setRightTile(m_tiles.at(2));
} else {
shadow->setRightTile(nullptr);
}
if (enabledBorders & KSvg::FrameSvg::BottomBorder && enabledBorders & KSvg::FrameSvg::RightBorder) {
shadow->setBottomRightTile(m_tiles.at(3));
} else {
shadow->setBottomRightTile(nullptr);
}
if (enabledBorders & KSvg::FrameSvg::BottomBorder) {
shadow->setBottomTile(m_tiles.at(4));
} else {
shadow->setBottomTile(nullptr);
}
if (enabledBorders & KSvg::FrameSvg::BottomBorder && enabledBorders & KSvg::FrameSvg::LeftBorder) {
shadow->setBottomLeftTile(m_tiles.at(5));
} else {
shadow->setBottomLeftTile(nullptr);
}
if (enabledBorders & KSvg::FrameSvg::LeftBorder) {
shadow->setLeftTile(m_tiles.at(6));
} else {
shadow->setLeftTile(nullptr);
}
if (enabledBorders & KSvg::FrameSvg::TopBorder && enabledBorders & KSvg::FrameSvg::LeftBorder) {
shadow->setTopLeftTile(m_tiles.at(7));
} else {
shadow->setTopLeftTile(nullptr);
}
QMargins padding;
if (enabledBorders & KSvg::FrameSvg::TopBorder) {
const QSize marginHint = q->elementSize(QStringLiteral("shadow-hint-top-margin")).toSize();
if (marginHint.isValid()) {
padding.setTop(marginHint.height());
} else {
padding.setTop(m_tiles[0]->image().height());
}
}
if (enabledBorders & KSvg::FrameSvg::RightBorder) {
const QSize marginHint = q->elementSize(QStringLiteral("shadow-hint-right-margin")).toSize();
if (marginHint.isValid()) {
padding.setRight(marginHint.width());
} else {
padding.setRight(m_tiles[2]->image().width());
}
}
if (enabledBorders & KSvg::FrameSvg::BottomBorder) {
const QSize marginHint = q->elementSize(QStringLiteral("shadow-hint-bottom-margin")).toSize();
if (marginHint.isValid()) {
padding.setBottom(marginHint.height());
} else {
padding.setBottom(m_tiles[4]->image().height());
}
}
if (enabledBorders & KSvg::FrameSvg::LeftBorder) {
const QSize marginHint = q->elementSize(QStringLiteral("shadow-hint-left-margin")).toSize();
if (marginHint.isValid()) {
padding.setLeft(marginHint.width());
} else {
padding.setLeft(m_tiles[6]->image().width());
}
}
shadow->setPadding(padding);
shadow->setWindow(window);
if (!shadow->create()) {
qDebug() << "Couldn't create KWindowShadow for" << window;
}
}
void DialogShadows::Private::clearShadow(QWindow *window)
{
delete m_shadows.take(window);
}
bool DialogShadows::enabled() const
{
return hasElement(QStringLiteral("shadow-left"));
}
#include "moc_dialogshadows_p.cpp"

View file

@ -1,40 +0,0 @@
/*
SPDX-FileCopyrightText: 2011 Aaron Seigo <aseigo@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef PLASMA_DIALOGSHADOWS_H
#define PLASMA_DIALOGSHADOWS_H
#include <QSet>
#include <KSvg/FrameSvg>
#include <KSvg/Svg>
class DialogShadows : public KSvg::Svg
{
Q_OBJECT
public:
explicit DialogShadows(QObject *parent = nullptr, const QString &prefix = QStringLiteral("dialogs/background"));
~DialogShadows() override;
static DialogShadows *self();
void addWindow(QWindow *window, KSvg::FrameSvg::EnabledBorders enabledBorders = KSvg::FrameSvg::AllBorders);
void removeWindow(QWindow *window);
void setEnabledBorders(QWindow *window, KSvg::FrameSvg::EnabledBorders enabledBorders = KSvg::FrameSvg::AllBorders);
bool enabled() const;
private:
class Private;
Private *const d;
Q_PRIVATE_SLOT(d, void updateShadows())
Q_PRIVATE_SLOT(d, void windowDestroyed(QObject *deletedObject))
};
#endif

View file

@ -1,346 +0,0 @@
NOTE! The GPL below is copyrighted by the Free Software Foundation, but
the instance of code that it refers to (the kde programs) are copyrighted
by the authors who actually wrote it.
---------------------------------------------------------------------------
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) 19yy <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
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
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) 19yy name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.

View file

@ -1,27 +0,0 @@
{
"KPlugin": {
"Authors": [
{
"Email": "wackyideas[at]disroot.org",
"Name": "WackyIdeas"
}
],
"Category": "Application Launchers",
"Dependencies": [
],
"Description": "Open application menu",
"EnabledByDefault": true,
"Icon": "start-here-kde",
"Id": "io.gitgud.wackyideas.SevenStart",
"License": "GPL v2+",
"Name": "Seven Start",
"Version": "1.0"
},
"X-Plasma-API-Minimum-Version": "6.0",
"KPackageStructure": "Plasma/Applet",
"X-Plasma-API": "declarativeappletscript",
"X-Plasma-MainScript": "ui/main.qml",
"X-Plasma-Provides": [
"org.kde.plasma.launchermenu"
]
}