|
1 | 1 | import subprocess
|
2 | 2 | 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") |
4 | 17 |
|
5 | 18 |
|
6 | 19 | def get_engine_path():
|
@@ -37,7 +50,7 @@ def migrate_plugin():
|
37 | 50 | try:
|
38 | 51 | subprocess.run(command, shell=True)
|
39 | 52 | messagebox.showinfo(
|
40 |
| - title="Migration complete", message="Your plugin was succesfully ported" |
| 53 | + title="Migration complete", message="Your plugin was successfully ported" |
41 | 54 | )
|
42 | 55 | except Exception as e:
|
43 | 56 | messagebox.showerror(title="Error", message="Error during the migration")
|
@@ -79,4 +92,6 @@ def migrate_plugin():
|
79 | 92 | print_button = Button(window, text="Begin Plugin Migration", command=migrate_plugin)
|
80 | 93 | print_button.grid(column=1, row=3)
|
81 | 94 |
|
| 95 | +set_dark_theme() |
| 96 | + |
82 | 97 | window.mainloop()
|
0 commit comments