Improved naming and imports
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
from os import path
|
||||
from tkinter import NW, E, N, S, W, messagebox, ttk
|
||||
|
||||
import requests
|
||||
import sv_ttk
|
||||
from os import path
|
||||
from tkinter import ttk, messagebox, N, S, W, E, NW
|
||||
from ttkthemes import ThemedTk
|
||||
from modules.dark_titlebar import dark_title_bar
|
||||
from modules.utils import configGet, use_dark_mode
|
||||
from classes.window_config import WindowConfig
|
||||
|
||||
from classes.frames import FrameDevices, FrameSaves, FrameSettings
|
||||
from classes.window_config import WindowConfig
|
||||
from modules.theme_titlebar import theme_title_bar
|
||||
from modules.utils import configGet, use_dark_mode
|
||||
|
||||
|
||||
class App(ThemedTk):
|
||||
|
||||
@@ -32,7 +35,7 @@ class App(ThemedTk):
|
||||
|
||||
if use_dark_mode():
|
||||
self.configure(background="#1c1c1c")
|
||||
dark_title_bar(self, mode="dark")
|
||||
theme_title_bar(self, mode="dark")
|
||||
sv_ttk.set_theme("dark")
|
||||
else:
|
||||
sv_ttk.set_theme("light")
|
||||
|
@@ -1,4 +1,5 @@
|
||||
from tkinter import ttk, NS, EW
|
||||
from tkinter import EW, NS, ttk
|
||||
|
||||
from ttkthemes import ThemedTk
|
||||
|
||||
|
||||
|
@@ -1,10 +1,12 @@
|
||||
import time
|
||||
import requests
|
||||
from os import path
|
||||
from tkinter import ttk, messagebox, IntVar, Toplevel, N, S, W, E, END
|
||||
from modules.dark_titlebar import dark_title_bar
|
||||
from modules.utils import configGet, configSet, use_dark_mode
|
||||
from tkinter import END, E, IntVar, N, S, Toplevel, W, messagebox, ttk
|
||||
|
||||
import requests
|
||||
|
||||
from modules.theme_titlebar import theme_title_bar
|
||||
from modules.logger import logger
|
||||
from modules.utils import configGet, configSet, use_dark_mode
|
||||
|
||||
|
||||
class WindowConfig(Toplevel):
|
||||
|
||||
@@ -28,7 +30,7 @@ class WindowConfig(Toplevel):
|
||||
self.focus_set()
|
||||
|
||||
if use_dark_mode() is True:
|
||||
dark_title_bar(self, "dark")
|
||||
theme_title_bar(self, "dark")
|
||||
|
||||
self.columnconfigure(0, weight=1)
|
||||
self.columnconfigure(1, weight=3)
|
||||
|
Reference in New Issue
Block a user