Chapter 2 : How to edit *.skn file.
when phone display skin on screen. the most component the it use is not icon but it's a standard UI (User interface) components like button, scrollbar, statusbar, titlebar, checkbox. so I just start with editing standard UI in skn file first.
Requirement.
1. Active perl interpreter from www.activestage.com
2. pack/unpackSkin.pl from Skin & IconresPackager
3. image editor that can open and save into GIF format.
here is a detail of each component in skin file.
I 'll explain it each component in Left part to right part. from left to right and top to bottom.
L1. General Arrow is a button with arrow in 4 directions up down left right. button have 2 stages normal and action (_A)
L2. General Stretch button S is a standard button. It have 2 stages normal and action (_A)General_Arrow_Up 20x23
General_Arrow_Up_A 20x23
General_Arrow_Down 20x23
General_Arrow_Down_A 20x23
General_Arrow_Left 20x23
General_Arrow_Left_A 20x23
General_Arrow_Right 20x23
General_Arrow_Right_A 20x23
L3 Stretch Progressbar is a bar that display progress of work in percentage. have 3 images.General_Stretch_Button_S 25x23 -> Normal status
General_Stretch_Button_S_A 25x25 -> Activestatus
L4 Stretch Progressbar Small same like StretchProgressbar but have a small bar.Stretch_ProgressBar_Background 30x25 -> background
Stretch_ProgressBar_Fillamount 12x21 -> progress display bar in normal status
Stretch_ProgressBar_Fillamount_D 12x21 -> progress display bar when disable status
PS. when display progressbar on screen phone stretch it horizontal until require size. by devide it in 3 part equally left, middle, right. and stretch only middle of image. when deviding image if remainder is 1 it 's add a remainder to middle part. if remainder is 2 it's add 1 to left and right part.Stretch_ProgressBar_Background_Small 32x13 -> background
Stretch_ProgressBar_Fillamount_Small 17x5 -> progess display bar
L5. General Radio Button is a select buttons for select from list of items.
L6. General Checkbox is a box that can select of unselect.General_Radio_Button_Unselected_A 18x18 -> Unselected and action status
General_Radio_Button_Unselected 18x18 -> Unselected status
General_Radio_Button_Selected_A 18x18 -> Selected and action status
General_Radio_Button_Selected 18x18 -> Selected status.
General_Check_Box_Unselected_A 20x20 -> Unselected and action status
General_Check_Box_Unselected 20x20 -> Unselected status
General_Select_Box_Selected_A 20x20 -> Selected and action status
General_Select_Box_Selected 20x20 -> Selected status.
L7. General ComboBox is a list selection box. it have border image and button images.
** ComboBox_Border 'll stretched horizontal inthe same way as Progressbar and button always display rightmost of it.Stretch_ComboBox_Button 20x25 -> button in normal status.
Stretch_ComboBox_Button_A 20x25 -> button in action status
Stretch_ComboBox_Button_D 10x25 -> button in disable status.
Stretch_ComboBox_Border 26x25 -> border and background.
L8. Stretch Image Border is a frame of image when display in filemanager.
** Stretch Image Border 'll stretched both horizontal and vertical when it was used.Stretch_ImageBorder_Topleft 20x25 -> top left border.
Stretch_ImageBorder_Bottomright 20x25 -> bottom right border
L9. Stretch Scrollbar is a bar that display screen when screen display are large then phone display. It've vertical (ScrollbarV) and horizontal (ScrollbarH) scrollbar. Scrollbar consist of Arrow up and ArrowDown button on both end, Background and scrolling bar(Forground)
PS. only Background and Foreground 'll stretch horizontal or verticalStretch_ScrollbarV_Arrow_Down 20x21
Stretch_ScrollbarV_Arrow_Down_A 20x21
Stretch_ScrollbarV_Arrow_Down_D 20x21
Stretch_ScrollbarV_Background 20x20
Stretch_ScrollbarV_Arrow_Up 20x21
Stretch_ScrollbarV_Arrow_Up_A 20x21
Stretch_ScrollbarV_Arrow_Up_D 20x21
Stretch_ScrollbarV_Foreground 20x20
Stretch_ScrollbarH_Arrow_Down 21x20
Stretch_ScrollbarH_Arrow_Down_A 21x20
Stretch_ScrollbarH_Arrow_Down_D 21x20
Stretch_ScrollbarH_Background 17x20
Stretch_ScrollbarH_Arrow_Down 21x20
Stretch_ScrollbarH_Arrow_Down_A 21x20
Stretch_ScrollbarH_Arrow_Down_D 21x20
Stretch_ScrollbarH_Background 17x20
Stretch_ScrollbarH_Arrow_Up 21x20
Stretch_ScrollbarH_Arrow_Up_A 21x20
Stretch_ScrollbarH_Arrow_Up_D 21x20
Stretch_ScrollbarH_Foreground 17x20
and ScrollbarH Arrow down have duplicated in 2 row. don't know why.
R1. SBar_Background is a statusbar that display phone status i.e. signal, GPRS status, battery status, time, etc. It 'll stretch to screen witth with used.
Sbar_Background 20x26
R2. Cut_Screen TitleBackground is a bar for display title text on top of screen. same as status bar but some screen draw cutsreen title background continuous vertical. so I recommand that do not design cut screen titlebackground with a different in left right and middle part.
R3. Stretch Menu is a popup menu. it consist of 4 angle images, 4 borders, menu separator, background, and highlight(Highlight TextBackground).Cut_Screen_TitleBackground 20x26
PS. Border 'll stretch in it direction. and highlight and background 'll stretch both direction.Stretch_Menu_RightAngle_1 10x10 -> Top Left angle
Stretch_Menu_RightAngle_2 10x10 -> Top Right angle
Stretch_Menu_RightAngle_3 10x10 -> Bottom Left angle
Stretch_Menu_RightAngle_4 10x10 -> Bottom Right angle.
Stretch_Menu_TopBorder 10x3 -> Top Border
Stretch_Menu_LeftBorder 3x10 -> Left Border
Cut_Menu_Seperator 9x2 -> menu separator
Stretch_Menu_RightBorder 3x10 -> Right Border
Stretch_Menu_BottomBorder 10x3 -> Bottom Border
Stretch_Highlight_TextBackground 10x10 -> menu highlight
Stretch_Menu_Background 10x10 -> menu background
R4. Call KeyPadBk is a button in dialpad have 2 stages like another button.
R5. Stretch Dialog is a frame of dialog when display on screen. same like menu it've 4 angles, 4 borders and title background.Call_Keypad_KeyBk 57x35 -> normal.
Call_Keypad_KeyBk_A 57x35 -> action.
PS. Border 'll stretch in it direction. and Title background 'll stretch horizonal.Stretch_Dialog_RightAngle_1 10x10 -> Top Left angle
Stretch_Dialog_RightAngle_2 10x10 -> Top right angle
Stretch_Dialog_RightAngle_4 10x10 -> Bottom Left angle
Stretch_Dialog_RightAngle_3 10x10 -> Bottom Right angle
Stretch_Dialog_TitleBackground 20x26 -> dialog title background
Stretch_Dialog_LeftBorder 2x10 -> Left border
Stretch_Dialog_TopBorder 20x4 -> Top border
Stretch_Dialog_BottomBorder 20x2 -> Bottom border
Stretch_Dialog_RightBorder 2x10 -> Right border
R6. Stretch Dialog CST is a button for dialog. have 3 stages
Stretch_Dialog_CST 20x34 -> normal status
Stretch_Dialog_CST_D 20x34 -> disable status
Stretch_Dialog_CST_A 20x34 -> action status
PS. Dialog CST 'll scretch horizontal
R7. Stretch CST is a buttons on bottom bar when open Home menu.
How to extract skin-image (*.PNG) from skin-file (*.skn) by SkinPackager.Stretch_CST_A 20x35 -> action status
Stretch_CST 20x35 -> normal
Stretch_CST_D 20x35 -> disable
1. put pack/unpackSkin.pl in the same folder as *.skn file and rename .skn to motoskin.skn.
2. click on unpackSkin.pl and Command prompt will display amount of images in skn file. folder skins should appear and it contain motoskin.skn.png and header.dat.
3. edit motoskin.skn.png with image editor.
4. click on packSkin.pl to create a newmotoskin.skn.
And becareful about skin component position that you should guess where 's it. Exacty It was in header of file. but i can't map skin header record to skin image because of some index was difference.
some components does not use standard components from skn file. but use icon in iconres.ezx. so I recommend to edit them too for good looking skin.
after finished standard components design in skn file. you need to decide which colors is use for your skin. ex if button is in grey what color of text on button should be? next chapter it's a color palette setting for skin.



40Likes




















