Skip to content

Commit 7d6d21f

Browse files
committed
Merge branch 'sh/macos-labels'
Fix label background colors on MacOS when ttk is enabled. * sh/macos-labels: git-gui: fix colored label backgrounds when using themed widgets
2 parents 3e5c911 + f9481b1 commit 7d6d21f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/themed.tcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ proc InitEntryFrame {} {
174174

175175
proc gold_frame {w args} {
176176
global use_ttk
177-
if {$use_ttk} {
177+
if {$use_ttk && ![is_MacOSX]} {
178178
eval [linsert $args 0 ttk::frame $w -style Gold.TFrame]
179179
} else {
180180
eval [linsert $args 0 frame $w -background gold]
@@ -183,7 +183,7 @@ proc gold_frame {w args} {
183183

184184
proc tlabel {w args} {
185185
global use_ttk
186-
if {$use_ttk} {
186+
if {$use_ttk && ![is_MacOSX]} {
187187
set cmd [list ttk::label $w -style Color.TLabel]
188188
foreach {k v} $args {
189189
switch -glob -- $k {

0 commit comments

Comments
 (0)