Menu

#3 Wavesurfer doesn't respect the ttk::theme selected on the system level

Unstable (example)
open
nobody
None
5
2023-05-10
2023-05-10
Géballin
No

When launched for the first time, Waesurfer doesn't respect the ttk::theme selected by the user at the system level (on ~/.Xresources) and instead, set it's theme to the old looking default.
There is no reaso to not keep the theme selected by the user.

Patch file :

--- /usr/lib/wavesurfer/src/wsurf/wsurf.tcl 2018-11-05 18:05:38.000000000 +0100
+++ src/wsurf/wsurf.tcl 2023-05-10 21:21:49.579923640 +0200
@@ -348,17 +348,7 @@
        }
    }
     }
-    if {$::tcl_platform(os) == "Darwin"} {
-   set Info(Prefs,theme) "aqua"
-    } elseif {$::tcl_platform(platform) == "unix"} {
-   set Info(Prefs,theme) "default"
-    } else {
-   if {$::tcl_platform(osVersion) == "5.1"} {
-       set Info(Prefs,theme) "xpnative"
-   } else {
-       set Info(Prefs,theme) "winnative"
-   }
-    }
+    set Info(Prefs,theme) [ttk::style theme use]
     ttk::style theme use $Info(Prefs,theme)

     set Info(Initialized) 1

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.