From 0316c96ecbf3ef54db3a8d154fa6b8d1113f9c35 Mon Sep 17 00:00:00 2001 From: sumeshir26 Date: Tue, 16 Nov 2021 16:17:22 +0530 Subject: [PATCH 1/7] feat: Basic dark mode --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index dc741b54..3671406c 100644 --- a/main.py +++ b/main.py @@ -100,7 +100,7 @@ def runTimer(): # APP THEME app.tk.call("source", "sun-valley.tcl") -app.tk.call("set_theme", "light") +app.tk.call("set_theme", "dark") # WINDOW FRAME window = Frame(app) @@ -124,4 +124,4 @@ def runTimer(): about_button.pack() # TKINTER MAINLOOP -window.mainloop() \ No newline at end of file +window.mainloop() From 042723c4889f3d5b8cb9920421e78b523fbabc52 Mon Sep 17 00:00:00 2001 From: sumeshir26 Date: Wed, 17 Nov 2021 12:11:31 +0530 Subject: [PATCH 2/7] feat: Detect system theme --- main.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/main.py b/main.py index 3671406c..c75981fb 100644 --- a/main.py +++ b/main.py @@ -5,6 +5,7 @@ from playsound import playsound import threading import configurator +import darkdetect # TKINTER WINDOW app = Tk() @@ -90,17 +91,16 @@ def runTimer(): #play_button.config(image = play_button_img) play_button.config(text = "Pause") playBuzzer() - -# IMAGES -# logo_img = PhotoImage(file = 'assets/images/logo.jpeg') -# app.iconphoto(False, logo_img) - -# play_button_img = PhotoImage(file = 'assets/images/play_arrow.png') -# pause_button_img = PhotoImage(file = 'assets/images/pause_bars.png') # APP THEME + app.tk.call("source", "sun-valley.tcl") -app.tk.call("set_theme", "dark") +app.tk.call("set_theme", "light") + +if darkdetect.theme() == "Dark": + app.tk.call("set_theme", "dark") +else: + app.tk.call("set_theme", "light") # WINDOW FRAME window = Frame(app) From 63705e382a1db802b7822e1c0ac798d8b30ac91c Mon Sep 17 00:00:00 2001 From: sumeshir26 Date: Fri, 19 Nov 2021 12:58:08 +0530 Subject: [PATCH 3/7] =?UTF-8?q?Merge=20branch=20=E2=80=98master=E2=80=99?= =?UTF-8?q?=20into=20=E2=80=98dark-mode=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 8eb93499..ad353352 100644 --- a/main.py +++ b/main.py @@ -15,7 +15,7 @@ print(platform.system()) if platform.system() == "Linux": - logo_img = PhotoImage(file = 'assets/images/logo.jpeg') + logo_img = PhotoImage(file = 'assets/images/logo.png') app.iconphoto(False, logo_img) elif platform.system() == "Darwin": app.iconbitmap(r'assets/logo.icns') From 1426325b3d04f5617dceae9d2616b170c7851b65 Mon Sep 17 00:00:00 2001 From: sumeshir26 Date: Mon, 22 Nov 2021 10:50:01 +0530 Subject: [PATCH 4/7] feat: Switch theme button --- assets/images/dark/dark_theme.png | Bin 0 -> 654 bytes assets/images/dark/info.png | Bin 0 -> 795 bytes assets/images/light/dark_theme.png | Bin 0 -> 616 bytes assets/images/light/info.png | Bin 0 -> 776 bytes assets/images/light/pause.png | Bin 0 -> 228 bytes assets/images/light/play.png | Bin 0 -> 416 bytes assets/images/pause_bars.jpeg | Bin 719 -> 0 bytes assets/images/pause_bars.jpg | Bin 630 -> 0 bytes assets/images/play_arrow.jpeg | Bin 533 -> 0 bytes assets/images/play_arrow.jpg | Bin 697 -> 0 bytes main.py | 47 +++++++++++++++++++++++------ 11 files changed, 37 insertions(+), 10 deletions(-) create mode 100644 assets/images/dark/dark_theme.png create mode 100644 assets/images/dark/info.png create mode 100644 assets/images/light/dark_theme.png create mode 100644 assets/images/light/info.png create mode 100644 assets/images/light/pause.png create mode 100644 assets/images/light/play.png delete mode 100644 assets/images/pause_bars.jpeg delete mode 100644 assets/images/pause_bars.jpg delete mode 100644 assets/images/play_arrow.jpeg delete mode 100644 assets/images/play_arrow.jpg diff --git a/assets/images/dark/dark_theme.png b/assets/images/dark/dark_theme.png new file mode 100644 index 0000000000000000000000000000000000000000..5241ec502cba30bd94e23a7ce231dc96965943e4 GIT binary patch literal 654 zcmV;90&)F`P)Px%NJ&INR7gw3m0N2QQ4q)fv$>I_QOL6o-B}T7`lR^;QhYU4tP1+14}v17wZ(6s zZ570?;1w^VFZv~-pb|~Vo^$fx^MZ}AppcOxn~-~KV|5?*%*=1*KWF9;_V}Ycj*qc` zYPFhnU3U?{2@yF0;6R+vS0Z{ZBIPKG%7sGV$EZX{0+dpxh-eJ}kE@c1RIAlm@qPdG zFuMVOh$M_LcLCfS=HR;SOtaaXO(v5IB6119d~CPjdEP1!wYvQV09xyfQNgVvGk1LA zWG(}^4{ldkP3fR(G!XnYWn0)QoEeqm#E07|K+M09qy0PCle zx=uv4ACH;&d=Efty#?UVG=Lxo<{iiR1YnDq5BCF_0A{8E)M~X{I-TAI@ST}+e;rV- z*Y_n7iEjY5nR)-emB<+LL`2R_Bau?-1`*u@@Q9f&^jEM1;Q4L=_L^#~KN8U#fYZ$U zdtiG8&2`<+BI56KlC8Zl=9-8+u!9zc;ass;{MiGD@9{|@dbLx4Qfh&S-T+7uQOWbX z&4E?X{-L#A2e3Q}(!cB)jm8xbu?sRKB5S_yua4cOBH|ch?f|$o3=&0AE|ba3647x0 z7h}y~gERB(iR-!@)EH9|5nIi{35^ekXt`UKu@!V5Rw|WLKA$hyClkQY?k5w#I{@V{ o3^&^i9hS)dee@^I#Gjo10%)-H8G9q_ZvX%Q07*qoM6N<$f=RI`G5`Po literal 0 HcmV?d00001 diff --git a/assets/images/dark/info.png b/assets/images/dark/info.png new file mode 100644 index 0000000000000000000000000000000000000000..f6499b67950b1ee1a91217785cc874c2a421e07d GIT binary patch literal 795 zcmV+$1LXXPP)Px%)k#D_R7gv;R!d7&Q562xu|y5Ca$0frIzrKfC?`Ee6}?8K78%qZh$a=KL_tLv zWj2fEHOU^DO@e~xNl{2Ok*?`pN4jC!wD3s6U9sV4*L&}|YTzF3wf6ef^IMxR&xhvO zK1u@g_4SokRaG@+v)KkBS`T1(?9g{2`lzZsQ55y0QmH>ljwS+#$bJA<0Wg4X0A2zZ zRn-Na=dD!LtpJu1kdBR0dNstW9F7bfH*Dp0i0px z%d>3&RrN%qi-;OL&uj91|Ka4@sR&#_D=RD000xXPyNh`)B2NJhkjP zej*wh8yj0QS@>K)fD#+c8=ycdxtF~G)R4p?iC5YbHl&CGny*_Z+lkxl@s znR(r8QV&?YDIeg9pOj)=T>Q8M$Ye1Km7 zE--UP(&I1;pQ)-c^Y#)tU8=g1nXBgvAR;eRH5&xMwj=;+Z8s6^C{KA|C+M z6r{*n>pCdK%xg>Jw`2sFOlH}{#Kb6oyUcueT8hFjY*y7y&-3bi-~W`*rqA6yGdmtC zI3jWszzqNgnAr{Nzc!5r?F#^FjM-JJ&r20~U|?WzSy@>>fZtIRr3wbkp;>G9xgJiU ziowCb%}%ebuI_EF`;IEYFm&{=hlm=DF+BxTF?k^(u1!x6(RttZFU~}EBO@b=qA0qp zs!gie9t1&aNj8n?`U-%P0N%vWINF|eTuLh{DqO^E0E{!v%%^9h>q#rt+9uEQ+GDQI z#Jk~#TR3i*iD-+PSO9}WbSgJ3B_qfc#)Wt5a<8h^16UEuGdU~s(SNPXq*<8j{k;Dw Z{sL{`TPV_1dl~=$002ovPDHLkV1lOmVnP4_ literal 0 HcmV?d00001 diff --git a/assets/images/light/dark_theme.png b/assets/images/light/dark_theme.png new file mode 100644 index 0000000000000000000000000000000000000000..0d32d12617e1f01ea2fb4adde2cf0d8e4f914781 GIT binary patch literal 616 zcmV-u0+;=XP)pF8FWQhbW?9;ba!ELWdL_~cP?peYja~^aAhuUa%Y?FJQ@H10rg2l zK~zYI-IXzm6HySyfAf+HVL6LzsfWB>t`N7o_z^^~y2urNfNKQ7#=C&uK$0LfVr6S7 zNn<1W1tfOc$YnQzXcy9C36W$h+=JzIZ)1#&{;S!YH}jh}Z+H*>bxD~s2!h&dHoFHL zipT-5m%6^H>L(HDJC4&2!*H=N!1w(lRqX(NSrMu_GRCx{D0)-muN3|BJg*Bp2O1Zh zNs{c=>-E>G)#|f|?1{(?;C`dg*qu(N?*T2{f#-QW;PGV@$8nsEsd%3E0C)z}fNmVe z?d*D!{qTMNs4RJbmT?@vFvi>k7Qm^swp9oSf}oc6d}ED9qYvkWiAXmHf?5ucPD|;5 zmMM`<<^aZ+R$=7tYiW#mmD+iLsvc|!Kt$f9=B*q6xVkN%TCILb&1*$~ zt+iY(&qsJw1o*ZsKvl1&=Jy;xRfm58a3?iC<^Uqn-!gv%I8NpF8FWQhbW?9;ba!ELWdL_~cP?peYja~^aAhuUa%Y?FJQ@H10+mTb zK~zYI)m2Sv6HydB_oe9~Lrf=K6iam8ofZlmT(l9Sg5cM}ooy+KYkz}E{pdzFt@<+r z#gC?2LA1IQrJH~u>7?4KNEaQE3>fHK7oC(e$xJF;^{n2!bLO0T=e>CkIP9P}(s7*L zTCFyvl$sQgF#x%c+7OY?L{vznQiWo%SpV+;W}X2s55NZS4Zt#hUqsXs1i^74ItRcM zkyWMCP1ki_?YFB0Ge2f#VdiCKKGR8*&*zg`>#JJpN~nDZKy`Hw%>!n>7uR6}gM))9 zW_})qEOaxU35B=2R%tJ^NS1OhM5Yc@i8uERAvQ5CuPnmfo z!gyb>Z9Buvf3?<68gtF7K2AjM;tVXyny@TuB8qoi_cwqQB0AZa>uKVTipWM>01-VP zA^~tQN+Tj0L^RrX?!IsL1|*0m_8q0vo~_+1{z*hR91tRs1Ms6QfQUYc$oYeq=W@9$ zfH43c+X8|hC;&KNS=Ly5ffD(5CzHu**jd-5wgAI076G_Qsd+>k5h4-**zUv)4-X#! za2G%&l}hafBpQRw&CTs>Hv1jGtZABc&+|UCn)LVgSBU8C*4EZ~3#Brd%rgLa5xHJ2 zmy1zdf|(yNbD*`Ji|V8q0|Ntw*7_wgi*4KUt$d<&!t=a0rfC{PbjLK!3#MtVdY<>S zRp&TPZ#td6l1wIF5YcHOT5w%=7A;3fWQDeEPX|G;Ktw|T)&ac7&Q|ULphe^?fIa{f z5xKFpwpQrm)Ah>qeScC!E)&r>fMX%G-gIRy#a)?)AO8R`^yV3X6CH2>0000anMprB-l zYeY$Kep*R+Vo@qXd3m{BW?pu2a$-TMUVc&f>~}U&Kt+X~E{-7{op1XOayA(7FzEja zy|ZBMIo4M~=N{xm9xP+5ND1 literal 0 HcmV?d00001 diff --git a/assets/images/light/play.png b/assets/images/light/play.png new file mode 100644 index 0000000000000000000000000000000000000000..e053bcf5c794363e11ae440861cf9d5a99f6ea60 GIT binary patch literal 416 zcmV;R0bl-!P)pF8FWQhbW?9;ba!ELWdL_~cP?peYja~^aAhuUa%Y?FJQ@H10WC>H zK~zYI?Ulbu#6S?nzu8zNt^H;K2a5O>_Xzq5wpL<$DmFG^CnEO%C%%FD1PX%2#{9#8 z)m4HiOvqSBM8v(syW8%*a+dvmJ2N}Gz(Osezk*upRi)GrzzTp-RaJX=p1;lw;QRg~ z5v~0Q6#$MM$2p3k=xt^IGuMW-v4|Xao_89C;YSyM`VSbuG7+5=Me)qcTNCzAHezP! zaykIFN~zsAj&E!M8eNIVPL^f&zZY6l?5I8w-7)h>Yt1$Qjn}49>LCb%z70SlPecYb z0RZsbLmPm1A{y8L)BrB(x?WF`^LnmLCE5Tm1kfX*%d#x@r~PmiYSkxlIByHRS{sM}0000< KMNUMnLSTZQzpK{( literal 0 HcmV?d00001 diff --git a/assets/images/pause_bars.jpeg b/assets/images/pause_bars.jpeg deleted file mode 100644 index 5cdaeb7f4f5e4520fcb9214638dfc83b54f18bf6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 719 zcmex=kR1VRQz zDF#+Bn}NZLQ5wz;V$^`DVParl5=N*8ss(`rAO`A&(Eo2UID>4Y2>d_5z|Fy+!l1&) zD9G^t2!kZhLveNlrj`xU}R!pVd7u|c>@Gkm{}Rv*u@x`I7B(Qghj+9 zBrPj;2&t%gb)J+`RQ`X9fdgn5gFVCkj!%3arf|L5SY5D0eCxr?n|GI1Lq?2dC|G`RI|lImI)S%Wgp2!XDY|8$E;w&yULRUFmH%*#xjALKP2ahSm>1PyW8tY!JKmYwrkoNbv z(Wg!|{`$|bbl%<4P(H8u+FCzf|6BRH^wOH}H_8+A@0$Mn_qWTn?(^!($N>BJFPm?# zTea|H@YB?I+xn~adAmZp{d_9z|Fy+!l1&)D9G^t2!kZhLvh8{}uxWPzDJ0_bZ&f**rnFZuQp_V*5jXb=h7wkKqSuH5OoCWM*V#=3--p z>SkePWn*V#;t&;M;N%hz5*87ckhHAWA*G_~)p=4uQ5k9|qdmjzJ*rGsqr|s!Ij-Hx zHu>V+rH8(TtvXXwYr1^%n)?B1{~5eb?wXf8<4=FsYx}2Lt}S%PTpjR!t5hL>gOS*S z$sX&4BeiuxS4-F!N{`~j1EBDyir>PEq>o1+p z+p+3))ACcN_Er67SXFnoVD;$_o5Jsl*9+-=HEDMF(f|G4o7--_reRaxo8Laxes)*R z;(%0n$1{~P%aT9a+*|uMcYkwf&+qDGf|}=~SDp=Nza+lHPx+DPo|QURXTJQn;@OJ3 zhHC^&ZyXow`g`bdfy%BaoG*ozZtE>bJ9KG(y4NPNn>*@(`b**jwalbfnTE7qeZF&> z^3$(-B6T!pzU*Bgwo=t_iGYd33BhlFKV2!1*p*fIYSP?oyfx{DLOavFx~|>+v;Y51 E06ReXQUCw| diff --git a/assets/images/play_arrow.jpeg b/assets/images/play_arrow.jpeg deleted file mode 100644 index d5b26e933ff29694abeb1b54dd45bc42e830063a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 533 zcmex=jG%QH$b zu!7kP3|@@VaCQ)*20{&!FoF$K3j#os5%~W<26^ZF+=8Oi;^Nd4g``S_tb){Z-J;ZF zsNnzG49*OkY-}8CtehO|99*27T)bj@ygWR-QoWs&aDL z);jverWO_!idwdgHfD}S<`$;^4=`|ZFsLx7Ffs}<{6E4V33LE6$e#$n#Kz9T3Y5|m zU|?hh0v0BaKS6+*fsu)Ym5p6cNHH)`N!id*xX@_h!~eG!I6x-YGu#QOG`1HnyZcYl zQ&7xv?a`gxYKPrZR?XEdbv(x~$@tNo`tlT5b#XE^nV=SBdsr&swzU0$<;4AFZgw?MssS Q&fI@L^;$ma3|jiIItm zOAI4iKMQ#V{6EAX$ibk(pu)_k#K0uT$SlbC{|JLL&<9LR%nV3?or95yg_Z69Ed~yd z9~l_--+H6Dy)xTq`8}_br!%_zo;LzDia_L$^f7>SFbRN!>hY*xhO5vQU|?inWMXDz zXN8)>#K;V^nq82ALr6eGQ7K7S!NAbSG0@m4sAv<^L5%hck5>dt5ShF(FjTl+)aB>z zJ=g4~96eK_*rRvz*6Wws#0nBmu!k;jPua=4(fLbZ>t|)FzB>lKl}l{${+KaresPOu zeq=rWJL`5HyED^fO_aS*+Rn(kU0OxKP~|R1sEw%j_F0k_R((~Twp;TPlZi&9_9Yd& z=ToFIR|fQ)*>Pp9!2Zx~kt^3oQRsrYsjcZPV1bt^VJbs`WGs zZ`nkx)3xP|$$ItT@#etAO$_Q!!#{a{5B(Sq4sAhjOdy4}0VK2;fx#gU3Tzw-m>~*o F0s!iL!BqeN diff --git a/main.py b/main.py index c75981fb..deb6cd0f 100644 --- a/main.py +++ b/main.py @@ -1,7 +1,8 @@ # TimerX v1.3.0 by sumeshir26 # IMPORTS from time import sleep -from tkinter import ttk, Tk, PhotoImage, Frame +from tkinter import Image, ttk, Tk, PhotoImage, Frame +from tkinter.constants import SE, SW from playsound import playsound import threading import configurator @@ -10,7 +11,8 @@ # TKINTER WINDOW app = Tk() app.title('TimerX') -app.geometry('300x200') +app.geometry('300x210') +app.resizable(False, False) # VARIABLES app_on = True @@ -33,10 +35,8 @@ def startstopButtonPressed(): if timer_on: timer_on = False timer_paused = True - # play_button.configure(image = play_button_img) play_button.configure(text = "Play") elif timer_paused == False and timer_on == False: - #play_button.configure(image = pause_button_img) play_button.configure(text = "Pause") timer_thread = threading.Thread(target=runTimer, daemon=True) timer_thread.start() @@ -53,7 +53,6 @@ def saveTimer(timer_sec_input, timer_min_input, timer_hr_input, manager_window, timer_hours = int(timer_hr_input.get()) time_selected_display.configure(text = f'Time Selected : {timer_seconds} Seconds') time_display.configure(text = f'{timer_hours} : {timer_seconds} : {timer_seconds}') - print('DESTRUCTION MODE') manager_app.destroy() except ValueError: time_selected_display.configure(text = "Please enter a number!") @@ -88,20 +87,41 @@ def runTimer(): timer_on = False time_display.configure(text = f'{hours_left} : {minutes_left} : {seconds_left}') - #play_button.config(image = play_button_img) play_button.config(text = "Pause") playBuzzer() # APP THEME app.tk.call("source", "sun-valley.tcl") -app.tk.call("set_theme", "light") +theme = 'light' if darkdetect.theme() == "Dark": app.tk.call("set_theme", "dark") + theme = 'dark' else: app.tk.call("set_theme", "light") +def switchTheme(): + global theme, app, info_button, switch_theme_button + if theme == 'light': + theme = 'dark' + app.tk.call("set_theme", "dark") + switch_theme_button.configure(image=switch_theme_image_dark) + info_button.configure(image=info_image_dark) + else: + theme = 'light' + app.tk.call("set_theme", "light") + info_button.configure(image=info_image_light) + switch_theme_button.configure(image=switch_theme_image_light) + +# IMAGES + +switch_theme_image_light = PhotoImage(file=f"./assets/images/light/dark_theme.png") +switch_theme_image_dark = PhotoImage(file=f"./assets/images/dark/dark_theme.png") + +info_image_light = PhotoImage(file=f"./assets/images/light/info.png") +info_image_dark = PhotoImage(file=f"./assets/images/dark/info.png") + # WINDOW FRAME window = Frame(app) window.pack(fill="both", expand=True) @@ -113,15 +133,22 @@ def runTimer(): time_display = ttk.Label(master = window, text = f'{timer_hours} : {timer_minutes} : {timer_seconds}', font = ("any", 30)) time_display.pack(pady = 5) -# play_button = ttk.Button(master = window, image = play_button_img, width = 20, command = startstopButtonPressed, style="Accent.TButton") play_button = ttk.Button(master = window, text = "Play", width = 25, command = startstopButtonPressed, style="Accent.TButton") play_button.pack() manager_button = ttk.Button(master =window, text = 'Edit Timer', command = lambda: configurator.createManagerWindow(saveTimer, timer_minutes, timer_seconds, timer_hours), width = 25) manager_button.pack(pady = 5) -about_button = ttk.Button(master =window, text = 'About', command = configurator.createAboutWindow, width = 25) -about_button.pack() +switch_theme_button = ttk.Button(master=window, image=switch_theme_image_light, command=switchTheme) +switch_theme_button.pack(anchor=SW, padx=5, pady=(5, 5)) + +info_button = ttk.Button(master=window, image=switch_theme_image_light, command = configurator.createAboutWindow) +#info_button.pack(anchor=SE, padx=50) + +# THEMED IMAGES +if darkdetect.theme() == "Dark": + switch_theme_button.configure(image=switch_theme_image_dark) + info_button.configure(image=info_image_dark) # TKINTER MAINLOOP window.mainloop() From fa0dfaa676bb9f4a85e231376b8c5db5ba82697d Mon Sep 17 00:00:00 2001 From: sumeshir26 Date: Mon, 22 Nov 2021 11:55:08 +0530 Subject: [PATCH 5/7] fix: Fix Windows 7 run --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index dc870c31..cb7c5cda 100644 --- a/main.py +++ b/main.py @@ -21,7 +21,7 @@ app.iconphoto(False, logo_img) elif platform.system() == "Darwin": app.iconbitmap(r'assets/logo.icns') -elif platform.system() == "Windows": +elif platform.system() == "win": app.iconphoto(r'assets/logo.ico') # VARIABLES From 31a62ead09eaf24a9312d39ff1b3d498ce4e8c85 Mon Sep 17 00:00:00 2001 From: sumeshir26 Date: Mon, 22 Nov 2021 11:59:44 +0530 Subject: [PATCH 6/7] fix: platforms --- main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index cb7c5cda..293769d7 100644 --- a/main.py +++ b/main.py @@ -16,13 +16,13 @@ app.resizable(False, False) print(platform.system()) -if platform.system() == "Linux": - logo_img = PhotoImage(file = 'assets/images/logo.png') - app.iconphoto(False, logo_img) -elif platform.system() == "Darwin": +elif platform.system() == "darwin": app.iconbitmap(r'assets/logo.icns') elif platform.system() == "win": app.iconphoto(r'assets/logo.ico') +else: + logo_img = PhotoImage(file = 'assets/images/logo.png') + app.iconphoto(False, logo_img) # VARIABLES app_on = True From 622be4a3f7e22487e5a128a0d8a082b7a077567e Mon Sep 17 00:00:00 2001 From: sumeshir26 Date: Mon, 22 Nov 2021 12:03:10 +0530 Subject: [PATCH 7/7] fix: if --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 293769d7..1280abba 100644 --- a/main.py +++ b/main.py @@ -16,7 +16,7 @@ app.resizable(False, False) print(platform.system()) -elif platform.system() == "darwin": +if platform.system() == "darwin": app.iconbitmap(r'assets/logo.icns') elif platform.system() == "win": app.iconphoto(r'assets/logo.ico')