mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
color changes
This commit is contained in:
parent
867e9a99f6
commit
5e032069c1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user