Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a preference to scale all UI text #3248

Merged
merged 7 commits into from
Jun 29, 2023
Merged

Provide a preference to scale all UI text #3248

merged 7 commits into from
Jun 29, 2023

Commits on Jan 31, 2023

  1. Provide a preference to scale all UI text

    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 #2982, #2461
    Nik Clayton committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    79235ef View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2023

  1. Merge branch 'develop' into 2461-font-scale

    Nik Clayton committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    a4533a9 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2023

  1. Merge remote-tracking branch 'upstream/develop' into 2461-font-scale

    # Conflicts:
    #	app/src/main/res/values/attrs.xml
    Nik Clayton committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    f967d26 View commit details
    Browse the repository at this point in the history
  2. Use the correct default style

    Prevents a horizontal line appearing between preferences.
    
    Update comments with full package names so that links work.
    Nik Clayton committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    4f901d9 View commit details
    Browse the repository at this point in the history
  3. Remove log statement.

    Nik Clayton committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    0588975 View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2023

  1. Configuration menu
    Copy the full SHA
    4295235 View commit details
    Browse the repository at this point in the history
  2. Code review feedback

    Nik Clayton committed Jun 28, 2023
    Configuration menu
    Copy the full SHA
    50b9e8d View commit details
    Browse the repository at this point in the history