diff options
author | culler <culler> | 2023-01-30 03:08:26 (GMT) |
---|---|---|
committer | culler <culler> | 2023-01-30 03:08:26 (GMT) |
commit | e65a61d84a484846c04835b4554655247b9e853e (patch) | |
tree | b25d576c04d05262538ea73333b410c660083ff1 /macosx/ttkMacOSXTheme.h | |
parent | a0af2d9146b4ac1bded38cb44b1ef3f75c8de8c6 (diff) | |
download | tk-e65a61d84a484846c04835b4554655247b9e853e.zip tk-e65a61d84a484846c04835b4554655247b9e853e.tar.gz tk-e65a61d84a484846c04835b4554655247b9e853e.tar.bz2 |
Add demo script
Diffstat (limited to 'macosx/ttkMacOSXTheme.h')
-rw-r--r-- | macosx/ttkMacOSXTheme.h | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/macosx/ttkMacOSXTheme.h b/macosx/ttkMacOSXTheme.h index 977c168..994cb10 100644 --- a/macosx/ttkMacOSXTheme.h +++ b/macosx/ttkMacOSXTheme.h @@ -302,6 +302,27 @@ static const ButtonDesign recessedDesign = { } }; +static const ButtonDesign sidebarDesign = { + .radius = 8.0, + .palettes = { + { + .light = {.face = 210.0, .top = 210.0, .side = 210.0, .bottom = 210.0}, + .dark = {.face = 129.0, .top = 129.0, .side = 129.0, .bottom = 129.0}, + .onBits = TTK_STATE_SELECTED, .offBits = 0 + }, + { + .light = {.face = 210.0, .top = 210.0, .side = 210.0, .bottom = 210.0}, + .dark = {.face = 129.0, .top = 129.0, .side = 129.0, .bottom = 129.0}, + .onBits = TTK_STATE_PRESSED, .offBits = 0 + }, + { + .light = {.face = 256.0, .top = 256.0, .side = 256.0, .bottom = 256.0}, + .dark = {.face = 256.0, .top = 256.0, .side = 256.0, .bottom = 256.0}, + .onBits = 0, .offBits = 0 + } + } +}; + static const ButtonDesign incdecDesign = { .radius = 5.0, .palettes = { @@ -474,6 +495,7 @@ static const Ttk_StateTable ButtonAdornmentTable[] = { #define TkRoundedRectButton 0x8002 #define TkRecessedButton 0x8003 #define TkInlineButton 0x8004 +#define TkSidebarButton 0x8005 /* * The struct passed as clientData when drawing Ttk buttons. */ @@ -509,8 +531,8 @@ static ThemeButtonParams NoThemeMetric}, RecessedButtonParams = {TkRecessedButton, kThemeMetricPushButtonHeight, NoThemeMetric}, - InlineButtonParams = {TkInlineButton, kThemeMetricPushButtonHeight, - NoThemeMetric}; + SidebarButtonParams = {TkSidebarButton, NoThemeMetric, NoThemeMetric}, + InlineButtonParams = {TkInlineButton, kThemeMetricPushButtonHeight, NoThemeMetric}; /* * Others: kThemeDisclosureRight, kThemeDisclosureDown, |