color changes

This commit is contained in:
Tom Schimansky 2021-03-05 22:14:47 +01:00
parent 867e9a99f6
commit 5e032069c1

View File

@ -1,7 +1,9 @@
import tkinter
import tkinter.messagebox
import customtkinter
import sys
# Set dark appearance mode:
customtkinter.set_appearance_mode("Dark") # Other: "Light", "System"
@ -20,6 +22,9 @@ class App(tkinter.Tk):
tkinter.Tk.__init__(self, *args, **kwargs)
if customtkinter.get_appearance_mode() == "Dark":
self.configure(bg="gray20") # set window background to dark color
self.title(App.APP_NAME)
self.geometry(str(App.WIDTH) + "x" + str(App.HEIGHT))
self.minsize(App.WIDTH, App.HEIGHT)