summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorculler <culler>2021-11-01 22:09:56 (GMT)
committerculler <culler>2021-11-01 22:09:56 (GMT)
commit288cea6827428e424632326901e73d2807cb2135 (patch)
tree326859d17c8cb83e38aa7956ba71d172e014c816 /generic
parent2e905a7d2f59d4cb965071ba541abf27cce68113 (diff)
parent17efef46d0ceb334776458a8d23df6fb6dcf6c75 (diff)
downloadtk-288cea6827428e424632326901e73d2807cb2135.zip
tk-288cea6827428e424632326901e73d2807cb2135.tar.gz
tk-288cea6827428e424632326901e73d2807cb2135.tar.bz2
Appearance and usability issues, mainly for Monterey, mainly for dark mode.
Diffstat (limited to 'generic')
-rw-r--r--generic/tkButton.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/generic/tkButton.c b/generic/tkButton.c
index 4b04e9f..2c7d7d2 100644
--- a/generic/tkButton.c
+++ b/generic/tkButton.c
@@ -104,8 +104,13 @@ static const Tk_OptionSpec labelOptionSpecs[] = {
NULL, 0, -1, 0, "-foreground", 0},
{TK_OPTION_FONT, "-font", "font", "Font",
DEF_BUTTON_FONT, -1, Tk_Offset(TkButton, tkfont), 0, 0, 0},
+#ifdef DEF_LABEL_FG
+ {TK_OPTION_COLOR, "-foreground", "foreground", "Foreground",
+ DEF_LABEL_FG, -1, Tk_Offset(TkButton, normalFg), 0, 0, 0},
+#else
{TK_OPTION_COLOR, "-foreground", "foreground", "Foreground",
DEF_BUTTON_FG, -1, Tk_Offset(TkButton, normalFg), 0, 0, 0},
+#endif
{TK_OPTION_STRING, "-height", "height", "Height",
DEF_BUTTON_HEIGHT, Tk_Offset(TkButton, heightPtr), -1, 0, 0, 0},
{TK_OPTION_BORDER, "-highlightbackground", "highlightBackground",