https://bugs.kde.org/show_bug.cgi?id=460125

Nate Graham <n...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Suggestion for improving    |Allow Plasmoids to define
                   |experience of the system    |toggle actions that will be
                   |tray.                       |displayed interactively in
                   |                            |the expanded view
             Status|REPORTED                    |CONFIRMED
                 CC|                            |n...@kde.org
     Ever confirmed|0                           |1

--- Comment #1 from Nate Graham <n...@kde.org> ---
So basically, for the small number of Plasmoids that do have a clear "turn me
on or off" state, we split its button into two: a "toggle me" button and a
"take me to the full view" button? That kind of makes sense and would seem to
avoid most of the problems described in
https://community.kde.org/Get_Involved/Design/Lessons_Learned#Why_not_a_Control_Center.3F.

I think it could be implemented a bit more simply than adding a whole new
Representation type, though: we could add new metadata to Plasmoids to allow
them to expose a toggle action at their root item, and if the System Tray sees
that, it simply draws a new "toggle me" button in the corner of the item in the
expanded view, or draws the button as a split button as you've described.

I could see this making sense for any Plasmoid where you can currently
middle-click it to toggle something:
- Audio Volume (mute/unmute)
- Bluetooth (turn on/off)
- Media Player (pause/unpause)
- Notifications (enter/exit Do Not Disturb mode)

Essentially, we bubble up the middle-click functionality into a visible UI. And
it might make sense to implement for a new that don't currently have
middle-click-to-toggle-something functionality:
- Battery & Brightness (Manually inhibit/uninhibit sleep and screen locking;
maybe a borderline case as I'm not sure how common this functionality is for
people to actually use?)
- Networks (enter/exit Airplane Mode)

For the rest, no toggle action really makes sense IMO because the content is
inherently geared towards displaying multiple things.

Regardless, all of this would give us two-click "toggle things" functionality
as with a Control center, without losing the richness of the full views.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to