From 4d0d9b68a82c5483b9f8b9b5c4e9355ec686f77c Mon Sep 17 00:00:00 2001 From: dinogomez Date: Sat, 8 Jun 2024 18:27:51 +0800 Subject: [PATCH] feat(CHANGELOG.md): add CHANGELOG.md file to document version history feat(genzai.py): add version, author, and app details to CONFIG dictionary for better configuration management refactor(genzai.py): rename TITLE and DIMENSION keys in CONFIG to APP_TITLE and APP_DIMENSION for better semantics fix(genzai.py): set app to non-resizable to prevent UI distortion --- CHANGELOG.md | 15 +++++++++++++++ genzai/genzai.py | 16 +++++++++++----- 2 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..0addeff --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,15 @@ +# Changelog + +## [1.0.0] - 2024-06-08 + +### Added + +- Initial release of Genzai 🎉, a lightweight Discord custom Rich Presence manager. + +- Core functionalities: + - Connect to Discord RPC using a client ID. + - Update presence with customizable details. + +### Release + +- Linux Build diff --git a/genzai/genzai.py b/genzai/genzai.py index 0c743bb..f61cccb 100755 --- a/genzai/genzai.py +++ b/genzai/genzai.py @@ -1,3 +1,4 @@ +# @1.0.0 # @name: Genzai! # @author: Dino Paulo R. Gomez 2024 @@ -20,9 +21,14 @@ # App Constants CONFIG = { - "TITLE": "Genzai: Discord Rich Presence @dinogomez", - "DIMENSION": "520x480", - + "VERSION": "1.0.0", + "AUTHOR": "Dino Paulo R. Gomez", + "APP_TITLE": f"Genzai: Discord Rich Presence", + "APP_ICON": "assets/icon.png", + "APP_LOGO": "assets/logo.png", + "APP_GEOMETRY": "520x480", + "APP_RESIZABLE": False, + "APP_DIMENSION": "520x480", } # Widget Coloring @@ -96,8 +102,8 @@ def __init__(self): # App Configs ctk.set_default_color_theme("green") - self.title(CONFIG["TITLE"]) - self.geometry(CONFIG["DIMENSION"]) + self.title(CONFIG["APP_TITLE"]) + self.geometry(CONFIG["APP_DIMENSION"]) self.resizable(False, False) # App Main Frame [Frame]