diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2016-03-21 20:35:05 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2016-03-21 20:35:05 +0100 |
commit | 066aaaeb73a8bb908b1c0d8c45f110b2f799f7ce (patch) | |
tree | 4cb26eb8ace976f7d0c8607dc2d3de2b5107670c /style/fracts.h | |
download | tde-style-baghira-066aaaeb73a8bb908b1c0d8c45f110b2f799f7ce.tar.gz tde-style-baghira-066aaaeb73a8bb908b1c0d8c45f110b2f799f7ce.zip |
Initial import of baghira 0.8
Diffstat (limited to 'style/fracts.h')
-rw-r--r-- | style/fracts.h | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/style/fracts.h b/style/fracts.h new file mode 100644 index 0000000..1774e93 --- /dev/null +++ b/style/fracts.h @@ -0,0 +1,74 @@ +#ifndef FRACTS_H +#define FRACTS_H + +/* +If you wish to replace the button or combo Images, you may end up with very querky results. +The reason is, that the style internally fracts those images into 9 tiles. + +To get valid results, you need to adjust the values below, so they fit your images. +the format is: +w, h, xOff, yOff, centerW, centerH, shadowH, glowWH + +- w, h are width and height of the whole button. +- xOff (yOff) is the distance of the central fraction from left (upper) button side. +- centerW (centerH) is the width (height) of the central button fraction. +- shadowH is the height of the buttons shadow +- glowWH is the size of the frame the glow draws around the button + +an image may be helpful (make sure your editor uses a monospace font) + +[- - - - - - - - - - - - - - - w - - - - - - - - - - - - -]--- +|----------------|--------------------------|-----------------| | +| | | | +| yOff | | | +| | | | +|----- xOff----->o--------- centerW --------|-----------------| | +| | | | +| | centerH | h +| | | | +|----------------|--------------------------|-----------------| | +| | | | +| | | | | +| | | | +| | | | | +|----------------|--------------------------|-----------------| | +. --- + +Also please notice, that the Button tiles are treated different from the rectangualr ones, namely, (S: static, T: tiled, TH: tiled horizontally, TV: tiled vertically) + +Round Button, Combo: +|----------------|--------------------------|-----------------| +| | | | +| S | TH | S | +| | | | +|----------------|--------------------------|-----------------| +| | | | +| TV | T | TV | +| | | | +|----------------|--------------------------|-----------------| +| | | | +| | | | +| S | TH | S | +| | | | +|----------------|--------------------------|-----------------| + +Rectangular Button: +|----------------|--------------------------|-----------------| +| | | | +| TV | TH | TV | +| | | | +|----------------|--------------------------|-----------------| +| | | | +| S | TH | S | +| | | | +|----------------|--------------------------|-----------------| +| | | | +| | | | +| TV | TH | TV | +| | | | +|----------------|--------------------------|-----------------| + +*/ + + +#endif |