-
Notifications
You must be signed in to change notification settings - Fork 47
fix: improve font size and layout for better accessibility (#39) #131
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
69dde5a
fix: improve font size and layout for issue #39
graycreate a7c1d21
fix: extend font size improvements to more UI components for issue #39
graycreate d167c66
refactor: implement more elegant font size scaling solution
graycreate 8157ea4
feat: complete font size adaptation for all remaining UI components
graycreate 92a59f9
fix: prevent duplicate font scaling and add settings page support
graycreate 4ab94af
feat: add real-time font size update in settings page
graycreate 8878d7d
fix: font size reduction now works correctly in settings
graycreate 92684fa
feat: add font size support to home filter menu
graycreate 7373ac0
fix: address PR review comments
graycreate f63af0e
fix: address Copilot review comments for code quality
graycreate File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,8 @@ | |
| <me.ghui.v2er.widget.CommonTitleTextView | ||
| android:id="@+id/title_tv" | ||
| style="@style/TopicTitle" | ||
| android:layout_below="@id/avatar_img" | ||
| android:layout_below="@id/time_tv" | ||
| android:layout_marginTop="8dp" | ||
|
||
| tools:text="[macOS]有人用 magnet 分屏的吗?好像有会导致系统卡顿的奇怪是的呵呵,里" /> | ||
|
|
||
| <de.hdodenhof.circleimageview.CircleImageView | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -134,6 +134,7 @@ | |
| <item name="android:textSize">@dimen/mediumTextSize</item> | ||
| <item name="android:textStyle">normal</item> | ||
| <item name="android:paddingTop">6dp</item> | ||
| <item name="android:lineSpacingMultiplier">1.3</item> | ||
|
||
| <!--<item name="android:transitionName">@string/share_element_topic_title</item>--> | ||
| </style> | ||
|
|
||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
getTitleSize()andgetSubTextSize()methods contain duplicated logic for reading preferences and switch statement structure. Consider extracting a common helper method that takes a mapping of size strings to dimension resources to reduce code duplication.