| 1 | ======================================= |
|---|
| 2 | Licq Skins Howto |
|---|
| 3 | |
|---|
| 4 | February 6 2000, v1.5 |
|---|
| 5 | |
|---|
| 6 | Graham Roff |
|---|
| 7 | |
|---|
| 8 | Modified by Thomas Reitelbach |
|---|
| 9 | ======================================= |
|---|
| 10 | |
|---|
| 11 | Revision 1.5: (2003-03, by Thomas Reitelbach) |
|---|
| 12 | - added scrollbar color support: |
|---|
| 13 | - colors.scrollbar = #22436a |
|---|
| 14 | - colors.btnTxt = #e6e6e6 |
|---|
| 15 | |
|---|
| 16 | -> colors.scrollbar is the main color for the scrollbar. It also affects |
|---|
| 17 | the userlist table head. |
|---|
| 18 | -> colors.btnTxt is the text color of the userlist table head and the |
|---|
| 19 | direction arrows of the scrollbar |
|---|
| 20 | Both options support "default" as value, which means to use the systems |
|---|
| 21 | default color, or you can use named colors like "white" or "yellow" |
|---|
| 22 | instead of hex-values. |
|---|
| 23 | |
|---|
| 24 | Revision 1.4: |
|---|
| 25 | - when using a menu bar, all position height positions can be set |
|---|
| 26 | assuming 0 is the bottom of the menu bar |
|---|
| 27 | |
|---|
| 28 | Revision 1.3: |
|---|
| 29 | - added frame.frameStyle option |
|---|
| 30 | - added frame.transparent option |
|---|
| 31 | |
|---|
| 32 | Revision 1.2: |
|---|
| 33 | - added the colors.xxx section (at the bottom) |
|---|
| 34 | |
|---|
| 35 | Revision 1.1: |
|---|
| 36 | - added "label.bg = transparent" option to have transparent labels |
|---|
| 37 | - fixed problems setting colors for the combo box |
|---|
| 38 | - added "label.margin = #" option to allow setting the left margin for a |
|---|
| 39 | label |
|---|
| 40 | |
|---|
| 41 | |
|---|
| 42 | Skins Howto: |
|---|
| 43 | |
|---|
| 44 | Making a skin for Licq is fairly straightforward. To begin with, skins |
|---|
| 45 | can be: |
|---|
| 46 | 1) Transparent |
|---|
| 47 | 2) Non-rectangular (essentially using transparency) |
|---|
| 48 | 3) Any color |
|---|
| 49 | |
|---|
| 50 | A skin is composed of a skin.name directory in {prefix}/share/licq/qt-gui, |
|---|
| 51 | a name.skin file in that directory, and any graphics files necessary, also |
|---|
| 52 | in that directory. |
|---|
| 53 | The best way to explain how to build a skin is to look at a sample |
|---|
| 54 | name.skin file. Basically each object has various fields that must be |
|---|
| 55 | specified. All fields must be specified, text fields can have a value of |
|---|
| 56 | "default" to use the default behavior. Pixmap fields can have a value of |
|---|
| 57 | "none" as well to specify no pixmap. All pixmaps specified must be located |
|---|
| 58 | in the {prefix}/share/licq/qt-gui/skin.name directory. |
|---|
| 59 | To not display an object, set all the position coordinates to be |
|---|
| 60 | the same (non-zero) value and it will be hidden. |
|---|
| 61 | |
|---|
| 62 | |
|---|
| 63 | # ============================================================================== |
|---|
| 64 | # Border Skin |
|---|
| 65 | |
|---|
| 66 | # Frame Styles, add them together for combinations |
|---|
| 67 | # NoFrame = 0, Box = 1, Panel = 2, WinPanel = 3 |
|---|
| 68 | # Plain = 16, Raised = 32, Sunken = 48, MShadow = 240 |
|---|
| 69 | |
|---|
| 70 | [skin] |
|---|
| 71 | |
|---|
| 72 | # ---Frame--- |
|---|
| 73 | # The frame represents the background image and overall structure of the skin |
|---|
| 74 | # It can be of any format supported by Qt (bmp, xpm, ppm, gif) |
|---|
| 75 | # The mask is a 1 bit (black and white) image used for transparencies. Any |
|---|
| 76 | # region of the mask graphic containing 0's (white) will be transparent, |
|---|
| 77 | # a region with 1's (black) will be opaque. |
|---|
| 78 | frame.pixmap = frame-t.xpm |
|---|
| 79 | frame.mask = mask.gif |
|---|
| 80 | |
|---|
| 81 | # The frame style uses the numbers above to create the frame around the user |
|---|
| 82 | # window. The transparent options (which can be 1 or 0 for true/false) |
|---|
| 83 | # indicates whether the user window should be transparent or use the |
|---|
| 84 | # background color specified below. |
|---|
| 85 | frame.frameStyle = 51 |
|---|
| 86 | frame.transparent = 0 |
|---|
| 87 | |
|---|
| 88 | # The frame.border specifiers are used in two cases. First to determine where |
|---|
| 89 | # to place the user list (it will be places inside of the border), and second |
|---|
| 90 | # for resize effects. A typical graphics resize will ruin a border by |
|---|
| 91 | # stretching it in all directions. Licq will resize the frame pixmap by |
|---|
| 92 | # stretching only the section inside of the border in both directions, and |
|---|
| 93 | # expanding the horizontal and vertical borders in one direction only. |
|---|
| 94 | frame.border.top = 15 |
|---|
| 95 | frame.border.bottom = 110 |
|---|
| 96 | frame.border.left = 15 |
|---|
| 97 | frame.border.right = 15 |
|---|
| 98 | |
|---|
| 99 | # If this is set to a non-zero value then the skin will have a menu bar with |
|---|
| 100 | # the system button as the only member. This precludes any settings in |
|---|
| 101 | # btnSys below. Any height positions specified for other widgets will be |
|---|
| 102 | # automatically adjusted to be below the menu bar (ie 0 corresponds to the |
|---|
| 103 | # pixel right below the menu bar) |
|---|
| 104 | frame.hasMenuBar = 0 |
|---|
| 105 | |
|---|
| 106 | # ---Status Label--- |
|---|
| 107 | # The rect specifiers show where to place the object. A negative specification |
|---|
| 108 | # for any field indicates a number of pixels back from the opposite side of the |
|---|
| 109 | # window. So setting x1 to 20 and x2 to -20 means the label will strech across |
|---|
| 110 | # the entire window with a 20 pixel border on each side. The two points are |
|---|
| 111 | # the top left and bottom right corners of the object. |
|---|
| 112 | lblStatus.rect.x1 = 20 |
|---|
| 113 | lblStatus.rect.y1 = -40 |
|---|
| 114 | lblStatus.rect.x2 = -20 |
|---|
| 115 | lblStatus.rect.y2 = -20 |
|---|
| 116 | |
|---|
| 117 | # Colors are pretty self-explanatory. Using "default" will use the default |
|---|
| 118 | # colors. Also, setting .bg to "transparent" will make the label be |
|---|
| 119 | # transparent. |
|---|
| 120 | lblStatus.color.fg = default |
|---|
| 121 | lblStatus.color.bg = black |
|---|
| 122 | |
|---|
| 123 | # Frame style allows setting of what type of frame the object has. Get the |
|---|
| 124 | # values above, and OR them together for a combination. |
|---|
| 125 | lblStatus.frameStyle = 0 |
|---|
| 126 | |
|---|
| 127 | # Margin sets the left margin for the label, typically it would be combined |
|---|
| 128 | # with a pixmap to give a nicer interior look to it. |
|---|
| 129 | lblStatus.margin = 0 |
|---|
| 130 | |
|---|
| 131 | # This sets the background pixmap for the object. |
|---|
| 132 | lblStatus.pixmap = none |
|---|
| 133 | |
|---|
| 134 | # ---System Button--- |
|---|
| 135 | btnSys.rect.x1 = 20 |
|---|
| 136 | btnSys.rect.y1 = -65 |
|---|
| 137 | btnSys.rect.x2 = 70 |
|---|
| 138 | btnSys.rect.y2 = -45 |
|---|
| 139 | |
|---|
| 140 | # These three pixmaps are what the button will look like when it's up and has |
|---|
| 141 | # the focus, up and without the focus and down. |
|---|
| 142 | btnSys.pixmapUpFocus = btnsysupfocus.xpm |
|---|
| 143 | btnSys.pixmapUpNoFocus = btnsysupnofocus.xpm |
|---|
| 144 | btnSys.pixmapDown = btnsysdown.xpm |
|---|
| 145 | btnSys.color.fg = default |
|---|
| 146 | btnSys.color.bg = black |
|---|
| 147 | |
|---|
| 148 | # This is the text that will appear on the System Button. If there is a pixmap |
|---|
| 149 | # set then this will be ignored. |
|---|
| 150 | btnSys.caption = default |
|---|
| 151 | |
|---|
| 152 | # ---Message Label--- |
|---|
| 153 | lblMsg.rect.x1 = 75 |
|---|
| 154 | lblMsg.rect.y1 = -65 |
|---|
| 155 | lblMsg.rect.x2 = -20 |
|---|
| 156 | lblMsg.rect.y2 = -45 |
|---|
| 157 | lblMsg.color.fg = yellow |
|---|
| 158 | lblMsg.color.bg = transparent |
|---|
| 159 | lblMsg.frameStyle = 0 |
|---|
| 160 | lblMsg.pixmap = none |
|---|
| 161 | lblMsg.margin = 0 |
|---|
| 162 | |
|---|
| 163 | # ---Group Combobox--- |
|---|
| 164 | cmbGroups.rect.x1 = 25 |
|---|
| 165 | cmbGroups.rect.y1 = -90 |
|---|
| 166 | cmbGroups.rect.x2 = -25 |
|---|
| 167 | cmbGroups.rect.y2 = -70 |
|---|
| 168 | cmbGroups.color.fg = default |
|---|
| 169 | cmbGroups.color.bg = grey76 |
|---|
| 170 | |
|---|
| 171 | # --- colors --- |
|---|
| 172 | colors.online = blue |
|---|
| 173 | colors.away = dark green |
|---|
| 174 | colors.offline = firebrick |
|---|
| 175 | colors.newuser = yellow |
|---|
| 176 | colors.background = default |
|---|
| 177 | colors.gridlines = black |
|---|
| 178 | colors.scrollbar = #22436a |
|---|
| 179 | colors.btnTxt = #e6e6e6 |
|---|
| 180 | |
|---|
| 181 | # ============================================================================== |
|---|
| 182 | |
|---|
| 183 | |
|---|