diff options
author | marc_culler <marc.culler@gmail.com> | 2021-11-01 19:40:31 (GMT) |
---|---|---|
committer | marc_culler <marc.culler@gmail.com> | 2021-11-01 19:40:31 (GMT) |
commit | b60832afff8d31b3b9d0bba6b1d428a28d4ef45a (patch) | |
tree | ad514831008f3aa1429a5b27741e74cfc33183b4 /macosx/tkMacOSXButton.c | |
parent | 06ca271c828bc7df25dfba6698246b15def3a28e (diff) | |
download | tk-b60832afff8d31b3b9d0bba6b1d428a28d4ef45a.zip tk-b60832afff8d31b3b9d0bba6b1d428a28d4ef45a.tar.gz tk-b60832afff8d31b3b9d0bba6b1d428a28d4ef45a.tar.bz2 |
Check and radio buttons.
Diffstat (limited to 'macosx/tkMacOSXButton.c')
-rw-r--r-- | macosx/tkMacOSXButton.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/macosx/tkMacOSXButton.c b/macosx/tkMacOSXButton.c index b083531..a613a76 100644 --- a/macosx/tkMacOSXButton.c +++ b/macosx/tkMacOSXButton.c @@ -765,10 +765,12 @@ TkMacOSXDrawButton( * Using a ttk::button would be a much better choice, however. */ - if (TkMacOSXInDarkMode(butPtr->tkwin) && - mbPtr->drawinfo.state != kThemeStatePressed && - !(mbPtr->drawinfo.adornment & kThemeAdornmentDefault)) { - hiinfo.state = kThemeStateInactive; + if ([NSApp macOSVersion] < 120000) { + if (TkMacOSXInDarkMode(butPtr->tkwin) && + mbPtr->drawinfo.state != kThemeStatePressed && + !(mbPtr->drawinfo.adornment & kThemeAdornmentDefault)) { + hiinfo.state = kThemeStateInactive; + } } HIThemeDrawButton(&cntrRect, &hiinfo, dc.context, kHIThemeOrientationNormal, &contHIRec); |