File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 11import os
22import threading
33import sys
4+ import platform
45import tkinter as tk
56from tkinter import ttk , messagebox
67
@@ -53,7 +54,10 @@ def run_gui(devices):
5354 style .configure ("TLabelframe" , background = "#2b2b2b" , foreground = "white" )
5455 style .configure ("TLabelframe.Label" , background = "#2b2b2b" , foreground = "white" )
5556 style .configure ("TCheckbutton" , background = "#2b2b2b" , foreground = "white" )
56- style .configure ("TButton" , background = "white" , foreground = "#2b2b2b" )
57+ if platform .system () == "Windows" : # On Windows, I don't know why background always stays white even if I set it to black
58+ style .configure ("TButton" , background = "white" , foreground = "#2b2b2b" )
59+ else :
60+ style .configure ("TButton" , background = "#2b2b2b" , foreground = "white" )
5761 style .configure ("TEntry" , fieldbackground = "#2b2b2b" , foreground = "white" )
5862 style .configure ("TCombobox" , fieldbackground = "#2b2b2b" , foreground = "white" )
5963 style .configure ("TScale" , background = "#2b2b2b" , troughcolor = "gray" )
You can’t perform that action at this time.
0 commit comments