Skip to content

Commit

Permalink
Merge pull request #59 from luisbocanegra/widget-visibility-qol
Browse files Browse the repository at this point in the history
  • Loading branch information
antroids authored Oct 7, 2024
2 parents e22dc63 + 9235669 commit 538e223
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions package/contents/ui/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,16 @@ PlasmoidItem {
property bool widgetHovered: widgetHoverHandler.hovered
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

Plasmoid.constraintHints: Plasmoid.CanFillArea
Plasmoid.status: hideWidget
? PlasmaCore.Types.HiddenStatus
: PlasmaCore.Types.ActiveStatus
Layout.fillWidth: !vertical && plasmoid.configuration.widgetFillWidth
Layout.fillHeight: vertical && plasmoid.configuration.widgetFillWidth
preferredRepresentation: fullRepresentation
Expand Down Expand Up @@ -325,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 538e223

Please sign in to comment.