Android Command-Line Icon Converter - Design, Prototyping, UI, Graphics

Hi there,
As the process of creating Icons for Android was very annoying to me (design an icon, export it for 5 densities, change the color to make it "disabled", save it again 5 times ...) I wrote a command-line tool for this task. I guess it will help everyone who doesn't like this time consuming process too I know there are online tools to convert one icon to the right sizes for each density, but have a look at what icon-converter can do:
The main idea is to have one SVG file for each icon. You do not have to have different SVG files for the states (e.g. enabled and disabled) but you can use icon-converter to change one or more colors in the icon.
Having all the SVG's, you can simply write a .sh script to "compile" all the icons at once, meaning that icon-converter creates all PNG's with the given settings (density, colors, scale, even versioning is supported, renaming files so that you can find them after compiling). The PNG's are then stored directly in the right drawable-directories. E.g. when you change an icon which has different states, you only have to execute your script once and do not have to export PNG's by yourself.
Please have a look at this tool, there are some examples online:
iconconverter.android-msapps.com
It runs on Linux and Windows.
Do you have any suggestions to improve the software?
Best
Markus

Related

How to Change Outlook Mobile Fonts on WM6??

I have successfully changed System fonts; popup menu fots etc. howver no what what i do my Today and Outlook Mobile Fonts (font that displays the messages in inbox etc) don't change.
please let me know how to change those....
Anyone there to help???
How did you change the system font?
I'd like to change the system font to a simple arial font and can't figure out how to do that. Any ideas?
Also, any ideas about how to change the menus so they show up as a list rather than tiled icons?
copy the required font to Windows/Fonts directory of your windows mobile...
Check the following registry sections:
HKEY_LOCAL_MACHINE\System\GDI\SYSFNT\Nm
HKEY_LOCAL_MACHINE\System\GWE\Menu\BarFnt\Nm
HKEY_LOCAL_MACHINE\System\GWE\Menu\PopFnt\Nm
HKEY_LOCAL_MACHINE\System\GWE\OOMFnt\Nm
in Nm use the font you have just pasted in Windows/Fonts
by the way i have also found a way to change the system/outlook/today font:
e.g; i like Calibri Font, so i renamed the regular Calibri font as Tahoma.ttf and bold calibri font as tahomabd.ttf and replaced the ones in Windows... reset and it was changed.
.
Just a tip for anyone, there is a chance you will run into problems using the windows\fonts directory for a system font file, I highly recommend placing the font directly in the Windows directory, also the last installed font in the Windows\fonts directory will be used, for example, if you drop Impact.ttf in the fonts direcotry, and power off/on the device, you will have impact as the font in PocketIE.
I just change the GDI setting myself, and drop the same file in the windows directory, and the fonts directory.
I only bother to mention this, because quite awhile back I was using the fonts only directory, and ran into issues, not implying that everyone will have the same issues.
I imagine if you just did the filename changing, you wouldnt even need the registry hacks too, good pointing that out, I never figured out that one, and went around and around at one time looking for a date plugin that used the font specified in the registry.

[APP][01-26-09][*VGA+]SplashScreenRandomizer 1.4.0 All form factors & image formats!

[APP][01-26-09][*VGA+]SplashScreenRandomizer 1.4.0 All form factors & image formats!
Splash Screen Randomizer 1.4.0 Swap for a random splash screen at startup. Supports all major form factors and image formats!
AppToDate should be working for all versions
Updated to 1.4.0 on 01-26-09
Notable Changes
Major form factor support added(QVGA,VGA,WVGA[testers needed]). Screen layout and image importing is now dynamic
IO Mode switches on automaticaly on first run if your phone is windows mobile 6.0 or below (i.e < 5.2.19000)
OpenFile 2.0 included (my extended Mobile Practices codebase)
File attributes on default splash are adjusted to work better with IO Mode
Better error handling added
lots of backend improvements and UI Tweaks
Richer UI coming soon
Intro
Splash Screen Randomizer is comprised of two applications. The first is a very small application[SplScrnRnd] that runs at startup and either replaces your splash screen file or changes the associated registry setting to a random file from a folder of your choice. This gives you a new splash screen each time you boot! The second app[SplScrnRnd Settings], as it's name would suggest is a tool to adjust SplScrnRnd's settings and customize the splash screens that you load. By default you'll be greeted with a random image each time you boot, but you can choose to use a specific screen you like or import your own images and randomize those!
How To Use
When you install Splash Screen Randomizer It will create a folder in \My Documents\Splashes (You can change this folder after install if you want) Depending on which version you download you may have 2 splash screens or 13 in your splashes folder. The normal version only includes the splash screen by black_shadow69 splash.black. While the other has one of nuthin's splash screens, some of mine, and a whole bunch of black_shadow69's.
You can change the Splashes directory, import files, or adjust settings by launching "SplScrnRndStg" From Start --> Programs.
Note to Cooks: At any point, you can change the settings manually by editing the .xml file in the same directory as SplScrnRnd.exe and Randomizer.dll. You can cook SplScrnRnd.exe into your roms without even including SplScrnRndStg.exe or OpenFile.dll
As always you can drag .png or .bmp images into your splashes folder to add them into the loop.
To use an image that is not .bmp or .png:
Method 1
Choose 'Import/Multi...' from the main settings screen
Choose 'Import File' or 'Import Folder' (whichever is appropriate).
SSR will scan the folder or file and will attempt to scale the image appropriately(if you don't like the way it's scaled copy it manually as a .png or .bmp into your Splashes folder).
Method 2
You can also check "Use Specific Screen" to always use a specific splash. This will scale the image and save it to your splashes directory with a .png extension(if it's not already in your splash directory).
Quirks or Issues[01-26-09]
The default version of SSR comes with a splash screen in 320x240(96dpi) and 640x480(192dpi). you can delete one or both if they dont fit your screen. or move it and import it
Note1 you can download splashes.zip and import the entire folder to automatically scale them appropriately for your phone.
Note2 In the next build Ill prompt to automatically resize the default splashes for the current screen on first run.
Multi Mode is not supported in IO Mode
Future Thoughts(Feel Free to add your own)[01-26-09]
Only two versions will be out next. SSR will offer to reformat the splashes for your screen on first start for next build(sound good?)
The interface should scale appropriately now for all form factors, but Ill be creating more custom layouts for each format soon
Rich UI with suport for current WM theme? or would you guys rather have full control of the layout ie. template for controls and images(seems a bit much)?
Credits
Black_Shadow69 Nearly all of the splash screens included in the larger version come from this thread http://forum.xda-developers.com/showthread.php?t=382745
nuthin The larger version also includes a Merlin splash screen I did a while back with a backdrop that was done by nuthin and released with the core kitchen
José Salazar of mobile practices for speeding things up with the base code for the open file control in SSR
http://www.mobilepractices.com/2008/02/custom-openfiledialog-implementation.html
Les Smith of KnowDotNet for speeding things up with the base code for the persistent settings
http://www.knowdotnet.com/articles/cfcsetting.html
l3v5y Registry Tip: See Here
Older Changes
Updated to 1.3.0 on 07-27-08
Added IO Mode - IO mode is for backwards compatibility, it will replace your default screen when the app is run instead of changing the registry setting. If you had problems with the more recent releases of SSR this should smooth things out for you [*See "Quirks Or Issues" for more info*]
Added Support for AppToDate an excellent app to keep your programs up to date.
Recommended Install Method if you use AppToDate to minimize download size
Download Splash Screen Randomizer Without Splashes OR view the attached .txt file and save it in "\Application Data\AppToDate\SplashScreenRandomizerA2D.xml" on your device(The icon will come with the installer after you update)
Download Splashes.Zip and extract them into your splashes folder(default is "\My Documents\Splashes"
Run AppToDate and SSR as usual
Updated From 1.0 to version 1.2.5 on 4-13-08
Changes From 1.0 to 1.2.5
Now use ANY of the major image formats(.bmp,.gif,.jpg,.jpeg,png,.tif) as your splash screen(the image is scaled and saved as a .png in your splashes folder)
The settings screen is now drawn dynamically(i.e. no scrollbars should be displayed when in portrait or landscape mode)
.bmp and .png files will be displayed/randomized if they are in your splashes folder
option added to replace your default splash(original splash is saved to your splashes folder)
Optimized code in several places and reduced overall size
Due to it's size, the default splash included with the smaller version is black_shadow69's black version below
If you had 0.7.5 you should uninstall it first and delete the directory called "SplashScreenRandomizerSetup" in your program files(you don't have to do that from 1.0 on)
Changes From 0.7.5 to 1.0
You can now preview the next boot splash or randomize a new one from settings
You can pick an individual splash screen to use(this will remove the randomizer link from startup until the "single file" option is unchecked)
You can now reset the picture back to the original setting by pressing the "Reset"
The splash are no longer copied from the splash folder to the windows folder. The registry values that point to the file in the windows folder are now changed to point to the file in the splash folder. This does improve startup speed because less io traffic is happening Credit for reg links:l3v5y
The OpenFile dialog has been slimmed down and tweaked a bit to allow context sensitive clicking(i.e. "right click" gives "Enter Folder, Select Folder, and Select File “respectively)
Attachments
SplashScreenRandomizerA2D.xml.txt: This is the AppToDate file i used to test AppToDate support in the version without splashes. You can save it in "\Application Data\AppToDate\SplashScreenRandomizerA2D.xml" and run apptodate to get the newest version that way
SplashScreenRandomizerSetup.1.4.0.New.Updated.1.26.09.CAB is the newest install file for SSR. It includes two splash screens (320x240.splash.black.png and 640x480.splash.black.png) these can be discarded or reimported if they dont fit your screen.
SplashScreenRandomizerSetup.1.4.0.WithSplashes(VGA).New.Updated.1.26.09.CAB is the newest full install file for SSR. It includes 13 splash screens for 640x480(192dpi)
Splashes.zip: Zip of the extra splashes included in the "WithSplashes" versions of SSR 1 is 320x240 96 dpi the other is 640x480 192 dpi (you can import the folder to scale them to your screen)
Enjoy
Nice...werD...Thank you have enclosed me...
I will try the tool...
Thanks again werD.....
very nice idée thank you very much
Pretty cool.
Thank you very much for sharing.
awsome....Now, my prophet have use this apps....
Thanks again werD....
Just an idea... Could you set it to change a registry entry to change the image that is loaded rather than changing the actual image?
This would also allow two different images to be loaded. This would remove the need for swapping files and should in theory be faster, although the code may be slightly more complicated.
Code:
[HKEY_LOCAL_MACHINE\Software\Microsoft\Splash Screen]
"MSBitmap"="\\windows\\welcomehead.96.png"
"MSTimeout"=dword:00007530
"CarrierBitmap"="\\windows\\welcomehead.96.png"
"CarrierTimeout"=dword:00007530
EDIT: I've just written a simple app that should change "MSBitmap" and "CarrierBitmap" values.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
l3v5y said:
Just an idea... Could you set it to change a registry entry to change the image that is loaded rather than changing the actual image?
This would also allow two different images to be loaded. This would remove the need for swapping files and should in theory be faster, although the code may be slightly more complicated.
Click to expand...
Click to collapse
Thanks Good call, i didn't realize it was a reg setting as well
Next version is going great thus far. I came here to release it, but i'm going to wait and do some registry hacking now instead
1.0 Released
Splash Screen Randomizer 1.0. Swap for a random splash screen at startup
Updated From 0.7.5 to version 1.0 on 4-11-08
If you had 0.7.5 you should uninstall it first and delete the directory called "SplashScreenRandomizerSetup" in your program files(you don't have to do that from 1.0 on)
Changes From 0.7.5 to 1.0
You can now preview the next boot splash or randomize a new one from settings
You can pick an individual splash screen to use(this will remove the randomizer link from startup until the "single file" option is unchecked)
You can now reset the picture back to the original setting by pressing the "Reset"
The splash are no longer copied from the splash folder to the windows folder. The registry values that point to the file in the windows folder are now changed. This does improve speed a bit Credit:l3v5y
The OpenFile dialog has been slimmed down and tweaked a bit to allow context sensitive clicking(i.e. "right click" gives "Enter Folder, Select Folder, and Select File"respectively)
Quirks or Issues
The current Welcome splash screen is replaced(instead of backed up) when the program first runs Resolved in 1.0(splash files are no longer copied or replaced)
The assembly incorrectly show 1.0 actual version is 0.7.5 Resolved in v 1.0
Future Thoughts(Feel Free to add your own)
1.0 is here: Depending on the feedback is where I take this one. We may get a bit more dynamic with them or provide static watermarks or we may be done that's really up to you guys
Credits
Black_Shadow69 Nearly all of the splash screens included in the larger version come from this thread http://forum.xda-developers.com/showthread.php?t=382745
nuthin The larger version also includes a Merlin splash screen I did a while back with a backdrop that was done by nuthin and released with the core kitchen
José Salazar of mobile practices for speeding things up with the base code for the open file control in SSR
http://www.mobilepractices.com/2008/02/custom-openfiledialog-implementation.html
Les Smith of KnowDotNet for speeding things up with the base code for the persistent settings
http://www.knowdotnet.com/articles/cfcsetting.html
l3v5y Registry Tip: See Here
OpenNetCf I used their Registry library and got 1.0 converted from IO to Registry in no time http://www.opennetcf.com/
You can download the updates and read the rest of the story here: http://forum.xda-developers.com/showthread.php?p=2101246#post2101246
I've used the .NET CF 2.0 registry functionality which is built into most ROMs and so needs no extra files at all.
The problem with the registry is that I haven't yet found out why it won't read the timeout values. By default they are set so high that only the MSBitmap can be shown.
I have one point to make though, BMP files can be used as well as pngs! They can be anywhere, and can be any size (although a 10MB file might take too much RAM) but only the top left area is shown with one pixel of the file being one pixel of the screen. Undersized images are placed in the top left of the screen.
The load order for the two files is:
MSBITMAP is loaded and displayed
Waits for time set by MStimeout
CarrierBitmap is loaded and displayed'
Waits for time set by Carriertimeout
Overlays MSBITMAP on top of CarrierBitmap (only observed if msBitmap is smaller than carrierBitmap)
Today Screen loads
Changing the timeouts/both registry keys could allow for greater variation in the splash screens.
I'll try and work out why I can't get the reg keys for timeout to work, and I shall also see if transparency in the *.pngs has any effect when the two splash sreens are overlayed.
lol, I was up late last night, i guess i should have dug deeper. cf 2.0 has a lot built in (edit:was hiding in Microsoft.Win32; identical code one less file good call)
I knew MSBitmap was the one getting displayed with the default timeout(or no timeout values at all), but I was setting CarrierBitmap as well in case of some device oddities or differing oem implementations. Please do let me know when you figure out the magic numbers for the dual splash screens i'll gladly open up the option to use multiple randoms or one random and one constant or whatever else we can scheme up.
I'm going to enable bmp in the filter as well, i reckon I'll probably be cleaning up some things from my sunrise coding session too , I'll swap the reg calls over to the built in classes, I also need to speed up the settings classes that call and save data (i haven't had a chance to look too deep into the code yet but I already know i can speed it up significantly), Ive also got some more great new features planned out and in the works so stay tuned.
Again, i appreciate your input please l3v5y keep it up.
What programming language is this written in?
As far as I can tell, the timeouts are in hundredths of seconds, but 30,000 (which is the default value for everything I've checked) seems too long! However, it all depends on how long the ROM takes to boot up. After both timeouts have ended, the MSBitmap is overlayed on top of the CarrierBitmap, so it doesn't matter if the ROM takes longer to boot up than the two timeouts.
I'm guessing it's really obvious, but how do you get the file location from the open file dialog? I have managed to get the dialog do everything BUT give me the file location!!!
I think I have managed to get the timeouts to load/be set properly although I need to test it on my prophet and not just the emulator...
This is in vb.net with some C# mixed in from the openfiledialog and csettings. I dont have much trouble bouncing from one to the other but I tend to use vb.net the most. the dialog had me a little twisted too at first but it's the FileName property. I also added a constructor parameter for directory search and public folder property which made things pretty easy.
Well... I have managed to change the timeout settings from my little front end!
Thanks for the FileName tip it works!
For anyone that's interested, the source and the .exe are attached.
changing the values is no problem. i was just wondering what some good timings were to balance them out. Imaging madness atm over here, was hopin for a short cut
The timings depend on the speed of the boot up process. I'm not being very helpful am I?
All input is appreciated I did a lot of optimizing yesterday and merged the code base for both apps involved with splash screen randomizer(the small module that runs at startup and the settings app that does the heavy lifting). Ive added some new features but in the interest of not overwhelming you guys with almost daily releases, i'd like to get some input on what some other wants might be.
The main feature i've added to the next build so far has been the ability to use ANY major image format(.bmp,.gif,.jpg,.jpeg,png,.tif) as a splash screen. I've been digging it so far, but I was thinking the ability to add a string of text or a logo as a watermark might make it nicer. It could also allow cooks to include multiple splashes with credits and build text without having to do a whole lot of editing(a batch update watermarker maybe?).
..who knows though, I need to focus a bit more on getting WordStreamer to a 1.0 stage, so i'd like to pack in a few lasting features with this next release
Check out the attached pic for a preview of what's to come so far in the next release
Edit: latest build is here http://forum.xda-developers.com/showthread.php?t=383838
Does the splash screen system in WM allow for those formats? How are you going to get multiple (more than two) splashscreens?
EDIT: Should've tried it first! the conversion is working well, although it's not too clear what to do...
Just added 1.2.5..
@l3v5y
I had a custom splash screen button that when clicked showed a form that you could add images and add string text to the image as well. that was pretty straightforward but I took it out in the interest of size a lack of interest in it. I guess i should've just removed the the string option and left the image preview and such enabled. in the next build I'll bring some of those features back
I haven't had a chance to play with multiple splash screens option yet. But short of allowing the user to tweak the timeout values after I find some that work well on my wizard and emus, im not sure how I would need to implement it further other than allowing a few options for which one(if any) remains static while the other changes. Did you have any ideas? what timeout values work well for you? about how long does it take for your phone to boot?
Thanks
1.2.5 is Released
Changes From 1.0 to 1.2.5
Now use ANY of the major image formats(.bmp,.gif,.jpg,.jpeg,png,.tif) as your splash screen(the image is scaled and saved as a .png in your splashes folder)
The settings screen is now drawn dynamicaly(i.e. no scrollbars should be displayed when in portrait or landscape mode)
.bmp and .png files will be displayed/randomized if they are in your splashes folder
option added to replace your default splash(original splash is saved to your splashes folder)
Optimized code in several places and reduced overall size
Due to it's size, the default splash included with the smaller version is black_shadow69's black version below
Future Thoughts(Feel Free to add your own)
1.2.5 is here: Let me know what you think. I decided to leave out the option for adding watermarks and text strings when you make splash screens, If people express a want for it, I'll add it into a future build.
I also thought it might be nice to batch convert and import some pictures to your splashes folder. Let me know what you think

how to change tf3d highligt color?!

hi there i searched the forum for about a day and realy can't find my answer
can any one plz tell me how can i change the tf3d (touch hd version!) highligt color? (with out changing the original theme indid !)
tanx alot
and for changin the wallpaper in all tabs. can any one make an app to do this in one simple step? or we have to do all that things one by one every time we want to chang the wallpapers?!
tanx in advance
htc's fan said:
can any one plz tell me how can i change the tf3d (touch hd version!) highligt color?
Click to expand...
Click to collapse
There is no 'easy' answer to that question.
For some highlight elements of Windows Mobile (like the phone dialer or call history, and other system screens) the highlight colour is determined by .tsk files... and registry entries.
Go to HKLM\Software\Microsoft\Color and change the values to whatever colour you want. This effects Windows Mobile system colours (including highlights).
You might also need to look at HKCU\Software\Microsoft\Today and change the colour values for whatever task file you selected to use. (HTC Black.tsk, for example).
The green highlight you see in TF3D is controlled by numerous _manila files.
The clock highlight on the Home Page, for example, is made up of 3 _manila files (1 left edge, 1 right edge, 1 middle tiled image). Another 3 _manila files are used for the call history and calendar highlight. Another 3 _manila files control the higlight on other tabs like Settings, or All Program etc.
The keyboard menu highlight, and the Communication Page highlight are all controlled by simple .png images (as these are accessed outside of TF3D.)
So to change the colour of ALL of the highlights on your phone... you have to change many things. Or install a complete theme made by somebody else (and hope they changed ALL of the images... which isn't always the case).
htc's fan said:
and for changin the wallpaper in all tabs. can any one make an app to do this in one simple step? or we have to do all that things one by one every time we want to chang the wallpapers?!
Click to expand...
Click to collapse
If you search the forum, you'll probably find 1 or 2 programs that will let you change the wallpaper with a few clicks... but that function is usually built into a program that does many other things too... and you did say that you didn't really want the theme of your phone changed!
However... editing the _manila file isn't that complicated anyway.... you create your image, import it into the manila file, copy that file to your phone... done!
Using a program (as you asked)... you would create your image, copy it to your phone, launch an app on your phone, click change picture, select your image... done.
Those 2 scenarios aren't that different or really any quicker! The only real advantage to using a program... is that you could change the background image while away from your computer. However if you want to keep 20 different wallpapers on your phone that you can select between... simply import those 20 images into 20 of the same _manila file and store them on your phone like "sports_car_4a087e41_manila" & "hot_babe_4a087e41_manila"... then when you want to change your wallpaper to one of them... simply rename whichever file to "4a087e41_manila" and copy it your your Windows directory... done!
htc's fan said:
and for changin the wallpaper in all tabs. can any one make an app to do this in one simple step? or we have to do all that things one by one every time we want to chang the wallpapers?!
tanx in advance
Click to expand...
Click to collapse
Try this:
http://forum.xda-developers.com/showthread.php?t=479112
Works fine for me.

[TUT] A mini-tutorial on rearranging the Manila Home Screen

Rearranging the Manila Home Screen​
What do I need to know?
Manila uses few types of files: qtc, xml, mode9 and lua. First one is for graphics, second usually for different languages (although not only) and the two last ones are the ones we are interested in. Mode9 files contain information on position, visibility and other properties of almost every element on Manila tabs. Lua files contain different functions, used for animations, updating info and so on.
For editing the Home Screen we need the mode9 file - 1c684cd8_manila and the lua script - 25d04412_manila. You can find these files (from each Manila, starting from 1.0 and ending on 2.5) on this forum.
What tools do I need?
Editing mode9 files is quiet easy. You just have to run m9editor, open the file, make the changes you want and save it. Changing stuff in lua scripts is a bit more complicated, as you have to decompile it. Shorter scripts are easily decompilated by luadec, but some longer ones require us to correct errors. Fortunately, the lua script we have to change is easily decompilated (though there can be a problem with the if condition). To do this follow these points:
- copy luadec.exe and luac.exe to the folder you where you have the lua script (let's say it's c:\compacthome\mod\)
- press Windows Logo + R (or Start > Run) and type cmd
- go to the folder containing the lua script (in this case it's cd \compacthome\mod\)
- type luadec script_name > script_name.txt - where script_name is the script you want to decompile (for example 25d04412_manila) and script_name.txt is the name of the output file, which we will edit
- in case of errors you have to correct them (look for the lua decompiling tutorial by sztupy)
- once you have the script decompiled you don't need to do it again.
- open the output file and change whatever you want
- to compile the file just type luac -o script_name script_name.txt, where script_name is the file we want to have the script_name.txt compiled
What can I change?
When you open the mode9 file we want to edit, expand the tree and you'll see many sections called 'Object'. Below them there are few lines called 'Property'. What you can easily change is:
- Position - just change the value of X and Y (center position (X=0, Y=0) and axis are different for most of the objects - you have to test this)
- Visibility - True or False (sometimes you may have to change the size of a image to 0x0, so that it won't show never)
- Font
- Font Size
- Color of text in RGB format - if Property is not available, add it
In the 25d04412_manila script you can change positions of many objects in both portrait and landscape mode.
- TabsLeft - left part of the clock (animated)
- TabsRight - right part of the clock (animated)
- clock_tabs - background of the clock (pile of tabs)
- alarm_clock - alarm info and date
- NotifiCamera3D - notifications & appointments
- NotificationShiftY - shifting of appointments when changing to small clock
To change the position just modify the first two parameters of Vector3(X, Y, Z) - both CameraPosition.value and LookAtPosition.value.
How to save and test the changes in a fast way?
Open a cab creator (for example WinCE Cab Manager) and add the files you changed to /Windows. Save the cab, copy it to your device, install and reboot Manila. You can also copy manually the file, but I prefer the first way, because in case of any problems you can easily uninstall the cab and get the default Home Screen.
How to get the Home Screen working with Background4AllTabs?
Just open the 1c684cd8_manila file by m9editor, look for 'HomeBackground' and delete the whole paragraph which contains it (from <Object>Type="Group" to the next <Object>Type="Group").
- - -​
If you have any suggestions, propositions or ideas, please write them in this thread, I'll try to complete this tutorial, so it will be useful for everyone. Thanks!
i cannot come up with suggestions, but that tutorial is very nice on your side!
Although not actually about the home screen arrangement. I do think we need the information on how to patch the EXE for weather and especially non-HTC devices to be made public. The few people that know how to do it don't seem to want to SHARE that knowledge, which is damned frustrating!
Kamill, what an excellent idea. I'm looking forward to your tutorial. I wonder will it be for Manila 2.0?
Here are some ideas:
Change touch flo colour
Appointments for at least one week
Linking big clock with another application (similar to Ssmaho)
Changing soft keys names/applications
Changing font sizes/types
Changing date formats on appointments
I hope this doesn't make it too difficult (I think the second one is though for some Manila versions!)
UPDATE in first post - an early version of the mini-tutorial.
FloatingFatMan, unfortunately I don't know how to do it...
mitsi, thanks, I'll work on that.
Kamill, My question is what needs to be changed to get appointments in dates after tomorrow to appear? Do I need to edit both the mode9 and the lua script? Or is it just one of those? I'm willing to get my hands dirty to fix it.
The easiest way is to get the files from hallatore's mod for Manila 2.0 and compare them to the original. There are mainly 3 differences, you'll find them for sure. AFAIR all you have to change is in one script, you have to add an option to display the date, change the place from where appointments are being taken (poomappointments(TAB_Calendar) instead of poomappointments(TAB_Home)) and change the number of appointments in the for loop.
Hmm. Well I changed the TAB_Calendar and added the option to to display date. Those were easy. Finding the loop is harder. I forced A loop to go 5 times and I got 5 calendar events, but the ones past tomorrow were the default ones in the mode9 ("Review design comp (Dan's office)"). I did it in the InitializeFullAnimation function just below this if statement:
Code:
if l_15_15 > 5 then
l_15_15 = 5
end
So those items are not being updated from the calendar. Any ideas? Am I looking in the wrong loop?
Anyway you can post hallatore's mod de-compiled? I think I have the original, but when I use m9editor the lua has a lot of decompiled errors.
Here you go. Are you doing this on the Manila 2.1? I tried so many things to get this working, but with no success
how to change home tab
Hi, I have read all the posts here and in some other threads related, and I'm still confused
I did try to install the cabs posted, and it totally messed my home tab, so I had to hard reset every time (because uninstalling didn't fix it up).
All I want to have is this:
1. move the alarm notification on the upper-right corner (to cover or remove the ATT logo)
2. make the Call History to auto-hide if there is no missed call (or to delete it, if it is easier)
3. have more appointments visible (2-3) with the big clock, and to be able to flip the clock upwards in order to have even more appointments visible
4. when I click on the appointment, to open the Calendar (this is already possible, and I'd like to remain this way)
I apologize if this is a silly question: is this possible to be done only by editing some manila files, and if so, which ones and what should I modify?
I opened some manila files (e.g. 1c684cd8_manila) using notepad and m9editor.exe, and, honestly, I had no clue as to what should I do
I am sure that you guys know this stuff already, and it is very easy for you. If it's not complicated to explain it to me, please help me!
thank you very much
Kamill said:
Here you go. Are you doing this on the Manila 2.1? I tried so many things to get this working, but with no success
Click to expand...
Click to collapse
Thanks. I am trying for Manila 2.1. There's gotta be a way.
tatarasi said:
Hi, I have read all the posts here and in some other threads related, and I'm still confused
I did try to install the cabs posted, and it totally messed my home tab, so I had to hard reset every time (because uninstalling didn't fix it up).
All I want to have is this:
1. move the alarm notification on the upper-right corner (to cover or remove the ATT logo)
2. make the Call History to auto-hide if there is no missed call (or to delete it, if it is easier)
3. have more appointments visible (2-3) with the big clock, and to be able to flip the clock upwards in order to have even more appointments visible
4. when I click on the appointment, to open the Calendar (this is already possible, and I'd like to remain this way)
I apologize if this is a silly question: is this possible to be done only by editing some manila files, and if so, which ones and what should I modify?
I opened some manila files (e.g. 1c684cd8_manila) using notepad and m9editor.exe, and, honestly, I had no clue as to what should I do
I am sure that you guys know this stuff already, and it is very easy for you. If it's not complicated to explain it to me, please help me!
thank you very much
Click to expand...
Click to collapse
Here is the solution to all 4 requests, but it is for Manila 2.0, so be careful. Back-up first just in case. Your screen will then look similar to the one shown.
Been trying...
I've been trying for some time now to get more than today's and tomorrow's appointment's displayed in manila 2.1. I added in the code that Hallatore added (can be found in stupy's lua thread) but there seems to be something limiting the amount of days shown ahead (I hope is not limited by the manila.exe, but I think not).
As additional info, the lua file that use to be embedded in the Home.mode9 isn't any more and is named 53cc1e4f_manila for 2.1 manila and 652ae0f4_manila for 2.5 manila,
12
mitsi said:
Here is the solution to all 4 requests, but it is for Manila 2.0, so be careful. Back-up first just in case. Your screen will then look similar to the one shown.
Click to expand...
Click to collapse
This is exactly what I'm after.
Unfortunately, I tried that alternative and, again, it totally messes my TFLO, and I had to hard reset again.
What do you mean by Manila 2.0, is this the TFLO version (in Settings, I see that I have ver. 3.0 build 29946)?
thank you
Change Home tab display
Hi, thank you very much for your interest and trying to give me solutions for my request. It is amazing how people from different corners of the world are connecting and helping each other.
I presume that the file to work with is 1c684cd8_manila.
I opened that with m9editor 3.3.0.1. It's a lot of info there
Could you guys be so kind and give some clues as to what should I look for in order to change:
- the alarm notification - to move it on the upper-right corner
- the carrier logo - to delete it
- the Call History - to delete it
- the Appointments - to have at least 2-3 shown
Also, important clues as to what NOT to touch, in order to
- continue to be able to flip over the big clock
- continue to be able to open the Calendar when click on the appointment
thank you again
tatarasi said:
- the alarm notification - to move it on the upper-right corner
Click to expand...
Click to collapse
Change the X and Y in the 'Position' Property of these objects: AlarmClockOn, AlarmClockOff, AlarmTime.
tatarasi said:
- the carrier logo - to delete it
Click to expand...
Click to collapse
To the object 'OperatorLogo' add a property called 'Visibility' and change its value to False - if it won't work change it's height to 0 in the 'Size' property.
tatarasi said:
- the Call History - to delete it
Click to expand...
Click to collapse
The same as above, objects: MissedCall_SBar1, MissedCall_SBar2, MissedCallIcon, MissedCallText.
tatarasi said:
- the Appointments - to have at least 2-3 shown
Click to expand...
Click to collapse
You need to decompile the 53cc1e4f_manila script and find l_15_0.MaxShowCount and change the value of it to the desired one.
Kamill said:
You need to decompile the 53cc1e4f_manila script and find l_15_0.MaxShowCount and change the value of it to the desired one.
Click to expand...
Click to collapse
If only it was that easy... I've been trying all kinds stuff including what you suggest above. I have decompiled the 53cc1e4f_manila I'll attach it here (it's the one from yozgatg's r1.5),
12
I mean you CAN change the number of appointments, but in a range of 0 to 6 (5 with big clock). I've tried to get more appointments shown, but I failed...
Kamill said:
Change the X and Y in the 'Position' Property of these objects: AlarmClockOn, AlarmClockOff, AlarmTime.
To the object 'OperatorLogo' add a property called 'Visibility' and change its value to False - if it won't work change it's height to 0 in the 'Size' property.
The same as above, objects: MissedCall_SBar1, MissedCall_SBar2, MissedCallIcon, MissedCallText.
You need to decompile the 53cc1e4f_manila script and find l_15_0.MaxShowCount and change the value of it to the desired one.
Click to expand...
Click to collapse
Hi, Kamill,
Apologize for double posting, I am growing impatient feeling that I am so close to a solution
Regarding the Manila, I checked where you told me to, and I found out that I have TFLO 3D 1.2.37896.1_1813.6. Thank you.
Thank you for your advices, I already tried to remove the logo
- first, I added the <Property> Name=Visibility Value="False" - did not work
- then, I changed the Height=0 - still ATT was there
- lastly, I deleted the entire Object GLESSprite2D (which was above the "OperatorLogo" property - still no result
What do you think I am doing wrong?
Speaking of the number of appointments, I amazingly discovered that I do not have 53cc1e4f_manila file. What do you think that means?
thank you very much, again
Manila 1 is a bit different from 2.0 or 2.1, the 53cc1e4f_manila script is embedded in the 1c684cd8_manila mode9 file (one of those at the beginning).
AFAIK you can replace the logo file with a blank one (don't ask me which file is it, I don't know ). Or you can try to add a 'Position' property and move it out of the sight (but it may come back in some situations) - though I do not guarantee it'll work.
I hope you'll success in modifying the Manila 1 homescreen, I guess there is still a couple of people who use that version of TF3D.

[quick mod] Customize Toast and other frameworks, No Computer

Resources :
ApktoolX - https://www.androidfilehost.com/?a=show&w=files&flid=66185
Mixplorer - https://forum.xda-developers.com/showthread.php?t=1523691
Quickedit - https://play.google.com/store/apps/...medium=organic&utm_term=quickedit+google+play
Android Color Tool - http://tutorial-aide.blogspot.co.id/2015/11/android-color-tool.html?m=1
Lunapic, (helpful for changing colors etc. of pngs) - http://www.lunapic.com/
Toast:
Here's how toast works: in framework-res apk/res/drawable-xhdpi, there is a file called 'toast_frame.9.png'. Then in framework-res apk/res/values/styles.xml, there are several references to that file, to be used as a background in various instances of a toast message. So, to customize toast, you can either change the toast_frame png to something else, or change the target file in styles xml references from 'toast_frame.png' to something else. The first way might be trickier, since the png is a 9patch, so you can't just use any picture you want, unless you convert it to a 9patch, and it has to be the right dimensions, or it will look funny. I prefer the second way. The toast text color is controlled by an entry in /res/values/colors.xml called 'background_light'.
Here's what I did -
1. Decompile framework-res with ApktoolX.
2. Create an xml that describes a shape and name it 'bg1', (for example), and add it to /res/drawable folder.
3. Change all references to '@drawable/toast_frame' in styles to '@drawable/bg1'.
4. Change value of 'background_light' in res/values/colors.xml from '#ffffffff' to whatever you want.
5. Recompile, and add META-INF folder and android manifest file from original apk the the new apk, using Mixplorer copy/paste, and move the new apk to /system/framework with permissions 644, and reboot.
Note - styles xml file is usually 5,000+ lines, so most android file manager apps can't handle it too well. I recommend Quickedit; use search function.
I attached my bg1 xml if you want
...
Menus:
Credit to XperienceD here - https://forum.xda-developers.com/showpost.php?p=68884228&postcount=161 - I just elaborated a little.
The drop-down, (3 dot), menus are controlled by the last 6 of the 8 files mentioned in the above link. 2 of them, (somc drop-down panel dark, and somc drop-down panel light), reference a drawable. You can simply change which drawable you want to call on, (bg1, for example, instead of whatever it says). There are 2 instances in each file, so change both. Keep in mind that the reason there is a dark and a light is that if the framework senses an app that's themed light, it will use dark text, and vice versa, so you should have 2 different drawables, (bg1 and bg2, for example), one with a light background and one's with a dark, (screenshots). The remaining 4 files, (somc_dropdown_panel_down_dark, somc_dropdown_panel_down_light, somc_dropdown_panel_up_dark, somc_dropdown_panel_up_light), don't reference a separate drawable, but are written as shape drawables themselves, so you can just edit them to match your bg1 and bg2. Keep in mind again about the dark and light.
I attached my menu_bg1 and menu_bg2.
Dialogs:
Dialogs are controlled by the first 2 of the 8 files mentioned above, (somc_dialog_bg_dark and somc_dialog_bg_light). If you follow the instructions to mod styles xml file, (in XperienceD's post above), it will make all system dialogs dark, (calling for light text), so you can use the same file for both. I just used my menu_bg1, (screenshots). Power menu icons may have to be edited to be light color, and power menu text color is in global actions item xml in layout folder. Easiest thing is to use alternative power menu, (APM + or Gravity Box or something).
Note that the text color is controlled by varying files, sometimes in the layout or drawable xml, sometimes in styles. Experiment.
Bump for added tweaks...

Categories

Resources