From e7c873108aa908720a186ed3dcb62c3d7689774f Mon Sep 17 00:00:00 2001 From: profitroll Date: Mon, 23 Jan 2023 12:22:54 +0100 Subject: [PATCH] Updated icons --- assets/favicon.png | Bin 0 -> 2262 bytes classes/app.py | 6 +++--- classes/toplevel/welcome.py | 5 +++-- modules/utils.py | 11 ++++++++++- 4 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 assets/favicon.png diff --git a/assets/favicon.png b/assets/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..ae37da10355c5797d7b7e6d68622ac3375371041 GIT binary patch literal 2262 zcmZ{ldpOhm8^^z!)8bc*L`bY0I$(~;nIqw%PHr`(7|EM z;YliwD6DL(kergkgBI<#{`pyw5;I_#8Gk^}%?r{gJv zt5DVc7(`rnhsVXO{Ru9fa&-oPI86XZN(KPFFqQNT03zW4Foy*IvwQ$h2rFnoTL=r{ z_%jX&K=9`jF)MNaK%&nPVe59Tn|}Aqt$hyiz1J$LTSGVKqx9uA=YW?7p~}01iVxyt z(wVkB7P}WjDUI+4@!&4nln8r2z;N6XrHZtX)UFrVjljzVN%Tlk2wSh-`YkM5EG>?m z$K0^r$nc%iE`LAo z8&RhZPxb&taN7EOM5)67FvPtxvl7`16BpTBOo;y2T)0i#5H0wN+y(tay#At?e(I9M*cDv9N1OLZ&Jm{4J!< zDw2Ir>U}~jd}xdWc{fVR*)8rXYLrbY;}Q&)Gs}^oW7Enn=@v$E-;(ybSS4mvcd_ciG8$rCfWPKC(()TNGwb_e;y zjne|^maMrY*7o`%3KN@W6^k{AUuAF+xIIT3A1&tRA8-PEuB$HgypidL7hrss2 z*Pf|#?qDgR#`Q)l^)T~Vyk{0?Iy{RBtmVa0Z^XUgiV1E&F#N1D0w>*tt;?`tBrB>j zp=_V0l~;<#c3JC@Th5P4s&u^H*LiB;O70K0Ci0 zBYjhf-2dS8fkWRGcc5n%BGBxWsp60JMVzl)T!<5})N{Kqaf|V@xZS;PTnk?kkP!?S zrCAJgG^OiPk0G1#RirkX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L zX>qDirikl!63viIMc*GObqnuwH(wV%Ndi%G%HF`s)A}s3Yf4Ov(G?FeK%e?@rfZ`joRiO#b Literal["dark", "light"]: * `Literal["dark", "light"]` """ - return "dark" if use_dark_mode() is True else "light" \ No newline at end of file + return "dark" if use_dark_mode() is True else "light" + +def set_icon(me: Misc) -> None: + if osname == "nt": + me.iconbitmap(path.join("assets", "favicon.ico")) + else: + me.iconphoto(True, PhotoImage(file=path.join("assets", "favicon.png"))) \ No newline at end of file