Yuito-app-android/app/src/main/res/values
Nik Clayton fe7b1529df
Provide a preference to scale all UI text (#3248)
Font scaling is applied in addition to any scaling set in Android system preferences. So if the user set the Android font size to largest (a 1.3x increase) and then sets the preference to 120%, the total change is 1.56x.

Create SliderPreference to adjust the preference.

- Use Slider, which supports float values and step sizes > 1
- Display the selected value in the preference's summary
- Provide buttons to increment / decrement the value

Restart the activity if the preference changes so that the user sees the impact of the change immediately. Fix a bug in PreferencesActivity where the "EXTRA_RESTART_ON_BACK" intent was never processed. Fix this to ensure that other activities are restarted so the new font scale takes effect.

Implement the scaling in BaseActivity by overriding onAttachBaseContext, and providing a wrapped context with the font scaling applied.

Fixes https://github.com/tuskyapp/Tusky/issues/2982, https://github.com/tuskyapp/Tusky/issues/2461
2023-06-29 18:34:56 +02:00
..
actions.xml Add "more" popup to a11y menu, fix #1710 (#1714) 2020-03-02 19:36:44 +01:00
attrs.xml Provide a preference to scale all UI text (#3248) 2023-06-29 18:34:56 +02:00
colors.xml new app icon (#2695) 2022-09-13 19:48:09 +02:00
dimens.xml Remove ReplacementSpan, display diffs using CharacterStyle (#3431) 2023-06-11 19:12:05 +02:00
donottranslate.xml Add entry for "or" to locales_config.xml and donottranslate.xml (#3584) 2023-05-11 12:54:51 +02:00
ids.xml Add ability to pin/unpin statuses (#872) 2018-10-03 21:27:52 +02:00
integers.xml Add trending tags (#3149) 2023-02-14 19:52:11 +01:00
plurals.xml Dialog notifying user of failure when media upload fails (#3135) 2023-01-27 20:50:45 +01:00
string-arrays.xml Support the mastodon 4 filter api (#3188) 2023-03-11 13:12:50 +01:00
strings.xml Provide a preference to scale all UI text (#3248) 2023-06-29 18:34:56 +02:00
styles.xml #3178: Increase contrast for separator lines in dark themes (#3497) 2023-03-30 19:31:23 +02:00
theme_colors.xml Show the difference between edited statuses (#3314) 2023-03-10 20:30:55 +01:00
toot_button.xml Upgrade to AndroidX, move to MaterialComponents theme (#953) 2018-12-17 15:25:35 +01:00