Ice Button Theme Windows Library (for Dark or Light Theme Button)
Posted: Thu Oct 05, 2023 2:47 pm
IceButtons Windows library will add a theme to your ButtonGadget, ButtonImageGadget
They'll still work in the same way as PureBasic Button, they're ButtonGadget, ButtonImageGadget
How tu use:
. Add: XIncludeFile "IceButtons.pbi"
. And apply one of the themes With the function: SetIceButtonTheme(#IceBtn_Theme_DarkBlue) or SetIceButtonTheme(#IceBtn_Theme_LightBlue)
Easy, that's all
Note that you can SetIceButtonTheme(Theme) anywhere you like in your source, before or after creating the window, gadget's and buttons

Theme attribute (defined in DataSection)
Download latest release
or visit https://github.com/ChrisRfr/IceButtons and add a star if you like
Thanks for your comments, feedback
They'll still work in the same way as PureBasic Button, they're ButtonGadget, ButtonImageGadget
How tu use:
. Add: XIncludeFile "IceButtons.pbi"
. And apply one of the themes With the function: SetIceButtonTheme(#IceBtn_Theme_DarkBlue) or SetIceButtonTheme(#IceBtn_Theme_LightBlue)
Easy, that's all

Note that you can SetIceButtonTheme(Theme) anywhere you like in your source, before or after creating the window, gadget's and buttons

Theme attribute (defined in DataSection)
- #IceBtn_color, Color : Button color
- #IceBtn_BackColor, Color Or #PB_Default : Button background color, #PB_Default To get window color
- #IceBtn_DisableColor, Color Or #PB_Default : Disable Button color, #PB_Default To obtain the color by applying a deactivated filter To the button color
- #IceBtn_FrontColor, Color Or #PB_Default : Button text color, #PB_Default = White Or Black depending on whether the button color is dark Or light
- #IceBtn_DisableFrontColor, Color Or #PB_Default : Disable text color, #PB_Default To obtain the color by applying a deactivated filter To the button text color
- #IceBtn_EnableShadow, 0 Or 1 : Disable Or Enable text shadow
- #IceBtn_ShadowColor, Color Or #PB_Default : Button text shadow color, #PB_Default = White Or Black depending on whether the button text color is dark Or light
- ##IceBtn_BorderColor, Color or #PB_Default : Button border color, #PB_Default for the Button color
- #IceBtn_RoundX, Size : from 1 To X. For RoundBox(), the radius of the rounded corners in the X direction
- #IceBtn_RoundY, Size : from 1 To Y. For RoundBox(), the radius of the rounded corners in the Y direction
- SetIceButtonTheme(#Theme) : Apply, Change Theme
. . . - Ex: SetIceButtonTheme(#IceBtn_Theme_DarkBlue) or SetIceButtonTheme(#IceBtn_Theme_LightBlue) or custom future Theme - GetIceButtonTheme() : Get the current theme
- IsIceButton(#Gadget) : Is it an IceButton?
- FreeIceButtonTheme() : Free the theme, IceButton and associated resources and return to the standard ButtonGadget
- SetIceBtnThemeAttribute(#Attribut, Value) : Changes a theme attribute value
. . . - Ex: SetIceBtnThemeAttribute(#IceBtn_color, #Blue) to change the theme Button color attribute in blue - GetIceBtnThemeAttribute(#Attribut) : Returns a theme Attribute value
. . . - Ex: GetIceBtnThemeAttribute(#IceBtn_color) - SetIceButtonAttribute(#Gadget, #Attribut, Value) : Changes an IceButton attribute value
. . . - Ex: SetIceButtonAttribute(#Gadget, #IceBtn_color, #Blue) to change the IceButton color in blue - GetIceButtonAttribute(#Gadget, #Attribut) : Returns an IceButton attribute value
. . . - Ex: GetIceButtonAttribute(#Gadget, #IceBtn_color)
Download latest release
or visit https://github.com/ChrisRfr/IceButtons and add a star if you like

Thanks for your comments, feedback
