Bug 479925

Summary: visual marker for multi-selectable grid view items
Product: [Plasma] xdg-desktop-portal-kde Reporter: fanzhuyifan
Component: generalAssignee: Nate Graham <nate>
Status: RESOLVED FIXED    
Severity: wishlist CC: 4wy78uwh, aleixpol, jgrulich, nate
Priority: NOR    
Version: 5.92.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 6.0

Description fanzhuyifan 2024-01-17 00:05:48 UTC
"we probably also need some kind of visual marker to differentiate the grid view items that will get activated by a single-click, and the ones that will be selected with a single click, and activated with a double-click or a click on the "Apply" button. Maybe for these, we should include little checkboxes in the corner so it's obvious that they're selectable and you can select more than one at a time, and that's why they don't activate on single-click"

See https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/merge_requests/261#note_851651
Comment 1 Bug Janitor Service 2024-01-17 21:23:28 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/merge_requests/263
Comment 2 Nate Graham 2024-01-18 17:23:58 UTC
Git commit eef3f4fdbda6f14c5bd38811a25bf12e248fccfa by Nate Graham.
Committed on 18/01/2024 at 18:21.
Pushed by ngraham into branch 'master'.

ScreenChooserDialog: overhaul interaction

Requires https://invent.kde.org/frameworks/kirigami/-/merge_requests/1432.

Right now this dialog has two modes: multi-select and single-select. The
active mode is currently unclear, since nothing communicates whether the
screen and window cards are multi-selectable or not. And in both modes,
cards have no hover feedback, which is inconsistent with the KDE style
for interactive UI elements.

This commit fixes those issues by refining the UI in various ways:
- Add hover feedback
- Use the new "I have a checkbox now" styling for checkable cards when
  in  the multi-select use case
- In single-selection mode, select on single-click and hide the Share
  and Cancel buttons, since they're no longer needed. This matches the
  behavior of the App Chooser dialog, which works in the same way
FIXED-IN: 6.0

M  +2    -0    src/PipeWireDelegate.qml
M  +46   -18   src/ScreenChooserDialog.qml

https://invent.kde.org/plasma/xdg-desktop-portal-kde/-/commit/eef3f4fdbda6f14c5bd38811a25bf12e248fccfa