Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

Remove ignore: deprecated_member_use and adopt nonlinear text scaling #983

@LongCatIsLooong

Description

@LongCatIsLooong

Existing issue?

What happened?

2 ignore: deprecated_member_use were added in #982 to temporarily address textScaleFactor deprecation. They should be removed and the codebase should switch to using TextScaler instead.

Currently some UI components are scaled by text scale factor (an example:

20 * textScaleFactor / 2
: 175 + 140 * textScaleFactor / 2,
) which may not work as well with nonlinear text scaling, as the text scaling curve isn't designed to scale non-textual contents (e.g. it may not work well when the dimension is not in the typical font size range).

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Priority 2 - Should haveenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions