Skip to content

Commit 9e0cd08

Browse files
committed
Apply SunValley tk theme to all platforms
1 parent 7592d0d commit 9e0cd08

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

configure.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121

2222
import os
2323
import subprocess
24-
import sys
2524
import tkinter.ttk as ttk
2625
from tkinter import *
2726

27+
import sv_ttk
2828
import psutil
2929
import ruamel.yaml
3030
from 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)

requirements.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ GPUtil~=1.4.0 # Nvidia GPU
77
pystray~=0.19.4 # Tray icon (all OS)
88
babel~=2.11.0 # Date/time formatting
99
ruamel.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
2121
pythonnet~=3.0.1; sys_platform=="win32"
2222
pywin32>=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"

0 commit comments

Comments
 (0)