Skip to content

Commit

Permalink
Show widget name in Edit mode
Browse files Browse the repository at this point in the history
So it's easier to manage/interact with it
  • Loading branch information
luisbocanegra committed Oct 5, 2024
1 parent ae06970 commit 9235669
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions package/contents/ui/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ PlasmoidItem {
property bool vertical: plasmoid.formFactor === PlasmaCore.Types.Vertical
property bool leftEdgeLocation: plasmoid.location === PlasmaCore.Types.LeftEdge
property bool hideWidget: !tasksModel.hasActiveWindow && plasmoid.configuration.widgetElementsDisabledMode === WidgetElement.DisabledMode.Hide
property bool editMode: Plasmoid.containment.corona?.editMode ?? false

signal invokeKWinShortcut(string shortcut)
signal widgetElementsLayoutUpdated
Expand Down Expand Up @@ -329,13 +330,10 @@ PlasmoidItem {
}
]

Rectangle {
id: emptyWidgetPlaceholder

color: "transparent"
Layout.maximumWidth: Kirigami.Units.smallSpacing
Layout.minimumWidth: Kirigami.Units.smallSpacing
visible: widgetRow.Layout.minimumWidth <= Kirigami.Units.smallSpacing
PlasmaComponents.Label {
id: editModePlaceholder
text: Plasmoid.metaData.name
visible: editMode
}

Repeater {
Expand Down

0 comments on commit 9235669

Please sign in to comment.