DroidWorksStudio / mLauncher

Minimal Launcher app for Android. Customized olauncher as I just started learning kotlin .
GNU General Public License v3.0
203 stars 20 forks source link

[Enhancement] Custom Fonts #45

Closed scrazzz closed 1 year ago

scrazzz commented 1 year ago

Motivation behind feature

I would like this app to support using custom fonts. And also maybe this can be a challenge that you can take up ;)

Proposed Feature

Allow changing fonts from settings. Only a select few fonts can be added into the app so that the app isn't blaoted. Additionally, maybe allow users to set the font of their own liking by uploading a .tts file to the app settings.

Possible alternatives (if applicable)

N/A

Additional context

NA

HeCodes2Much commented 1 year ago

something like google font?

scrazzz commented 1 year ago

Uh, sure? Not sure what you meant by that.

HeCodes2Much commented 1 year ago

Like have a drop-down with a list of fonts aka google fonts for users to chose from?

scrazzz commented 1 year ago

Yes, that would be great 👍

HeCodes2Much commented 1 year ago

would this be just for the home screen and app list not for the settings screen?

scrazzz commented 1 year ago

Yes, whichever is easier to implement.

HeCodes2Much commented 1 year ago

this ill need to look into as having fonts added to the apk can make it bigger and that's not something i want i may look into doing it the downloadable fonts way but i also don't really want to add that eather as that requires INTERNET permission wish we dont require until i start adding widgets (if i chose to follow that path)

scrazzz commented 1 year ago

Proposed Feature

Allow changing fonts from settings. Only a select few fonts can be added into the app so that the app isn't blaoted.

HeCodes2Much commented 1 year ago

I get that but I'd only add 3 nerd fonts and they may not be the ones you want. So having a few I like wouldn't really work that good.

HeCodes2Much commented 1 year ago

^^

soon you can go to https://the-repo-club.github.io/charmap/ and use feathericons.ttf on the home screen and rename apps...

HeCodes2Much commented 1 year ago

artifacts if you want to test this before release

NerdFont if you wanna try nerd font build nerdfonts

HeCodes2Much commented 1 year ago

Screenshot_20230101-051757

How I like mine :)

scrazzz commented 1 year ago

Screenshot_20230101-051757

How I like mine :)

This is what I was looking for. Thanks!

HeCodes2Much commented 1 year ago

I'm sorry to let you know but for the time being I have had to revert this feature until I can work out how to make the backup work with non English fonts sorry for the inconveniences this may cause.

HeCodes2Much commented 1 year ago

@scrazzz so i have found the issue and it will be readded in the next version

HeCodes2Much commented 1 year ago

Here is a test backup file if you want to test it out :)

just so you know.... github wont show the icons in the json but the app will

JSON ```json { "APP_NAME_0": " Phone", "APP_NAME_1": " Browser", "APP_NAME_2": " Messages", "APP_NAME_3": " Bank", "APP_NAME_4": " Wages", "APP_NAME_5": " Email", "APP_NAME_6": " Proton", "APP_NAME_7": " Pass", "APP_NAME_8": " Square", "APP_NAME_9": "例 Snapchat", "APP_NAME_10": " Play Store", "APP_NAME_11": " Settings", "APP_ALIAS_0": "", "APP_ALIAS_1": "", "APP_ALIAS_2": "", "APP_ALIAS_3": "", "APP_ALIAS_4": "", "APP_ALIAS_5": "", "APP_ALIAS_6": "", "APP_ALIAS_7": "", "APP_ALIAS_8": "", "APP_ALIAS_9": "", "APP_ALIAS_10": "", "APP_ALIAS_11": "", "APP_USER_0": "UserHandle{0}", "APP_USER_1": "UserHandle{0}", "APP_USER_2": "UserHandle{0}", "APP_USER_3": "UserHandle{0}", "APP_USER_4": "UserHandle{0}", "APP_USER_5": "UserHandle{0}", "APP_USER_6": "UserHandle{0}", "APP_USER_7": "UserHandle{0}", "APP_USER_8": "UserHandle{0}", "APP_USER_9": "UserHandle{0}", "APP_USER_10": "UserHandle{0}", "APP_USER_11": "UserHandle{0}", "APP_PACKAGE_0": "com.google.android.dialer", "APP_PACKAGE_1": "org.mozilla.firefox", "APP_PACKAGE_2": "com.google.android.apps.messaging", "APP_PACKAGE_3": "co.uk.getmondo", "APP_PACKAGE_4": "arproductions.andrew.expenselog", "APP_PACKAGE_5": "com.google.android.gm", "APP_PACKAGE_6": "ch.protonmail.android", "APP_PACKAGE_7": "dev.msfjarvis.aps", "APP_PACKAGE_8": "com.squareup", "APP_PACKAGE_9": "com.snapchat.android", "APP_PACKAGE_10": "com.android.vending", "APP_PACKAGE_11": "com.android.settings", "APP_ACTIVITY_0": "com.google.android.dialer.extensions.GoogleDialtactsActivity", "APP_ACTIVITY_1": "org.mozilla.firefox.App", "APP_ACTIVITY_2": "com.google.android.apps.messaging.ui.ConversationListActivity", "APP_ACTIVITY_3": "co.uk.getmondo.splash.SplashActivity", "APP_ACTIVITY_4": "arproductions.andrew.expenselog.MainActivity", "APP_ACTIVITY_5": "com.google.android.gm.ConversationListActivityGmail", "APP_ACTIVITY_6": "ch.protonmail.android.mailbox.presentation.ui.MailboxActivity", "APP_ACTIVITY_7": "com.zeapo.pwdstore.LaunchActivity", "APP_ACTIVITY_8": "com.squareup.ui.PaymentActivity", "APP_ACTIVITY_9": "com.snapchat.android.LandingPageActivity", "APP_ACTIVITY_10": "com.android.vending.AssetBrowserActivity", "APP_ACTIVITY_11": "com.android.settings.Settings", "HOME_APPS_NUM": 12, "HIDDEN_APPS": [], "FIRST_OPEN": false, "HIDDEN_APPS_UPDATED": true, "HOME_CLICK_AREA": true, "FIRST_SETTINGS_OPEN": false, "AUTO_OPEN_APP": false, "TIME_ALIGNMENT": "Center", "DRAWER_ALIGNMENT": "Right", "HOME_ALIGNMENT": "Left", "com.android.chrome": "Chrome" } ```
milesmcclane commented 4 days ago

Screenshot_20230101-051757 How I like mine :)

This is what I was looking for. Thanks!

Sorry to dredge up a closed topic, but how do I get this type of look? I can't see anywhere how to change font or add some icons! Looks great though.

HeCodes2Much commented 4 days ago

check this page for the font to use Wiki / Icons

milesmcclane commented 4 days ago

check this page for the font to use Wiki / Icons

Ah OK, so it's necessary to install the fonts at a system level? If I have understood that correctly that rules me out then, I use GrapheneOS and this isn't an option on the OS. Shame - it looks cool! Cheers for your help.

HeCodes2Much commented 3 days ago

Ah OK, so it's necessary to install the fonts at a system level? If I have understood that correctly that rules me out then, I use GrapheneOS and this isn't an option on the OS. Shame - it looks cool! Cheers for your help.

No you do not need to install anything the font is already used within the app itself all you do is copy and paste the icon from nerd font when renaming an app.

milesmcclane commented 3 days ago

Ah OK, so it's necessary to install the fonts at a system level? If I have understood that correctly that rules me out then, I use GrapheneOS and this isn't an option on the OS. Shame - it looks cool! Cheers for your help.

No you do not need to install anything the font is already used within the app itself all you do is copy and paste the icon from nerd font when renaming an app.

Oh, wow! Thanks!

HeCodes2Much commented 3 days ago

Oh, wow! Thanks!

your welcome :)