[Q] Where is the lockscreen time font clockopia set? - Android Software/Hacking General [Developers Only]

I have been on a mission to try and get the Motorola Defy lock screen looking like the stock android one.
So far I have managed to get the sliders and the layout the same but am stuck at the last hurdle getting the clock in the clockopia font.
You can't change it in the framework-res.apk layouts and because it currently uses a generic system font I can't just change the font in the fonts folder as that will change everything to clockopia. So I have decompiled the Defy android.policy.jar to look at the lockscreen.smali but I can't see any references to fonts or setting the typeface.
I take it that I need to add something like this in somewhere but I am no Java dev:
Typeface tf = Typeface.createFromAsset(getContext().getAssets(),"fonts/Clockopia.ttf");
mTimeDisplay.setTypeface(tf);
I also extracted the lockscreen.java out of the android open source project and I can't see where the clockopia font gets set in there either.
Could someone with the full open source project please do a grep for clockopia and see where it is set?
I would really appreciate some help and direction on this one.

OK found it in the framework.jar

Related

help editing deskclock app

I'm trying to edit the DeskClock app to change the android font for the time and change the music shortcut (when docked) from the default app to mixzing. So far I've been able to successfully change the font (just overwrote the original clockopia.ttf with a renamed tahoma bold ttf) but when I open the regular clock app the time on the bottom gets cut off.
If anyone would be so kind to help, I'm looking to get the font size changed for the time at the bottom of the page and replace the shortcut for the music when docked to mixzing (com.mixzing.basic.apk)
Thank you very much.
For the font size you'll need to change the layout xml... however you might find that the xml using a variable parsed from another function. In that case you'll need to identify the function and change the java code. I've not looked at the app but suspect an xml change will be sufficient.
As for the shortcut, that will almost certainly require java changes... if you don't know how to code this then that might be a little difficult for you... you'll be looking for an assembler file (.smali) for this.

[HELP] Resizing custom font in TF3D weather?

Anyone know how?
I've renamed a font to replace the default HelveticaNeue Thin font and dumped it in windows/font -- and it looks great (mostly) except for weather. Current weather usually only displays part of a digit and always (usually only) the degree symbol.
I'm not sure if this is something that needs to be done before copying over the font file or if there's a registry entry that I can edit for this.
Help would be appreciated.
Moved as not theme release.

Changing the clock color...

I remember on the TP2 I was able to change the clock to a clear shot. Is there a way we can do this on the android platform?
in gb you will need to decompile systemui.apk and change it in the statusbar.xml

[Q] changing gray colors in ICS

I am new to theming. I extracted some apks from the ICS OTA and tried to change the gray colors in options menu (gri.png attachment) and calculator background. However, I couldn't find which png to change or if I need to change something else.
Can you please explain how to change these colors? Thanks! I really need this before getting crazier

Question How to change Lockscreen/AOD clock font only in OneUI 4.1

I like using the Default (Roboto) font but the Samsung font used for the Lockscreen and AOD clock is ugly and has inconsistent spacing. Changing the system font to any other option changes the clock style. When I use a font installer to install Roboto, it does change the clock, but creates an issue where font weight and spacing are incorrect in many apps. Yes, I also tried a variable font version as well. I realize that Samsung is likely using multiple font files to create Default and the font installer is limited. I also tried GoodLock with Clock Face but almost all centered options use the ugly Samsung font too.
Does anyone know how to change just the Lockscreen and AOD clock fonts? Back in the day, someone was able to modify Good Lock to give extra options but I'm hoping there is a simpler solution. Thanks in advance.
Hello. I have the exact same thoughts about the default One UI lockscreen font. Could you please share a bit more details on the Good Lock extra options?
Btw, I did try to install the system font with the Roboto TTF file like you mentioned in the OP and the lock screen looks much better now. I do get your point about "issue where font weight and spacing are incorrect in many apps", but fortunately for me, WhatsApp is the only app where I see this. And it does not look all that bad. So I believe I'm going to stick to this way.
Here's how:
Download 'SetEdit (Settings Database Edit)' from Google Play Store.
Open and find 'theme_font_clock' row, then tap it.
Tap 'Edit Value' and input with your font path addreses (*example: /storage/emulated/0/My Fonts/DS-DIGIB.TTF).
Tap 'Save Changes' and you're done!
Take a look!
*supports .ttf and .otf formats
works without root
Found it on reddit
https://www.reddit.com/r/oneui/comments/zbid5l
Confirmed, does NOT work in OneUI 5.0. Was excited too.
I hope there will be another way...

Categories

Resources