Yuito-app-android/app/src/main/res
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
..
anim fix some lint warnings 2019-04-21 08:24:29 +02:00
color Theme refactoring (#1656) 2020-01-30 21:37:28 +01:00
color-v24 Fix crash on startup on Api levels 25 and lower (#2422) 2022-04-07 20:04:39 +02:00
drawable 3408 home help message (#3415) 2023-03-21 19:44:35 +01:00
drawable-v24 new app icon (#2695) 2022-09-13 19:48:09 +02:00
layout Provide a preference to scale all UI text (#3248) 2023-06-29 18:34:56 +02:00
layout-land Fix trending tags being cut off (#3745) 2023-06-15 11:27:57 +02:00
layout-sw640dp 3503: SwipeRefreshLayout must be higher level (#3504) 2023-04-20 19:36:29 +02:00
menu Add a menu option to load the newest notifications (#3708) 2023-06-11 20:04:49 +02:00
mipmap-anydpi-v26 new app icon (#2695) 2022-09-13 19:48:09 +02:00
raw Update gradle, kotlin and other dependencies (#2291) 2022-01-20 21:10:32 +01:00
values Provide a preference to scale all UI text (#3248) 2023-06-29 18:34:56 +02:00
values-ar Remove ReplacementSpan, display diffs using CharacterStyle (#3431) 2023-06-11 19:12:05 +02:00
values-be Remove ReplacementSpan, display diffs using CharacterStyle (#3431) 2023-06-11 19:12:05 +02:00
values-ber Replace “status” by “post” in strings name and source values (#2405) 2022-03-27 12:23:25 +02:00
values-bg Always publish image alt text 2023-04-24 11:48:40 +02:00
values-bn-rBD Always publish image alt text 2023-04-24 11:48:40 +02:00
values-bn-rIN Always publish image alt text 2023-04-24 11:48:40 +02:00
values-ca Remove ReplacementSpan, display diffs using CharacterStyle (#3431) 2023-06-11 19:12:05 +02:00
values-ckb Always publish image alt text 2023-04-24 11:48:40 +02:00
values-cs Always publish image alt text 2023-04-24 11:48:40 +02:00
values-cy Remove ReplacementSpan, display diffs using CharacterStyle (#3431) 2023-06-11 19:12:05 +02:00
values-de Remove ReplacementSpan, display diffs using CharacterStyle (#3431) 2023-06-11 19:12:05 +02:00
values-el Update translation files 2022-08-05 16:55:17 +00:00
values-en-rGB revert en-gb string update 2023-02-11 13:07:14 +01:00
values-eo Always publish image alt text 2023-04-24 11:48:40 +02:00
values-es Remove ReplacementSpan, display diffs using CharacterStyle (#3431) 2023-06-11 19:12:05 +02:00
values-eu Always publish image alt text 2023-04-24 11:48:40 +02:00
values-fa Translated using Weblate (Persian) 2023-06-18 13:46:58 +02:00
values-fi Always publish image alt text 2023-04-24 11:48:40 +02:00
values-fr Remove ReplacementSpan, display diffs using CharacterStyle (#3431) 2023-06-11 19:12:05 +02:00
values-fy Always publish image alt text 2023-04-24 11:48:40 +02:00
values-ga Always publish image alt text 2023-04-24 11:48:40 +02:00
values-gd Translated using Weblate (Gaelic) 2023-06-19 14:26:14 +02:00
values-gl Translated using Weblate (Galician) 2023-06-18 13:46:58 +02:00
values-hi Translated using Weblate (Hindi) 2023-06-18 13:46:58 +02:00
values-hu Translated using Weblate (Hungarian) 2023-06-12 11:36:31 +02:00
values-in Translated using Weblate (Indonesian) 2023-03-30 16:42:49 +00:00
values-is Remove ReplacementSpan, display diffs using CharacterStyle (#3431) 2023-06-11 19:12:05 +02:00
values-it Remove ReplacementSpan, display diffs using CharacterStyle (#3431) 2023-06-11 19:12:05 +02:00
values-ja Translated using Weblate (Japanese) 2023-06-15 11:27:03 +02:00
values-kab Support the mastodon 4 filter api (#3188) 2023-03-11 13:12:50 +01:00
values-ko Always publish image alt text 2023-04-24 11:48:40 +02:00
values-large Theme refactoring (#1656) 2020-01-30 21:37:28 +01:00
values-large-land fix compose field on landscape tablets (#2747) 2022-11-07 19:56:28 +01:00
values-lv Remove ReplacementSpan, display diffs using CharacterStyle (#3431) 2023-06-11 19:12:05 +02:00
values-ml Spelling (#2771) 2022-11-09 19:32:39 +01:00
values-nb-rNO Always publish image alt text 2023-04-24 11:48:40 +02:00
values-night #3178: Increase contrast for separator lines in dark themes (#3497) 2023-03-30 19:31:23 +02:00
values-nl Translated using Weblate (Dutch) 2023-06-18 13:46:58 +02:00
values-oc Translated using Weblate (Occitan) 2023-06-18 13:46:58 +02:00
values-or Translated using Weblate (Odia) 2023-05-09 15:44:10 +00:00
values-pl Remove ReplacementSpan, display diffs using CharacterStyle (#3431) 2023-06-11 19:12:05 +02:00
values-pt-rBR Remove ReplacementSpan, display diffs using CharacterStyle (#3431) 2023-06-11 19:12:05 +02:00
values-pt-rPT Translated using Weblate (Portuguese (Portugal)) 2023-06-11 15:14:11 +02:00
values-ru Remove ReplacementSpan, display diffs using CharacterStyle (#3431) 2023-06-11 19:12:05 +02:00
values-sa Remove ReplacementSpan, display diffs using CharacterStyle (#3431) 2023-06-11 19:12:05 +02:00
values-si Support the mastodon 4 filter api (#3188) 2023-03-11 13:12:50 +01:00
values-sk Spelling (#2771) 2022-11-09 19:32:39 +01:00
values-sl Always publish image alt text 2023-04-24 11:48:40 +02:00
values-small
values-sv Remove ReplacementSpan, display diffs using CharacterStyle (#3431) 2023-06-11 19:12:05 +02:00
values-sw380dp ComposeActivity refactor (#1541) 2019-12-19 19:09:40 +01:00
values-ta Always publish image alt text 2023-04-24 11:48:40 +02:00
values-th Always publish image alt text 2023-04-24 11:48:40 +02:00
values-tr Remove ReplacementSpan, display diffs using CharacterStyle (#3431) 2023-06-11 19:12:05 +02:00
values-uk Remove ReplacementSpan, display diffs using CharacterStyle (#3431) 2023-06-11 19:12:05 +02:00
values-v27 Android 12 support, update AndroidX libraries (#2367) 2022-03-09 20:50:23 +01:00
values-vi Translated using Weblate (Vietnamese) 2023-06-18 13:46:58 +02:00
values-w640dp Add trending tags (#3149) 2023-02-14 19:52:11 +01:00
values-zh-rCN Translated using Weblate (Chinese (Simplified)) 2023-06-18 13:46:58 +02:00
values-zh-rHK Always publish image alt text 2023-04-24 11:48:40 +02:00
values-zh-rMO Always publish image alt text 2023-04-24 11:48:40 +02:00
values-zh-rSG Always publish image alt text 2023-04-24 11:48:40 +02:00
values-zh-rTW Always publish image alt text 2023-04-24 11:48:40 +02:00
xml Add entry for "or" to locales_config.xml and donottranslate.xml (#3584) 2023-05-11 12:54:51 +02:00