From 030702f31a913c601ac2f92d8a7a01c7317c1af7 Mon Sep 17 00:00:00 2001 From: Stefan Schippers Date: Sat, 2 Mar 2024 18:03:03 +0100 Subject: [PATCH] set default foreground, background and various colors to avoid things geting screwed up by desktop themers --- src/xschem.tcl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/xschem.tcl b/src/xschem.tcl index 4dd73446..33768068 100644 --- a/src/xschem.tcl +++ b/src/xschem.tcl @@ -8110,6 +8110,20 @@ proc setup_tcp_bespice {} { ### ### MAIN PROGRAM ### +if { 1 } { ;# normal + option add *foreground black startupFile + option add *activeforeground black startupFile + option add *background {#d9d9d9} startupFile + option add *activebackground {#ececec} startupFile + option add *disabledforeground {#a3a3a3} startupFile +} else { ;# dark colorscheme + option add *foreground white startupFile + option add *activeforeground white startupFile + option add *background {grey20} startupFile + option add *activebackground {grey40} startupFile + option add *disabledforeground {grey50} startupFile +} + set OS [lindex $tcl_platform(os) 0] set env(LC_ALL) C # tcl variable XSCHEM_LIBRARY_PATH should already be set in xschemrc