Skip to content

Commit b87d564

Browse files
committed
Add info label in preview window
1 parent d405a0f commit b87d564

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

theme-editor.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ def on_closing():
126126
# Create preview window
127127
logger.debug("Opening theme preview window with static data")
128128
viewer = tkinter.Tk()
129-
viewer.title("Turing System Monitor")
129+
viewer.title("Turing SysMon Theme Editor")
130130
viewer.iconphoto(True, tkinter.PhotoImage(file="res/icons/monitor-icon-17865/64.png"))
131-
viewer.geometry(str(display.lcd.get_width() + 24) + "x" + str(display.lcd.get_height() + 24))
131+
viewer.geometry(str(display.lcd.get_width() + 24) + "x" + str(display.lcd.get_height() + 44))
132132
viewer.protocol("WM_DELETE_WINDOW", on_closing)
133133
viewer.call('wm', 'attributes', '.', '-topmost', '1') # Preview window always on top
134134

@@ -143,6 +143,9 @@ def on_closing():
143143
viewer_picture = tkinter.Label(viewer, image=display_image)
144144
viewer_picture.place(x=10, y=10)
145145

146+
label = tkinter.Label(viewer, text="This preview will reload when theme file is updated")
147+
label.place(x=0, y=display.lcd.get_height() + 24, width=display.lcd.get_width() + 24)
148+
146149
viewer.update()
147150

148151
logger.debug("You can now edit the theme file in the editor. When you save your changes, the preview window will "

0 commit comments

Comments
 (0)