File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 2121
2222import os
2323import subprocess
24- import sys
2524import tkinter .ttk as ttk
2625from tkinter import *
2726
27+ import sv_ttk
2828import psutil
2929import ruamel .yaml
3030from PIL import Image , ImageTk
@@ -73,10 +73,8 @@ def __init__(self):
7373 # When window gets focus again, reload theme preview in case it has been updated by theme editor
7474 self .window .bind ("<FocusIn>" , self .on_theme_change )
7575
76- # Make TK look better on Linux platforms with Sun Valley ttk theme
77- if sys .platform == "linux" :
78- import sv_ttk
79- sv_ttk .set_theme ("light" )
76+ # Make TK look better with Sun Valley ttk theme
77+ sv_ttk .set_theme ("light" )
8078
8179 self .theme_preview_img = None
8280 self .theme_preview = Label (self .window )
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ GPUtil~=1.4.0 # Nvidia GPU
77pystray ~= 0.19.4 # Tray icon (all OS)
88babel ~= 2.11.0 # Date/time formatting
99ruamel.yaml ~= 0.17.21 # For configuration editor
10-
10+ sv-ttk ~= 2.4 # Tk Sun Valley theme for configuration editor
1111
1212# Following packages are for AMD GPU on Linux
1313# Note: you may need to manually install Cython first
@@ -20,6 +20,3 @@ pyadl~=0.1; sys_platform=="win32"
2020# Following packages are for LibreHardwareMonitor integration on Windows
2121pythonnet ~= 3.0.1 ; sys_platform == "win32"
2222pywin32 >= 305 ; sys_platform == "win32"
23-
24- # Following packages are Ttk themes for Linux to make the config. editor look better
25- sv-ttk ~= 2.4 ; sys_platform == "linux"
You can’t perform that action at this time.
0 commit comments