HTC Calendar Colors

Search This thread

Gino14

Senior Member
Nov 11, 2008
98
1
Steve0007,

Thanks for your new cab. Year view is OK now but no color on Month view.

Thanks, Steve

You always can solve the problem for us......:)

I got the same situation, years view is fine, but monthly view keeps the same....weekend days without color changing.... Hopefully you can help us again.....Thanks again!

Cheers,

Stephen
 

geralt

Senior Member
Aug 10, 2007
102
18
Kladno
Hi everybody,

I resolved the problem with colored weekends days for Manila 2.5.1921.1619.0 in my HD2 (ROM 1.48.479.1 (71294) WWE).

I modified manila files from "Colored Calendar Tab.cab".

Just download / unzip / copy to "Windows" folder in your HD2 with Manila 2.5.1921.1619.0 and enjoy.

It's work in my HD2. See sreenshots.

P.S.: When I will learn how to create "CAB" file I will do it in CAB :D
 

Attachments

  • Screen01.jpg
    Screen01.jpg
    89.6 KB · Views: 1,255
  • Screen02.jpg
    Screen02.jpg
    71.4 KB · Views: 910

Gino14

Senior Member
Nov 11, 2008
98
1
Hi everybody,

I resolved the problem with colored weekends days for Manila 2.5.1921.1619.0 in my HD2 (ROM 1.48.479.1 (71294) WWE).

I modified manila files from "Colored Calendar Tab.cab".

Just download / unzip / copy to "Windows" folder in your HD2 with Manila 2.5.1921.1619.0 and enjoy.

It's work in my HD2. See sreenshots.

P.S.: When I will learn how to create "CAB" file I will do it in CAB :D

Hi, geralt....

Is there any way for manila 2.5.1920? Thanks in advance...
 

geralt

Senior Member
Aug 10, 2007
102
18
Kladno
I think that yes.

In “Windows” folder in your HD2 find manila files “6f3f0c16_manila” and “071b4c9a_manila”. This two files you have to decompile using luadec.exe - you may find it here (SztupY thank you for this tool). Then :

1) In “071b4c9a_manila” file find following line :
1.1) “CalendarConsts.YearView_SaturdayColor = Color(128, 128, 128, 255)”
1.2) “CalendarConsts.YearView_SundayColor = Color(128, 128, 128, 255)” where change the first three numbers (it is RGB color scheme).

In my case I changed its for :
- “CalendarConsts.YearView_SaturdayColor” from “128, 128, 128” to “1, 93, 191” (light blue)
- “CalendarConsts.YearView_SundayColor” from “128, 128, 128” to “255, 0, 0” (red)

2) In “6f3f0c16_manila” file find following lines :

2.1) “MonthClass.CreateCalendar = function(l_24_0, l_24_1)” where after line “for l_24_27 = 0, 6 do” add this :


if l_24_0.Sunday then
weekendtext = Locale:GetString("IDS_CALENDAR_WEEK_" .. l_24_27)
else
mfdow = l_24_27 + 1
if mfdow == 7 then
mfdow = 0
end
weekendtext = Locale:GetString("IDS_CALENDAR_WEEK_" .. mfdow)
end


2.2) “MonthClass.initMonthDayText = function(l_27_0, l_27_1, l_27_2, l_27_3)” where after line “l_27_4.HorizontalAlignment = Alignment_HorizontalCenter” add this :

if weekendtext == "Sat" then
l_27_4.Color = CalendarConsts.YearView_SaturdayColor
end
if weekendtext == "Sun" then
l_27_4.Color = CalendarConsts.YearView_SundayColor
end


Then both files compile by luac.exe, download and copy to HD2 Windows folder. That’s all.
 

Gino14

Senior Member
Nov 11, 2008
98
1
Dear geralt,

Thanks for your reply......

To be honest, I'm not so professional to do that, it's really complicated for me.......:(

Is there any easier way for me? Thanks again
 

geralt

Senior Member
Aug 10, 2007
102
18
Kladno
Hi Gino

Copy two files (which I described in my previous post) from your Windows folder and attache its to this thread. I will look at it.
 

francescrm

Senior Member
Mar 7, 2008
320
27
Barcelona
Hi everybody,

I resolved the problem with colored weekends days for Manila 2.5.1921.1619.0 in my HD2 (ROM 1.48.479.1 (71294) WWE).

I modified manila files from "Colored Calendar Tab.cab".

Just download / unzip / copy to "Windows" folder in your HD2 with Manila 2.5.1921.1619.0 and enjoy.

It's work in my HD2. See sreenshots.

P.S.: When I will learn how to create "CAB" file I will do it in CAB :D

OK, thanks, but in my Leo only replaced "year view".
Running spanish stock 1.66 ROM and Manila 2.5.19211619.0




Rgds,
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    Cab fo Manila 2.5.2018 :)
    1
    Sorry Geralt, but does not show any colours in my Manila 2.5.2018.1527.0,
    ROM: 3.14.410.2 (04666) PTG.
    Help please,:confused: and tks. in advance.

    Hi,

    In “Windows” folder in your HD2 find manila files “6f3f0c16_manila” and “071b4c9a_manila”. Then ziped it and send me it, please. Maybe int this files are some small diferencies between my Manila version and your.
    1
    tut for changing colour in calendar

    its very easy just follow this step:

    1 – copy 6f3f0c16_manila and 071b4c9a_manila from device to pc
    2 – download Co0kieMonster luatool HERE
    3 – extract and copy LuaTool.exe to c:\
    4 – copy this two manila files also to c:\
    5 – start cmd and type „cd..“ hit ENTER until you will have same screen like me
    picture.php

    In cmd type:
    luatool /d 071b4c9a_manila
    picture.php

    after that you will get in same dir this file:
    071b4c9a_manila.lua
    this file open with notepad and change colour (first three numbers)
    CalendarConsts.YearView_SaturdayColor = Color(100, 255, 120, 255)
    CalendarConsts.YearView_SundayColor = Color(100, 255, 120, 255)
    Save this file, then type in cmd
    luatool /c 6f3f0c16_manila.lua
    picture.php

    After that you will get new file:
    071b4c9a_manila.luac
    This file rename to 071b4c9a_manila (delete .luac)
    do same thing with second manila file. You have everything what you need to change colour here: credits to geralt
    http://xdaforums.com/showpost.php?p=6612550&postcount=33
    Copy this two new file on device (disable sense before) use resco file explorer for that, or create cab.