Krento Application Skin

The native Krento skin is a set of the initialization (.ini) file and few images. The name of the skin's initialization file must be background.ini.

The Krento skin initialization file contains several sections, each of which consists of a group of related settings. The sections and settings are listed in the skin .ini file in the following format:

[section name]
keyname=value
In this example, [section name] is the name of a section. The enclosing brackets ([]) are required, and the left bracket must be in the leftmost column on the screen.

The keyname=value statement defines the value of each setting. A keyname is the name of a setting. It can consist of any combination of letters and digits, and must be followed immediately by an equal sign (=). The value can be an integer, a string, or a quoted string, depending on the setting. You can include comments in initialization files. You must begin each line of a comment with a semicolon (;).

The skin's .ini file has the following structure:

[Info] 
Name = User Friendly Name of the skin
FontName = Tahoma
FontSize = 14
Color = White
HotImage = DoDown.png
StoneInfo = StoneInfo.png

[Background]
Image = background.png
LeftWidth = 12
RightWidth = 12
TopHeight = 12
BottomHeight = 12
OutsideBorderTop = 0
OutsideBorderBottom = 0
OutsideBorderLeft = 0
OutsideBorderRight = 0
TextOffset = 14

[Stone]
Image = background.png
OutsideBorderTop = 12
OutsideBorderBottom = 12
OutsideBorderLeft = 12
OutsideBorderRight = 12
Border = 0

If the size of the stone's skin drawing is smaller than total size of the image (the image has unused transparent area between the image border and the skin border) then this area's size is specified by using the OutsideBorderXXX parameters for the Stones Manager.
The size of the non stretched area for the manager background is defined as the OutsideBorderXXX parameter and the XXXWidth/XXXHeight parameter.
For the stone background only the OutsideBorderXXX parameter is used and it equals to the total size of the non stretched area.

Krento Skin Format

  1.  OutsideBorderLeft
  2.  OutsideBorderBottom
  3.  OutsideBorderRight
  4.  OutsideBorderTop
  5.  TopHeight
  6.  LeftWidth
  7.  LeftWidth + OutsideBorderLeft = Total non stretched area size at the left side
  8.  OutsideBorderBottom + BottomHeight = Total non stretched area size at the bottom
  9.  BottomHeight
  10.  OutsideBorderRight + RightWidth = Total non stretched area size at the right side
  11.  RightWidth
  12.  OutsideBorderTop + TopHeight = Total non stretched area size at the top
  13.  TextOffset (This value can be negative as well)
  14.  Text Area - the area of the Stone Manager where text is displayed
  15.  Stretched area of the skin. This part of the skin is used to fill the central part of the stone or manager window
  16.  Non stretched corner of the skin.

The skin is packaged by default as PKZIP file with extension .kskin, for example MySkin.kskin
It is recommended to add all files to .kskin file including the subfolder name.

Skin File Context


Installing of Krento skin (.kskin) file is very simple - just drag and drop it to Krento Pulsar.

Skin File Package

Krento Menu skin

Krento Menu Skin format is similar to Krento Skin Format. It is a set of the ini file and few images. Ini file has the following structure:

[Krento]
Caption = Aero Royale
FontName = Tahoma
FontSize = 12

[Menu]
ImageSize = 16
ItemHeight = 20
LeftMargin = 30
TopMargin = 32
TextLeftMargin = 29
TextRightMargin = 28
TextOffset = 4
OuterBorderLeft = 16
OuterBorderTop = 10
DividerSize = 6
ForeColor = White
SelectedColor = Black
DisabledColor = Gray
Image = background.png
Highlight = item.png

The skin is packaged by default as PKZIP file with extension .kmenu, for example MyMenuSkin.kmenu.
It is recommended to add all files to kmenu file including subfolder name.
Installing of Krento Menu Skin (.kmenu) file is very simple - just drag and drop it to the Krento Pulsar.