help editing deskclock app - Nexus One Themes and Apps

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.

Related

[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.

Shortcut/Start Menu pictures on installed app

Where do add-on apps I install store there shortcut pictures? I have one app who's quicklink picture looks way old and out of place, but I can't seem to find the picture on my phone so I can change it and make it look more modern.
Anyone know?
well, to answer you question, i don't know where they are stored.
but to change them, i use Change Start Menu Icon. works perfectly and does the grunt work for ya.
cheers.
I found the problem. The app is hard coded the start menu icon into it's code somewhere (like exe files on your pc sometimes do).
Anyway, I found where programs point to their start menu icons in
HKEY_LOCAL_MACHINE\Security\Shell\StartInfo\Start\ProgramName.lnk
This app didn't have a Icon entry like some of the others, so I added one and pointed it to a Icon.png file I had made for it and placed in the same directory the program was installed in.
Powered off the phone and then back on and it's using the new icon.
The only problem I'm having now is making a png file with transparency that works as a start menu icon in sense quicklinks. The icon has it's transparency in the windows start menu and when I click to add a quicklink in the program list. But once added to the homepage quicklinks, the transparency section is visible. I don't understand it. viewing it in the HTC's picture viewer also correctly handles the transparent part.
Anyone have any ideas? Here's three screens showing what I mean. The WM screen, the add-program-to-quicklinks screen and the Sense home screen (running CHT 1.7.1):
BTW, here's the icon image if anyone want to take a look.
Phantoms said:
I found the problem. The app is hard coded the start menu icon into it's code somewhere (like exe files on your pc sometimes do).
Anyway, I found where programs point to their start menu icons in
HKEY_LOCAL_MACHINE\Security\Shell\StartInfo\Start\ProgramName.lnk
This app didn't have a Icon entry like some of the others, so I added one and pointed it to a Icon.png file I had made for it and placed in the same directory the program was installed in.
Powered off the phone and then back on and it's using the new icon.
The only problem I'm having now is making a png file with transparency that works as a start menu icon in sense quicklinks. The icon has it's transparency in the windows start menu and when I click to add a quicklink in the program list. But once added to the homepage quicklinks, the transparency section is visible. I don't understand it. viewing it in the HTC's picture viewer also correctly handles the transparent part.
Anyone have any ideas? Here's three screens showing what I mean. The WM screen, the add-program-to-quicklinks screen and the Sense home screen (running CHT 1.7.1):
Click to expand...
Click to collapse
delete finch.png file: Application Data\HTC\ProgLauncher\finch.png
Change icon. Add Quicklink!! OK?
There's no finch.png in that directory. There is a program launch file "FinchSync_SP.bmg" in that directory.
The actual program and icon file are stored on my storage card at
\Storage Card\Program Files\FinchSyncSP
album.cache
finch.png
finchconfig.txt
FinchSync_Core.dll
FinchSync_SP.exe
InTheHand.Interop.dll
InTheHand.WindowsMobile.PocketOutlook.dll
syncinfo.txt
The default install of FinchSync has the program's icon hard coded, not a separate icon (png) file. If I delete the finch.png file, after a power cycle it goes back to using the default hard coded icon. Put the icon back and it does as I posted above, showing transparency everywhere except as a Quicklink. I've tried renaming the filename and then changing the reg entry outlined above to the new name and same thing.
FinchSynch is an older WM app, but I use it because I can sync my contacts and calendar with Mozilla Thunderbird, Calendar and Address book. I do not have or use Outlook to sync too, so I use FinchSync for this.
I found it. It's not a png file from that directory, but the bmg file.
So it was Application Data\HTC\ProgLauncher\finch.bmg
Once I deleted that, it picked up the new icon with transparency.
Phantoms said:
I found it. It's not a png file from that directory, but the bmg file.
So it was Application Data\HTC\ProgLauncher\finch.bmg
Once I deleted that, it picked up the new icon with transparency.
Click to expand...
Click to collapse
Ok!! del *.bmg!! Sorry!!
I thought I had posted the screen, but here it is with transparency. Thanks again.

How to Link to a different font, and not just replace a font

Hi All,
I have done a ton of searching the last few days and still have not come up with a specific answer. I am looking to link my lock screen font to a new font, and not just change or replace the font.
I am running a Moto DroidX with 2.3.3 (605) and using Go Launcher EX... just incase any of it matters.
My clock is not pulling from Clockopia.ttf, instead its pulling from the same font the rest of the system is (such as notifiers and such), and that is DroidSans-Bold. To test and make sure I was correct, I replaced the DroidSans with some wacky font, and it turned every peiece of system based font into the wacky one, clock and notifications included.
Because of this I am unable to easily change just the clock font. I wanted to replace the clock font with an invisible one so I could have a simple and easy way for my lock screen to look directly at my home screen with no clutter. I have read a few apps let you replace the lock screen, but don't really want to run anything new as a constant process just to hide a font. I'm also satisfied with the basic structure and functionality of the default lock screen minus the time and verizon banner. Does anyone know the specific config file and location where I can specify which font the lock screen pulls from?
Are there any apps, free or paid, that will help me accomplish this exact task? What I most liked about the invisible font was that it's easily reversible and all I had to do was backup the original font file. I've already bought several good utilities and am not affraid to pay for one more as long as it does what I want in a simple and reversible way... and Ideally will not run anything full time backround services.
Thanks.
Booo! No takers with some info on this one?

Excessive line spacing when using ttf fonts on Android

Hi, when I use certain ttf files as the system font in Android, I get excessive spacing above and below the text, which makes lines of text widely spaced apart. In addition, text does not align correctly because of the extra space.
Using FontForge, I have adjusted the metrics of the font, such as Em Size, Ascent/Descent, Grid Fitting and Lookups. I have also tried taking a ttf file that displays correctly and copying its properties to my font file and copying all the glyphs of my desired font into it. None of the above solved the issue.
I have attached 2 ttf files of the same font. One displays correctly and the other doesn't. It seems like Android is natively adding space to the top and bottom of certain fonts.
Anyone has any idea what property of the font might be the cause?

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