Cope with changed font size #114
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Starfish/TinyWeatherForecastGermany#114
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Hi, I use systemwide settings to increase the font size - Settings/Display & brightness/Font & display size -> large
This completely messes up the layout of the app. I would not mind if the app would just ignore the system wide setting.
Hi @rz 👋
I'm a happy daily user of the app and looking forward to help you with this feature request.
As noted above I started looking into this. Please feel free to contribute to my PR.
Could you please provide a few more details to ease the further investigation of this issue?
app version
android device
Regards,
Jean-Luc
thanks for your efforts. I use the latest version from f-droid.org, 0.57.3
The device is a Realme 8 with Android 11 and I would be happy to test your patch
I did look into this and it is not that bad. I admit that I never tested the app for other font sizes than the default system setting.
I went trough the views and my findings are:
I should be able to fix this without ignoring the global font size setting. Will adapt the layouts a little bit. I think ignorig it is bad practise regading the UI.
The Clock & Weather widget looks messy on my device and resizing does not help.
@rz can you post a sceenshot how it looks like?
@rz thanks for the picture 👍
I experienced similar issues on some of my devices in the past. But removing and re-adding the widgets did fix it for me so far.
Hope this might work for you.
@Starfish might be able to share further insights based on the underlying code of the widgets.
I will fix this in one of the future releases. However, likely not in the next one.
Fixed for all the widgets:
25f21b02d5
6ed1d6bb9f
8f94b9bdaf
82f8482458
Fixed for the main app view:
859fa34443
Now also adapted the TextForecastViewActivity layout:
7493663381
The weather warnings look ok.
Everything is done, so I will close this issue. Please report if any broken layouts remain.
@eUgEntOptIc44 : #115 will remain closed because I accomplished the task by correcting some layouts and making some adaptions to dimen.xml.
Doing it programatically is probably a bad idea, because I doubt it would work with the widgets.
...and, in a lot of cases, you can keep "sp".
@Starfish thank you very much for your insights on this. 👍 I'm always keen to learn about new stuff.
I'm looking forward to testing the upcoming release. Is there already an ETA for this to share with us?
I'll make a userdebug today, still need to do some work regarding warnings in widgets and notifications about weather warnings.
There is one trick regarding the sp value: you can also set onther views that highly depend upon font size to sp instead of dp. 😄 Like icons, but also some parent views. You'll notice that now almost all icons also scale with system-wide font size changes. 😄😄😄
At the end, I had to force dp over sp in very few places only.
From a user perspective, it is simply better to use sp rather than dp whenever possible, so that the user feels comfortable with the font size.
I've compiled an userdebug.
Any feedback is very much appreciated. Please note that I still need to test all the views regarding display densities.
Everything is not yet guaranteed to look perfect on all devices. 😄
Happy 🥳 to share first tests on AndroidX86 (Android 9 running on x86 architecture) using latest user debug build:
Font size is looking perfect. Increased readability by a lot for me. Just the log text view seems not to be following suit. But this is rather low-prio because it's still readable.
Widgets all look great 👍
Yes that is true, did not take care of the logs...
no worries. As this is (presumably) of rather low priority to the majority of the users I think that hardly anyone else notices that.
I also translated the new strings (required for the weather warnings) to French, German and Italian. Should be pushed by weblate soon.
Just noticed about the strings, was wondering why German was at 100% 👍 , then I have seen you already translated them :-) Thanks!
Fixed logs:
3d9a5ca66b
Great thanks. Might be a good idea to use a distinct package name for that so that users of F-Droid can install it without uninstalling the app from F-Droid first. Also, it is frequently a good idea to test a fresh installation and stable and testing version in parallel.
Looks much better, some issues are left: