auth dialog: give the window a Doberman taskbar/title-bar icon
Your AI's guard dog to stop it from going rogue.
Brought to you by:
doberman
Originally created by: fu351
The approval dialog draws the Doberman mark inside the canvas (_load_logo, src/doberman/auth/gui_prompter.py:153, loads auth/_assets/doberman-mark.png as a stdlib tkinter.PhotoImage), but the window itself still carries Tk's default feather in the title bar, the Windows taskbar, and Alt-Tab. _configure_window (:117) sets the title, topmost and the dark title bar, and never calls root.iconphoto. There are no iconphoto/iconbitmap calls in the module.
What to do
_configure_window (or right after _open_root), load the same PNG as a PhotoImage and call root.iconphoto(True, image). Keep a reference on root (the file already does root._logo_ref = logo at line 254 for the same reason: Tk drops unreferenced images).tests/unit/test_gui_prompter.py asserting iconphoto was called once (the file already fakes the root and canvas for the stacking and theme tests).Cosmetic; no change to what the dialog does or decides.
Originally posted by: thesageak
I'll work on this one.