From 135d9dc0b682a977321951296a27f24e060bceb8 Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Thu, 8 Sep 2022 14:58:11 -0600 Subject: [PATCH] Move BadgeOverlay to Plasma Workspace Components It's broadly useful and can be used in other applets that want to show the same kind of text-based icon overlay thingy without re-inventing the wheel. --- .../package/contents/ui/CompactRepresentation.qml | 2 +- .../contents/ui => components/workspace}/BadgeOverlay.qml | 0 components/workspace/qmldir | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) rename {applets/batterymonitor/package/contents/ui => components/workspace}/BadgeOverlay.qml (100%) diff --git a/applets/batterymonitor/package/contents/ui/CompactRepresentation.qml b/applets/batterymonitor/package/contents/ui/CompactRepresentation.qml index 50190dff7..64044ae32 100644 --- a/applets/batterymonitor/package/contents/ui/CompactRepresentation.qml +++ b/applets/batterymonitor/package/contents/ui/CompactRepresentation.qml @@ -75,7 +75,7 @@ MouseArea { pluggedIn: batteryContainer.pluggedIn } - BadgeOverlay { + WorkspaceComponents.BadgeOverlay { anchors.bottom: parent.bottom anchors.right: parent.right diff --git a/applets/batterymonitor/package/contents/ui/BadgeOverlay.qml b/components/workspace/BadgeOverlay.qml similarity index 100% rename from applets/batterymonitor/package/contents/ui/BadgeOverlay.qml rename to components/workspace/BadgeOverlay.qml diff --git a/components/workspace/qmldir b/components/workspace/qmldir index 9e70915ae..6d63be1f2 100644 --- a/components/workspace/qmldir +++ b/components/workspace/qmldir @@ -2,3 +2,4 @@ module org.kde.plasma.workspace.components BatteryIcon 2.0 BatteryIcon.qml KeyboardLayoutSwitcher 2.0 KeyboardLayoutSwitcher.qml +BadgeOverlay 2.0 BadgeOverlay.qml