Skip to content

Commit

Permalink
try using native Windows theme
Browse files Browse the repository at this point in the history
  • Loading branch information
nhanb committed Jun 19, 2023
1 parent 67819e5 commit 678c798
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions tcl/main.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@ package require Tk
wm title . "Overly Repetitive Tedious Software (in Go)"
tk appname gorts

#set OS [lindex $tcl_platform(os) 0]
#if {$OS == "Windows"} {
#ttk::style theme use vista
#} elseif {$OS == "Darwin"} {
#ttk::style theme use aqua
#} else {
#ttk::style theme use clam
#}
ttk::style theme use clam
set OS [lindex $tcl_platform(os) 0]
if {$OS == "Windows"} {
ttk::style theme use vista
} elseif {$OS == "Darwin"} {
ttk::style theme use aqua
} else {
ttk::style theme use clam
}

wm protocol . WM_DELETE_WINDOW {
exit 0
Expand Down

0 comments on commit 678c798

Please sign in to comment.