Cosmic-Ide / rewrite

WIP Cosmic IDE rewrite
33 stars 6 forks source link

Improved App UI #66

Closed aikrq closed 1 year ago

aikrq commented 1 year ago

Improved App UI, fixed some bugs.

If something does not suit you, then feel free to write what I need to change to suit you.

Screenshots: Screenshot_20230724-191039 Screenshot_20230724-191357 Screenshot_20230724-191701

aikrq commented 1 year ago

For unknown reasons, I couldn't use the medium variant of the Inter font to display the title of the resource installation fragment. Setting the android:textStyle="bold" attribute made the text too bold, which wasn't suitable for my purposes. Therefore, I decided to leave it as it was.

I believe the reason for this issue is that the font has been set globally in the application theme, and changing it may affect other UI elements. I don't want to take the risk of changing this attribute in the theme and causing potential problems.

PranavPurwar commented 1 year ago

Looks alright

dont-doubt commented 1 year ago

Have you tried android:fontWeight="medium" instead? And something like that, i think? https://stackoverflow.com/questions/46589519/how-to-use-specified-weights-for-fonts-in-xml

If it's still not working, then you will have to add custom font with medium weight, because some of default ones supports only "regular" and "bold".

Anyways, using medium font in plain text manages it to be looking really much better than with the bold one

aikrq commented 1 year ago

Have you tried android:fontWeight="medium" instead? And something like that, i think? https://stackoverflow.com/questions/46589519/how-to-use-specified-weights-for-fonts-in-xml

If it's still not working, then you will have to add custom font with medium weight, because some of default ones supports only "regular" and "bold".

Anyways, using medium font in plain text manages it to be looking really much better than with the bold one

Note that this android:textFontWeight attribute has been available since API level 28.