[Linux] Use segment control for setting noise control mode (#92)

* [Linux] Enhance GUI with icons

* Improve visibility

* Smarter hiding of battery values

* Add simple opacity based ear detection indication

* Hide disconnected devices

* Add airpods 3 icon

* Support more devices

* Better icons

* Add documentation

* Add segmented control

* Support keyboard navigation

* Fix ear detection when primary pod changes

* Support up to 9 modes with the keyboard

* Redisign

* Use id

* Use correct images

* Remove duplicates

* Use correct image

* Remove more merge conflicts

* Remove unused code

* Remove unused code

* Make all text readbale
This commit is contained in:
Tim Gromeyer
2025-04-04 09:40:32 +02:00
committed by GitHub
parent fb3f948250
commit e0624ce084
5 changed files with 137 additions and 17 deletions

View File

@@ -104,7 +104,12 @@ public:
// Set primary and secondary pods based on order
if (!podsInPacket.isEmpty())
{
primaryPod = podsInPacket[0]; // First pod is primary
Component newPrimaryPod = podsInPacket[0]; // First pod is primary
if (newPrimaryPod != primaryPod)
{
primaryPod = newPrimaryPod;
emit primaryChanged();
}
}
if (podsInPacket.size() >= 2)
{
@@ -166,6 +171,7 @@ public:
signals:
void batteryStatusChanged();
void primaryChanged();
private:
bool isStatus(Component component, BatteryStatus status) const