IceCubes/IceCubesApp/App/Tabs
Paul Schuetz 59b16d86a7
Fix the lag of the display setting sliders (#1342) close #1341
* Fix the lag of the display setting sliders

The sliders in the display settings were laggy because changing the value in the
theme class needs comparatively much time. This writing to the class is now
only done when the user lets go of the slider, so sliding it is responsive. I
was unable to make writing to the class more responsive, the example post needs
therefore a short time before it accepts the new values. Furthermore, all
AppStorage keys are now realized with a ThemeKey to clean the class up.
Fixes #1341

Signed-off-by: Paul Schuetz <pa.schuetz@web.de>

* Remove unnecessary changes to theme

The changing of theme keys is unnecessary for the fix oft the lag, so it's
removed.

Signed-off-by: Paul Schuetz <pa.schuetz@web.de>

* Rework fix to be more similar to other lag fixes

The fix now uses the ...LocalValues class, which published updates only every
half a second.

Signed-off-by: Paul Schuetz <pa.schuetz@web.de>

---------

Signed-off-by: Paul Schuetz <pa.schuetz@web.de>
2023-03-31 15:34:24 +02:00
..
Settings Fix the lag of the display setting sliders (#1342) close #1341 2023-03-31 15:34:24 +02:00
Timeline Accessibility tweaks + Notifications and Messages tab uplift (#1292) 2023-03-24 07:52:29 +01:00
ExploreTab.swift Make secondary column available on any size + add a toggle + faster macOS window resize 2023-02-21 13:37:31 +01:00
MessagesTab.swift Bind tabs to client.id 2023-02-14 14:27:29 +01:00
NotificationTab.swift Swiftformat . 2023-02-22 19:09:39 +01:00
ProfileTab.swift Bind tabs to client.id 2023-02-14 14:27:29 +01:00
Tabs.swift SwiftFormat 2023-03-13 13:38:28 +01:00