Feeder icon indicating copy to clipboard operation
Feeder copied to clipboard

Font size in article list

Open alter87 opened this issue 1 year ago • 2 comments

Checklist

  • [X] I have used the search function for OPEN issues to see if someone else has already submitted the same feature request.
  • [X] I have also used the search function for CLOSED issues to see if the feature was already implemented and is just waiting to be released, or if the feature was rejected.
  • [X] I will describe the problem with as much detail as possible.
  • [X] This request contains only one single feature, not a list of multiple (related) features.

App version

2.6.33

Where did you get the app from

Google Play

Feature or improvement you want

To add an ability to increase font size in article list.

Why should this be added?

Small font is uncomfortable to eyes. In-app font size customization is preferable to me than system font settings, because it not affects the layouts of other apps.

Screenshots / Drawings / Technical details

It should set up in the settings section, not by big steps (small, medium, large), but by entering a number (8 ... 20, for example).

alter87 avatar Nov 06 '24 09:11 alter87

I have poor near vision and so was curious if it was simple to change the article title font size by adjusting some value in code/config.

It was super simple to clone this git repo, and run ./gradlew installDebug to install a debug version of Feeder onto my phone.

This quick & easy process meant I could fiddle around with the code.

I'm not an Android developer or a Java/Kotlin developer but as the source was so nicely structured, I figured out that for the Card based article list, the code which controlled the display of article list items was located in the https://github.com/spacecowboy/Feeder/blob/master/app/src/main/java/com/nononsenseapps/feeder/ui/compose/feed/FeedItemCard.kt file.

So I fiddled with that file and found that by adding two lines, I was able to control the font size of the article title.

At line 70, I added:

import androidx.compose.ui.unit.sp

and afterwards, at line 226, I added:

fontSize = 27.sp,

This correctly changed the article title font size and when the title + article snippet content length is > than the Settings > Article list > Max lines size, it truncates the title + article snippet with ellipsis (...).

This is not a solution to the original poster's feature request but just a heads up for anyone wanting to change the article title font size (in a debug version of the app) for local use.

onelittlehope avatar Nov 06 '24 21:11 onelittlehope

Why not a setting which increases all text sizes by a common factor?

spacecowboy avatar Nov 07 '24 22:11 spacecowboy