; _______________________________________________________________________________________
;|                                                                                       |
;| ..::FreshLib::..  Free, open source. Licensed under "BSD 2-clause" license."          |
;|_______________________________________________________________________________________|
;
;  Description: This file contains procedures and data, that form the appearance of the
;               FreshLib GUI application. Colors, control borders, backgrownd drawing etc.
;
;  Target OS: Any
;
;  Dependencies:
;
;  Notes: The user should be able to change these settings and if he uses external
;         procedures, then the code from this library should not be compiled.
;_________________________________________________________________________________________
module "GUI theme data and code library"


; Theme colors and other parameters as margins, offsets, fonts, etc.
iglobal


        NamedArray      GUI,                                    \
\
\ ; Widgets border colors and width
                clBorderNeutral, HEX, $ffa0a0a0,                     \
                clBorderLight,   HEX, $ffffffff,                     \
                clBorderDark,    HEX, $ff404040,                     \
                clBorderNeutralGray, HEX, $ff909090,                   \
                clBorderLightGray, HEX, $ffe0e0e0,                     \
                clBorderDarkGray,  HEX, $ff808080,                     \
                clBorderFocused, HEX, $ffff8000,                     \
\
                boxBorderWidth,  NUM, 1,                             \
\
\ ; TButton colors and styles. The multivalue fields are for Neutral, Hovered and Pressed states.
\
               clBtnBk,         HEX, <$ffd4d0c8, $ffe0e0e0, $ffa0a0a0, $80d4d0c8>,      \
               clBtnTxt,        HEX, <$ff000000, $ff000000, $ff000000, $ff606060>,           \
               btnBorder,       NUM, <bxRaised, bxRaised, bxSunken>,               \
               btnPressedOfsX,  NUM, 1,                                      \
               btnPressedOfsY,  NUM, 1,                                      \
               btnMarginX,      NUM, 8,                                      \
               btnMarginY,      NUM, 8,                                      \
\
\ ; TEdit colors and styles.
\
               clEditBk,          HEX, $ffffffff,                            \
               clEditBkFocused,   HEX, $ffffffff,                            \
               clEditTxt,         HEX, $ff000000,                            \
               clEditSel,         HEX, $600a246c,                            \
               clEditSelTxt,      HEX, $ffffffff,                            \
               editBorder,        NUM, bxSunken,                             \
               editBorderFocused, NUM, bxSunken,                             \
\
\ ; Dialog boxes and TForm color and styles
\
               clDialogBk,        HEX, $ffd4d0c8,                            \
               clDialogTxt,       HEX, $ff000000,                            \
               clSplitter,        HEX, $ff606060,                            \
\
\ ; TProgress colors and styles
\
              clProgressBk,       HEX, $ffd4d0c8,                            \
              clProgressBar,      HEX, $ff0a246c,                            \
              progressBorder,     NUM, bxSunken,                             \
\
\ ; TScrollbar colors and styles
\
              clScrollBk,         HEX, <$80d4d0c8, $d0d4d0c8>,                               \
              clScrollSlider,     HEX, <$c0808080, $ff808080>,                               \
              borderScroll,       NUM, bxRaised,                                             \
              scrollWidth,        NUM, 12,                                                   \
              minSliderHeight,    NUM, 24,                                                   \
\
\ ; TLabel colors and styles
\
              clLabelBk,          HEX, $00ffffff,                                            \
              clLabelTxt,         HEX, $ff000000,                                            \
\
\ ; TTreeView colors and styles.
\
              clTreeViewBack,     HEX, $ffffffff,                                            \
              clTreeViewText,     HEX, $ff000000,                                            \
              clTreeSelected,     HEX, $ff0a246c,                                            \
              clTreeSelectedTxt,  HEX, $ffffffff,                                            \
              clTreeFocused,      HEX, $ff0a246c,                                            \
              clTreeFocusedTxt,   HEX, $ffffff00,                                            \
\
              tvBorder,           NUM, bxSunken,                                             \
\
              tvIcons,            PNG, <"%lib%/gui/images/treeview/plus.png", "%lib%/gui/images/treeview/minus.png">,     \
\
\ ; TMenu colors and styles
\
              clMenuBack,         HEX, $ffd4d0c8,                                            \
              clMenuText,         HEX, $ff000000,                                            \
              clMenuTextGray,     HEX, $80000000,                                            \
              clMenuSelection,    HEX, $ff000080,                                            \
              borderMenu,         NUM, bxRaised,                                             \
              menuIconMargin,     NUM, 4,                                                    \
              menuSeparatorHeight,NUM, 10,                                                   \
              menuMinTextDist,    NUM, 32,                                                   \
              menuSubIcon,        PNG, "%lib%/gui/images/menu/submenu.png",                  \
              menuSubIconSel,     PNG, "%lib%/gui/images/menu/submenusel.png",               \
              menuSubIconGray,    PNG, "%lib%/gui/images/menu/submenugray.png",              \
\
\ ; Menu graphics
\
              iconMenuChecked,    PNG, "%lib%/gui/images/menu/check.png",                    \
              iconMenuCheckedGray,PNG, "%lib%/gui/images/menu/check_gray.png",               \
\
\ ; Checkbox colors
\
              clCheckboxBack,     HEX, <$ffffffff, $ffffffff, $ffffffff, $ffc0c0c0>,         \
              clCheckboxTxt,      HEX, $ff000000,                                            \
              clCheckboxTxtGray,  HEX, $ff808080,                                            \
              cbIconSize,         NUM, 13,                                                   \
              cbMargin,           NUM, 2,                                                    \
              borderCheckbox,     NUM, bxSunken,                                             \
              iconChecked,        PNG, "%lib%/gui/images/checkbox/check.png",                \
              iconCheckedGray,    PNG, "%lib%/gui/images/checkbox/check_gray.png",           \
\
\ ; Default font
\
              DefaultFont,        FONT, "Liberation Sans":13:fwNormal:0

endg



endmodule