View Single Post
  #1 (permalink)  
Old 11-27-2009, 08:29 PM
santod's Avatar
santod
"MODS"
Offline
Location: NorCal
 
Join Date: Sep 2008
Posts: 3,984
Reputation: 22765
santod can't get a higher reputation levelsantod can't get a higher reputation levelsantod can't get a higher reputation levelsantod can't get a higher reputation levelsantod can't get a higher reputation levelsantod can't get a higher reputation levelsantod can't get a higher reputation levelsantod can't get a higher reputation levelsantod can't get a higher reputation levelsantod can't get a higher reputation levelsantod can't get a higher reputation level
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Post Edit color of Sense 2.1 Home Font (call history, calendar,etc.)

So after some time was spent scrolling through manila files in Mode9 and pictures and searching the net, I was looking for a way to modify the font color on the home screen with Mode9 for Calendar and Call History, here is what I found and thought I'd share, as others who use mode9 may find it useful. If this has been already posted clearly on here before, I apologize.

__________________________________________________ ___________


* 2 manila files are involved :

* 1c684cd8_manila
This file is the Home mode9 file. It controls how the fixed elements are displayed. This one will be used to change fixed text font color on the home tab.

* 77faa36d_manila
This file is the manilla lua script files that controls how the font colors are handled when event occurs (typically, clicking on the alarm change the alarm font color, so ot is for calendar and so on)

After that, follow these steps :

1 - Install M9Editor
2 - Copy these two files from you phone to your computer
3 - Open M9Editor and choose the directory where you copied the above files as source directories
4 - Open 1c684cd8_manila in M9Editor and change the Color attribute of the elements you want to change knowing that R,G,B are the red, green, blue colors components.
ie: CarrierNetwork for the Carrier text, MissedCallText, VoicemailText, UrgentVoicemailsText, Appointment0_Time, and so on.
5 - Save the file

After these steps, go to your PDA, disable Sense Home plugin and copy the modified file to /windows/ directory then restart manila.
You will see that all colors have been changed !!!
BUT, if you click on alarm or calendar and return to the home screen, colors have been changed back to previous color. That is why we need to edit the 77faa36d_manila file.

6 - Go back to your computer and open 77faa36d_manila in M9editor.
7 - Right click on the file and choose decompile and save source. This will generate the associated source script file as 77faa36d_manila.lua
The file should look like :

-- Decompiled using luadec 1.0 by sztupy (http://winmo.sztupy.hu)
-- Command line was: temp.luaA

require("themecommon")
Theme_MainTextUnselectedLevel0 = Color(0, 0, 0, 255)
Theme_MainTextSelectedLevel0 = Color(255, 255, 255, 255)
Theme_MainTextUnselectedLevel1 = Color(120, 120, 120, 255)
Theme_MainTextSelectedLevel1 = Color(255, 255, 255, 255)
Theme_MainTextUnselectedMenu = Color(120, 120, 120, 255)
Theme_MainTextSelectedMenu = Color(255, 255, 255, 255)
Theme_SubTextUnselectedLevel0 = Color(204, 204, 204, 255)
Theme_SubTextSelectedLevel0 = Color(204, 204, 204, 255)
Theme_SubTextUnselectedLevel1 = Color(51, 51, 51, 255)
Theme_SubTextSelectedLevel1 = Color(204, 204, 204, 255)
Theme_OnOffTextUnselectedLevel0 = Color(179, 179, 179, 255)
Theme_OnOffTextSelectedLevel0 = Color(179, 179, 179, 255)
Theme_OnOffTextUnselectedLevel1 = Color(50, 50, 50, 255)
Theme_OnOffTextSelectedLevel1 = Color(179, 179, 179, 255)
Theme_AlarmTextUnselected = Color(255, 255, 255, 255)
Theme_AlarmTextSelected = Color(255, 255, 255, 255)
Theme_AlarmTextOff = Color(153, 153, 153, 255)
Theme_DateTextUnselected = Color(255, 255, 255, 255)
Theme_DateTextSelected = Color(255, 255, 255, 255)
Theme_HomeNotificationsMainSelected = Color(255, 255, 255, 255)
Theme_HomeNotificationsSubSelected = Color(204, 204, 204, 255)
Theme_HomeNotificationsMainUnselected = Color(255, 255, 255, 255)
Theme_HomeNotificationsSubUnselected = Color(255, 255, 255, 255)

8 - Here you can change the color of the font for unselected and selected elements of the manila sense interface. If you change the first one (Theme_MainTextUnselectedLevel0) then all unselected text color through manila will change (for instance, the setting tab unselected text will change to this color, as will the home alarm and calendar text and so on).
Entries of interest here are :

Theme_HomeNotificationsMainSelected = Color(255, 255, 255, 255)
Theme_HomeNotificationsSubSelected = Color(204, 204, 204, 255)
Theme_HomeNotificationsMainUnselected = Color(255, 255, 255, 255)
Theme_HomeNotificationsSubUnselected = Color(255, 255, 255, 255)

Change these ones to the color you want.

9 - Save the lua file and go back to M9editor. Right Click on the 77faa36d_manila file and then choose compile and import. This will recompile your modified lua script.

10 - Copy the modified 77faa36d_manila file to your PDA /windows/ directory (don't forget to deactivate manila first).

11 - Reactivate manila plugin.

12 - YOU'RE DONE !!!!!

Hope this will be helpful ...
__________________

~My Ultimate WVGA Wallpapers Collection~
Donations accepted not expected!



Last edited by santod; 12-05-2009 at 06:01 AM.
Reply With Quote
This post has been thanked 6 times.