Line: package ifneeded ttk::theme::scidthemes 0.9.3 [list source [file join $dir scidthemes.tcl]] register a command, which must be executed, when user call: package require ttk::theme::scidthemes So, if user doesn't call "package require ", then themes from ttk::theme::scidthemes package does not to be loaded. Original "pkgIndex.tcl" file have line: source [file join $themesdir scidthemes.tcl] which directly loads the scidthemes.tcl file when interpreter detect pkgIndex.tcl in the directories from...
With this patch, first line of pkgIndex.tcl - is not needs. So, final version of pkgIndex.tcl file may be just in one line: package ifneeded ttk::theme::scidthemes 0.9.3 [list source [file join $dir scidthemes.tcl]]
I prepare system and test patches. Final versions of patches attached. Patch 1: --- a/pkgIndex.tcl 2022-06-19 20:48:15.581926339 +0300 +++ b/pkgIndex.tcl 2022-06-19 20:49:23.326755651 +0300 @@ -1,3 +1,3 @@ set themesdir [file join [pwd] [file dirname [info script]]] -source [file join $themesdir scidthemes.tcl] +package ifneeded ttk::theme::scidthemes 0.9.3 [list source [file join $dir scidthemes.tcl]] #option add *Menu.BorderWidth 0 Patch 2 --- a/scidthemes.tcl 2022-06-19 20:08:54.825417759 +0300...
scidthemes-0.9.3