figenc

[RADIOACTIVE] rsa and symmetric key encryption scripts and executables
git clone git://git.figbert.com/figenc.git
Log | Files | Refs | README

commit f7146d8f7707c9e9d3df6bb5bc93fef3121c6295
parent 16d8a784a15ec5ac74ed1fe3fb44803879fb1dbf
Author: therealFIGBERT <figbertwelner@gmail.com>
Date:   Fri,  9 Aug 2019 13:57:28 -0700

2.0.8

Diffstat:
MScripts/figENC.py | 55+++++++++++++++++++++++++++++++++++++++++++++++++------
MScripts/tips.json | 2+-
MScripts/version.txt | 4++--
3 files changed, 52 insertions(+), 9 deletions(-)

diff --git a/Scripts/figENC.py b/Scripts/figENC.py @@ -101,7 +101,10 @@ class App(): ) self.launch_button.pack(side=tk.LEFT) self.settings_button.pack(side=tk.RIGHT) - + self.launcher.protocol( + "WM_DELETE_WINDOW", + lambda: self.full_shutdown(self.launcher, root) + ) root.mainloop() def main_app(self, root, settings): @@ -346,7 +349,7 @@ class App(): self.type_button_frame, text="RSA", bg="#1A181C", - fg="#F2DAFF", + fg="#F2DAFF" if sys.platform == "darwin" else "#B494C7", variable=self.type_control, value=0 ) @@ -354,7 +357,7 @@ class App(): self.type_button_frame, text="Mixed", bg="#1A181C", - fg="#F2DAFF", + fg="#F2DAFF" if sys.platform == "darwin" else "#B494C7", variable=self.type_control, value=1 ) @@ -445,7 +448,22 @@ class App(): *self.font_options, command=self.modify_font ) - self.font_menu.config(bg="#1A181C", fg="#643181") + if sys.platform == "darwin": + self.font_menu.config(bg="#1A181C", fg="#643181") + else: + self.font_menu.config( + bg="#1A181C", + fg="#643181", + highlightbackground="#643181", + activebackground="#F2DAFF", + activeforeground="#1A181C" + ) + self.font_menu["menu"].config( + bg="#1A181C", + fg="#643181", + activebackground="#643181", + activeforeground="#F2DAFF" + ) self.font_menu.pack(side=tk.LEFT) self.dim_frame = tk.Frame(self.frame, bg="#1A181C") self.dim_frame.pack(side=tk.TOP, fill=tk.BOTH, pady=10) @@ -479,7 +497,22 @@ class App(): *self.dim_options, command=self.modify_dim ) - self.dim_menu.config(bg="#1A181C", fg="#643181") + if sys.platform == "darwin": + self.dim_menu.config(bg="#1A181C", fg="#643181") + else: + self.dim_menu.config( + bg="#1A181C", + fg="#643181", + highlightbackground="#643181", + activebackground="#F2DAFF", + activeforeground="#1A181C" + ) + self.dim_menu["menu"].config( + bg="#1A181C", + fg="#643181", + activebackground="#643181", + activeforeground="#F2DAFF" + ) self.dim_menu.pack(side=tk.LEFT) self.update_frame = tk.Frame(self.frame, bg="#1A181C") self.update_frame.pack(side=tk.TOP, fill=tk.BOTH, pady=10) @@ -835,12 +868,22 @@ class App(): """Destroy the settings toplevel and deiconify the root window Keyword arguments: - settings_window -- the window of the app to destory + settings_window -- the window of the app to destroy root -- the window of the app to deiconify() """ settings_window.destroy() root.deiconify() + def full_shutdown(self, launcher_window, root): + """Destroy the launcher window and the root window + + Keyword arguments: + launcher_window -- the window of the app to destroy + root -- another app to destroy + """ + launcher_window.destroy() + root.destroy() + def modify_font(self, value): """Change the value of the font_size key in the self.settings variable and export settings to file. diff --git a/Scripts/tips.json b/Scripts/tips.json @@ -8,6 +8,6 @@ "keys generated by figENC are PEM-compatible, and should\nwork with other encryption programs.", "figENC uses a unique encryption algorithm to provide\nRSA encryption to files of any size.", "figENC's RSA encryption is military grade, and has never been broken\nby hackers or governments.", - "fonts in figENC are relative – there's one font size in settings,\nand other sizes are determined based on that selection", + "fonts in figENC are relative. There's one font size in settings,\nand other sizes are determined based on that selection", "right click on the password entry fields to toggle text visibility. Peekaboo!" ] \ No newline at end of file diff --git a/Scripts/version.txt b/Scripts/version.txt @@ -1 +1 @@ -2.0.7 -\ No newline at end of file +2.0.8 +\ No newline at end of file