All about IT, Application, Game, and Phone

Blogger news

Tuesday, August 16, 2011

On 2:05 PM by Filbert Alexander in    3 comments
This article describes the creation of skins for the KD Player 0.8.1 and higher.


Background:
KD skins for the player consist of two files with the same name but different extensions. Once these files are created, they can program into the archive in the folder "skins" are involved, but they have to be "default.kds" and "default.kdi". Moreover, even on the phone memory / storage card to be copied, in this case, choose the appropriate skin on the menu in the program.

For the skin necessary:
1. The first file has the extension *. kds. This is a simple text file in ANSI encoding. The content must match the reserved word kdskin begin. This program recognizes it as a skin file. This is where all the information about the location of the graphical elements of the player and the color of its menus. All options are indicated by tags, the following form: (Bildelement parameter). Below follows a detailed list of these tags.

2. The second file has the extension *. kdi. This is an image file, in any format can be created, the mobile telephone can process. It recommends the creation in PNG or JPEG format, some phones also handle BMP and GIF files. PNG, however, provides the best compression rate, when you consider that, unlike JPG no picture information loses. It also supports transparency, but here is to be noted that transparency effects require more resources and also, as far as the author knows, only full Tranzparenzunterst├╝tzung Sony Ericsson offers.


Description of the tags and their parameters:

Options:

Font:

• 0 - Small / fat
• 1 - Small / normal
• 2 - Medium / fat
• 3 - medium / normal
• 4 - large / fat
• 5 - large / normal


Colours:

• R - the proportion of red paint
• G - the proportion of green color
• B - share blue


Start coordinates:

• T - starting point is the left upper corner of the display.
• B - starting point is the left bottom corner of the display.


Orientation:

• L - linkszentriert.
• C - centered.
• E - rechtszentriert.


Parameters:

• P1, P2, P3 - Day options
• R, G, B - RGB colors
• X1, Y1, X2, Y2 - coordinates of the image requested KDI part in the file.


KDS tags and their function:

(rot P1)
This tag controls the output of the Skins in high-or landscape format.
P1:
True - horizontal issue ( "landscape")
False - normal, vertical Issue

(border R,G,B)
This tag determines the color of the border around the player. If the first option -1, no framework. Example of a black frame would (border 0,0,0).

(bkgnd1 X1,Y1,X2,Y2)
Controls the background of the player. If the image is smaller than the display size, the item again.

(bkgnd2 X1,Y1,X2,Y2)
Controls the background to the main menu. If the image is smaller than the display size, the item again.

(menu_top_l X1,Y1,X2,Y2) (menu_top_c X1,Y1,X2,Y2) (menu_top_r X1,Y1,X2,Y2)
These tags describe the upper menu bar. The middle part is on the whole width of the display is repeated.

(menu_bot_l X1,Y1,X2,Y2) (menu_bot_c X1,Y1,X2,Y2) (menu_bot_r X1,Y1,X2,Y2)
These tags describe the bottom menu bar. The middle part is on the whole width of the display is repeated.

(menu_sel_l X1,Y1,X2,Y2) (menu_sel_c X1,Y1,X2,Y2) (menu_sel_r X1,Y1,X2,Y2)
These tags describe the element of the selected menu item. The middle part is on the whole width of the display is repeated.

(menu_text_font P1,R1,G1,B1,R2,G2,B2)
Describes font, size and color of the menu text.
Options:
P1 - font (so)
R1, G1, B1 - color of the text, and scrollbar.
R2, G2, B2 - color of selected text.

(menu_caption R,G,B)
Describes the color of the menu heading.

(menu_time R,G,B)
Describes the color of the displayed time from the main menu.

(menu_msg_bkgnd R,G,B)
Describes the background color of a message from the main menu.

(soft_text1 R,G,B)
Describes the background color of a message in the player menu.

(soft_text2 R,G,B)
Describes the background color of a selected item in the player menu.

(soft_text3 R,G,B)
Describes the text color in the player menu.

(soft_sel_text4 R,G,B)
Describes the color of selected text in the player menu.

(soft_border1 R,G,B)
Describes the border color in the player menu.

(soft_border2 R,G,B)
Describes the color of the frame to a selected item in the player menu.

(soft_player P1)
Describes the height of the player menus.

(title X1,Y1,X2,Y2)
Image is about the background. In the standard skin, it is the words "KD player."

(title_pos P1,P2,P3,P4)
Sets the position of the above Element.
Options:
P1 - Start coordinates (see above)
P2 - alignment (see above)
P3 - shift to the X-axis.
P4 - shift on the Y-axis.

(albumart X1,Y1,X2,Y2)
The displayed as a standard album cover. The size of this item determines the size of the covers in general.

(albumart_pos P1,P2,P3,P4)
Sets the position of the above Element.
Options:
P1 - Start coordinates (see above)
P2 - alignment (see above)
P3 - shift to the X-axis.
P4 - shift on the Y-axis.

(back1 X1,Y1,X2,Y2)
Certainly the image of the "Rewind Back" buttons.

(back2 X1,Y1,X2,Y2)
Certainly the image of the "Rewind Back" button in the active, depressed state.

(back_pos P1,P2,P3,P4)
Sets the position of the above Elements.
Options:
P1 - Start coordinates (see above)
P2 - alignment (see above)
P3 - shift to the X-axis.
P4 - shift on the Y-axis.

(play1 X1,Y1,X2,Y2)
Certainly the image of the "Play / Pause button.

(play2 X1,Y1,X2,Y2)
Certainly the image of the "Play / Pause button in the active, depressed state.

(play_pos P1,P2,P3,P4)
Sets the position of the above Elements.
Options:
P1 - Start coordinates (see above)
P2 - alignment (see above)
P3 - shift to the X-axis.
P4 - shift on the Y-axis.

(next1 X1,Y1,X2,Y2)
Certainly the image of the "Fast Forward / Next" button.

(next2 X1,Y1,X2,Y2)
Certainly the image of the "Fast Forward / Next" button in the active, depressed state.

(next_pos P1,P2,P3,P4)
Sets the position of the above Elements.
Options:
P1 - Start coordinates (see above)
P2 - alignment (see above)
P3 - shift to the X-axis.
P4 - shift on the Y-axis.

(sound1 X1,Y1,X2,Y2)
Certainly the image of the volume indicator, if the volume is set to 0.

(sound2 X1,Y1,X2,Y2)
Certainly the image of the volume indicator, if the volume to maximum.

(sound_pos P1,P2,P3,P4)
Sets the position of the above Elements.
Options:
P1 - Start coordinates (see above)
P2 - alignment (see above)
P3 - shift to the X-axis.
P4 - shift on the Y-axis.

(repeat X1,Y1,X2,Y2)
Certainly the images for the item "Repeat". This consists of four separate images for the states "coincidence", "coincidence depressed," "Normal" and "Normal depressed."

(repeat_pos P1,P2,P3,P4)
Sets the position of the above Element.
Options:
P1 - Start coordinates (see above)
P2 - alignment (see above)
P3 - shift to the X-axis.
P4 - shift on the Y-axis.

(shuff X1,Y1,X2,Y2)
Certainly the images for the item "Shuffle". This consists of six individual images for the states "All repeat, repeat all depressed," "One repeat", "One key repeat," "Normal" and "Normal depressed."

(shuff_pos P1,P2,P3,P4)
Sets the position of the above Element.
Options:
P1 - Start coordinates (see above)
P2 - alignment (see above)
P3 - shift to the X-axis.
P4 - shift on the Y-axis.

(key X1,Y1,X2,Y2)
The displayed image for the keylock.

(key_pos P1,P2,P3,P4)
Sets the position of the above Element.
Options:
P1 - Start coordinates (see above)
P2 - alignment (see above)
P3 - shift to the X-axis.
P4 - shift on the Y-axis.

(wait X1,Y1,X2,Y2)
Certainly the image of the "hourglass" if one waits that the player has an action (eg Skin exchange or updating of the library).

(bar X1,Y1,X2,Y2)
Determines an image that has drawn the background. In the standard skin, it is the narrow strip on the soft options.

(bar_pos P1,P2,P3,P4)
Sets the position of the above Element.
Options:
P1 - Start coordinates (see above)
P2 - alignment (see above)
P3 - shift to the X-axis.
P4 - shift on the Y-axis.

(posbar1 X1,Y1,X2,Y2)
Certainly the picture for the position indicator at the beginning of the song.

(posbar2 X1,Y1,X2,Y2)
Certainly the picture for the position indicator at the end of the song.

(posbar_pos P1,P2,P3,P4)
Sets the position of the above Elements.
Options:
P1 - Start coordinates (see above)
P2 - alignment (see above)
P3 - shift to the X-axis.
P4 - shift on the Y-axis.

(softL_font P1,R,G,B)
This tag determines the font and color of the left soft option.
Options:
P1 - font (so)
R, G, B - font color

(softC_font P1,R,G,B)
This tag determines the font and color of the middle soft option.
Options:
P1 - font (so)
R, G, B - font color

(softR_font P1,R,G,B)
This tag determines the font and color of the right soft option.
Options:
P1 - font (so)
R, G, B - font color

(stop_text P1,P2,P3,P4,P5)
This tag determines the position of the text "stop".
Options:
P1 - Start coordinates (see above)
P2 - alignment (see above)
P3 - shift to the X-axis.
P4 - shift on the Y-axis.
P5 - determines the maximum width of the text, it does not fit, will be truncated.

(play_text P1,P2,P3,P4,P5)
This tag determines the position of the text "Play / Pause.
Options:
P1 - Start coordinates (see above)
P2 - alignment (see above)
P3 - shift to the X-axis.
P4 - shift on the Y-axis.
P5 - determines the maximum width of the text, it does not fit, will be truncated.

(menu_text P1,P2,P3,P4,P5)
This tag determines the position of the text "menu".
Options:
P1 - Start coordinates (see above)
P2 - alignment (see above)
P3 - shift to the X-axis.
P4 - shift on the Y-axis.
P5 - determines the maximum width of the text, it does not fit, will be truncated.

(artist_text P1,P2,P3,P4,P5)
This tag determines the position of the display of the artists name.
Options:
P1 - Start coordinates (see above)
P2 - alignment (see above)
P3 - shift to the X-axis.
P4 - shift on the Y-axis.
P5 - determines the maximum width of the text, it does not fit, will be truncated.

(artist_font P1,R,G,B)
This tag determines the font and color of the artist name.
Options:
P1 - font (so)
R, G, B - font color

(title_text P1,P2,P3,P4,P5)
This tag determines the position of displaying the track name.
Options:
P1 - Start coordinates (see above)
P2 - alignment (see above)
P3 - shift to the X-axis.
P4 - shift on the Y-axis.
P5 - determines the maximum width of the text, it does not fit, will be truncated.

(title_font P1,R,G,B)
This tag determines the font and color of the track name.
Options:
P1 - font (so)
R, G, B - font color

(album_text P1,P2,P3,P4,P5)
This tag determines the position of the display of the album name.
Options:
P1 - Start coordinates (see above)
P2 - alignment (see above)
P3 - shift to the X-axis.
P4 - shift on the Y-axis.
P5 - determines the maximum width of the text, it does not fit, will be truncated.

(album_font P1,R,G,B)
This tag determines the font and color of the album name.
Options:
P1 - font (so)
R, G, B - font color

(file_text P1,P2,P3,P4,P5)
This tag determines the position of the display of the file name if no information in the file are embedded.
Options:
P1 - Start coordinates (see above)
P2 - alignment (see above)
P3 - shift to the X-axis.
P4 - shift on the Y-axis.
P5 - determines the maximum width of the text, it does not fit, will be truncated.

(file_font P1,R,G,B)
This tag determines the font and color of the file name.
Options:
P1 - font (so)
R, G, B - font color

(index_text P1,P2,P3,P4,P5)
This tag determines the position of the display of the number of the currently played tracks (eg "21/145").
Options:
P1 - Start coordinates (see above)
P2 - alignment (see above)
P3 - shift to the X-axis.
P4 - shift on the Y-axis.
P5 - determines the maximum width of the text, it does not fit, will be truncated.

(index_font P1,R,G,B)
This tag determines the font and color of the number of the currently played tracks.
Options:
P1 - font (so)
R, G, B - font color

(mediatime_text P1,P2,P3,P4,P5)
This tag determines the position of the show the total duration of the track (eg, 03:55).
Options:
P1 - Start coordinates (see above)
P2 - alignment (see above)
P3 - shift to the X-axis.
P4 - shift on the Y-axis.
P5 - determines the maximum width of the text, it does not fit, will be truncated.

(mediatime_font P1,R,G,B)
This tag determines the font and color viewing the total duration of the track (eg, 03:55).
Options:
P1 - font (so)
R, G, B - font color

(duration_text P1,P2,P3,P4,P5)
This tag determines the position of the show the past / duration of the remaining tracks (eg -01:02).
Options:
P1 - Start coordinates (see above)
P2 - alignment (see above)
P3 - shift to the X-axis.
P4 - shift on the Y-axis.
P5 - determines the maximum width of the text, it does not fit, will be truncated.

(duration_font P1,R,G,B)
This tag determines the font and color of the display of the past / duration of the remaining tracks (eg -01:02).
Options:
P1 - font (so)
R, G, B - font color

3 comments:

  1. how to get or create the file * kdi & * KDS?

    thanks

    ReplyDelete
  2. Kdi file created from adobe photoshop,from png image,then rename it to kdi.

    kds file created from notepad

    ReplyDelete
  3. How to resize the sikn 240*320 to 128*160

    ReplyDelete