|
1 | 1 |
|
2 | 2 | #* Aurora Text Editor |
3 | 3 | #? Minimalistic text editor |
4 | | -#? Version: 0.8 |
| 4 | +#? Version: 0.8.1 |
5 | 5 |
|
6 | 6 | from tkinter import * |
7 | 7 | from tkinter.messagebox import askyesno, QUESTION, showwarning |
@@ -35,7 +35,7 @@ def is_modified_text_event(Event): |
35 | 35 |
|
36 | 36 | # <--- Window init |
37 | 37 | prog_name = 'Aurora Text Editor' |
38 | | -prog_version = ' v0.8' |
| 38 | +prog_version = ' v0.8.1' |
39 | 39 | window = Tk() |
40 | 40 | window.title(prog_name+prog_version) |
41 | 41 | # ---> |
@@ -239,44 +239,14 @@ def on_menu_set_theme(theme_str: str): |
239 | 239 | 'Light': ['black', 'white', 'black'], |
240 | 240 | 'Black and White': ['white', 'black', 'white'], |
241 | 241 | 'Cyberpunk': ['#00c2a2', '#25022d', 'red'], |
242 | | - 'Cybperunk Raspberry': ['#f1136e', 'black', 'red'], |
| 242 | + 'Cyberpunk Raspberry': ['#f1136e', 'black', 'red'], |
243 | 243 | 'Terminal': ['lime', 'black', 'lime'] |
244 | 244 | } |
245 | 245 |
|
246 | | - if theme_str == 'Light': |
247 | | - |
248 | | - text.configure(foreground = theme_list['Light'][0], |
249 | | - background = theme_list['Light'][1], |
250 | | - insertbackground = theme_list['Light'][2]) |
251 | | - theme_name = theme_str |
252 | | - |
253 | | - elif theme_str == 'Black and White': |
254 | | - |
255 | | - text.configure(foreground = theme_list['Black and White'][0], |
256 | | - background = theme_list['Black and White'][1], |
257 | | - insertbackground = theme_list['Black and White'][2]) |
258 | | - theme_name = theme_str |
259 | | - |
260 | | - elif theme_str == 'Cyberpunk': |
261 | | - |
262 | | - text.configure(foreground = theme_list['Cyberpunk'][0], |
263 | | - background = theme_list['Cyberpunk'][1], |
264 | | - insertbackground = theme_list['Cyberpunk'][2]) |
265 | | - theme_name = theme_str |
266 | | - |
267 | | - elif theme_str == 'Cyberpunk Raspberry': |
268 | | - |
269 | | - text.configure(foreground = theme_list['Cybperunk Raspberry'][0], |
270 | | - background = theme_list['Cybperunk Raspberry'][1], |
271 | | - insertbackground = theme_list['Cybperunk Raspberry'][2]) |
272 | | - theme_name = theme_str |
273 | | - |
274 | | - elif theme_str == 'Terminal': |
275 | | - |
276 | | - text.configure(foreground = theme_list['Terminal'][0], |
277 | | - background = theme_list['Terminal'][1], |
278 | | - insertbackground = theme_list['Terminal'][2]) |
279 | | - theme_name = theme_str |
| 246 | + text.configure(foreground = theme_list[theme_str][0], |
| 247 | + background = theme_list[theme_str][1], |
| 248 | + insertbackground = theme_list[theme_str][2]) |
| 249 | + theme_name = theme_str |
280 | 250 |
|
281 | 251 | # ---> |
282 | 252 |
|
@@ -401,7 +371,7 @@ def show_about_window(): |
401 | 371 | about_label.pack(side=TOP) |
402 | 372 |
|
403 | 373 | about_info_label = Label(master=about_window, text='Minimalistic text editor.\nCreated with Python and Tkinter.\n\nThank you for using this program!', relief='solid', padx=20, pady=10) |
404 | | - about_ok_button = Button(master=about_window, text='OK', command= lambda: about_window.destroy()) |
| 374 | + about_ok_button = Button(master=about_window, text='OK', command = lambda: about_window.destroy()) |
405 | 375 |
|
406 | 376 | about_ok_button.pack(side=BOTTOM) |
407 | 377 | about_info_label.pack(side=TOP) |
|
0 commit comments