Skip to content

Commit d364320

Browse files
committed
Changed the theme to dark theme for better user experience
1 parent aaa5519 commit d364320

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

UnrealPluginMigrationTool.py

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
import subprocess
22
from tkinter import Tk, Canvas, Label, Entry, Button, filedialog, messagebox
3-
import os
3+
4+
5+
def set_dark_theme():
6+
window.configure(bg="#333")
7+
canvas.configure(bg="#333")
8+
9+
for widget in window.winfo_children():
10+
if isinstance(widget, (Label, Entry, Button)):
11+
widget.configure(bg="#555", fg="white")
12+
13+
engine_button.configure(bg="#333", fg="white")
14+
origin_button.configure(bg="#333", fg="white")
15+
output_button.configure(bg="#333", fg="white")
16+
print_button.configure(bg="#333", fg="white")
417

518

619
def get_engine_path():
@@ -37,7 +50,7 @@ def migrate_plugin():
3750
try:
3851
subprocess.run(command, shell=True)
3952
messagebox.showinfo(
40-
title="Migration complete", message="Your plugin was succesfully ported"
53+
title="Migration complete", message="Your plugin was successfully ported"
4154
)
4255
except Exception as e:
4356
messagebox.showerror(title="Error", message="Error during the migration")
@@ -79,4 +92,6 @@ def migrate_plugin():
7992
print_button = Button(window, text="Begin Plugin Migration", command=migrate_plugin)
8093
print_button.grid(column=1, row=3)
8194

95+
set_dark_theme()
96+
8297
window.mainloop()

0 commit comments

Comments
 (0)