blueman
blueman copied to clipboard
Manager: Use toggle button to replace status icon
Here is what I have so far. Still need to:
- cleanup
- drop menu entry
- perhaps change color of the button
The idea here is that the toggle button is "active" when bluetooth is enabled and showing label and icon what would happen if the button is pressed, disable bluetooth.
This should be it for now. Let me know if you want me to change or add things.
I think that makes a lot of sense. :ok_hand:
Not sure about the "active" visualization, though. It feels wrong that the button is highlighted (in sense of a primary action) when it allows to turn Bluetooth off while it's not when it allows to turn it on. From that perspective, I'd expect the contrary. Not sure, but it might make sense to just not highlight any of the states (I see that the state might be less obvious then).
Perhaps a Gtk.Switch is more appropriate as it can have proper on/off labels. Let me see how that looks.
Here is how I can look with a switch. I didn't add a label as I don't see what that would add, I can so let me know if you want it.
I think that's perfect!
Cool, I'll commit that and push it tonight.
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code
Updated with the switch