added icon

This commit is contained in:
2025-09-12 09:05:10 +02:00
parent df7e9c7a14
commit a4e0cf4ecd
2 changed files with 2 additions and 1 deletions

View File

@@ -38,6 +38,7 @@ APP_DIR = pathlib.Path(__file__).resolve().parent
CONFIG_PATH = APP_DIR / "config.json" CONFIG_PATH = APP_DIR / "config.json"
EYE_IMAGE_PATH = APP_DIR / "glados_eye.png" EYE_IMAGE_PATH = APP_DIR / "glados_eye.png"
HEAD_IMAGE_PATH = APP_DIR / "glados_head.png" HEAD_IMAGE_PATH = APP_DIR / "glados_head.png"
ICON_IMAEG_PATH = APP_DIR / "icon.png"
PIPER_MODEL_DEFAULT = APP_DIR / "glados_piper_medium.onnx" PIPER_MODEL_DEFAULT = APP_DIR / "glados_piper_medium.onnx"
BG = "#000000" BG = "#000000"
@@ -132,7 +133,7 @@ class GladosGUI(tk.Tk):
def __init__(self): def __init__(self):
super().__init__() super().__init__()
self.title("GLaDOSify") self.title("GLaDOSify")
_set_app_icon(self, HEAD_IMAGE_PATH) _set_app_icon(self, ICON_IMAEG_PATH)
self.configure(bg=BG) self.configure(bg=BG)
# Global font/color defaults (use named font to handle space in family name) # Global font/color defaults (use named font to handle space in family name)
self._ui_font = tkfont.Font(family="Lucida Console", size=12) self._ui_font = tkfont.Font(family="Lucida Console", size=12)

BIN
icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB