Skip to content

Commit

Permalink
Merge branch 'sh/macos-labels'
Browse files Browse the repository at this point in the history
Fix label background colors on MacOS when ttk is enabled.

* sh/macos-labels:
  git-gui: fix colored label backgrounds when using themed widgets
  • Loading branch information
prati0100 committed Dec 17, 2020
2 parents 3e5c911 + f9481b1 commit 7d6d21f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/themed.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ proc InitEntryFrame {} {

proc gold_frame {w args} {
global use_ttk
if {$use_ttk} {
if {$use_ttk && ![is_MacOSX]} {
eval [linsert $args 0 ttk::frame $w -style Gold.TFrame]
} else {
eval [linsert $args 0 frame $w -background gold]
Expand All @@ -183,7 +183,7 @@ proc gold_frame {w args} {

proc tlabel {w args} {
global use_ttk
if {$use_ttk} {
if {$use_ttk && ![is_MacOSX]} {
set cmd [list ttk::label $w -style Color.TLabel]
foreach {k v} $args {
switch -glob -- $k {
Expand Down

0 comments on commit 7d6d21f

Please sign in to comment.