xe4iEtdZddlmZ ddlmZmZdZd dZd dZ dZ e d k(re y y #e$rdZY"wxYw) zCreate system tray icons for DaemonControl. This script generates simple circular icons in three colors: - Green (active/running) - Gray (inactive/stopped) - Red (error) )Path)Image ImageDrawTFctjd||fd}tj|}d}|j ||||z ||z g|ddt t j|z }|j|td|y) zCreate icon using PIL/Pillow. Args: color: RGBA tuple (r, g, b, a) filename: Output filename size: Icon size in pixels RGBA)rrrr)r r )filloutlinewidth ✓ Created: N) rnewrDrawellipser__file__parentsaveprint)colorfilenamesizeimgdrawpadding output_paths gui/resources/create_icons.pycreate_icon_with_pilrs ))FT4L, 7C >># DGLL '4'>4'>: $ x.''(2KHH[ OH: &'c, dddd}|j|dddl ddl |x  fd}ttj |z }t |d 5}|j|dddtd |d y#1swYxYw) a Create simple PNG icon without PIL. Creates a minimal 48x48 PNG with a colored circle. Uses raw PNG format - basic but functional. Args: color_name: 'green', 'gray', or 'red' filename: Output filename size: Icon size (fixed at 48 for simplicity) )LP)r%r%)C6)greengrayred)r,r,rNc d}jdddddd}jd|z}jdddz|zjd|z}d }tD]V}|d z }tD]A}|dzz }|dzz }||z||zzd z} dzd z } | | kr|tz }=|d z }CXj |d} jd| z} jdt | dz| zjd| z} jd}jdddzjd|z}||z| z|zS)zCreate raw PNG data.sPNG  z>IIBBBBBr rsIHDRz>I r g?rs sIDATsIEND)packcrc32rangebytescompresslen)png_sigihdrihdr_crc ihdr_chunkraw_datayxdxdydistradius compressedidat_crc idat_chunkiend_crc iend_chunkrheightstructrzlibs rcreate_png_dataz+create_icon_simple..create_png_dataMs'{{:ufaAq!D::gn-[[r*W4t;fkk$PX>YY v 0A  H5\ 0!^1_R"r')c1!a6>e ,H/H 0 0 ]]8Q/ ::g 23[[s:7'AJNQWQ\Q\]ackQll ::g&[[q)G3fkk$6QQ #j0:==r wbrz (basic fallback)) getrIrJrrropenwriter) color_namerrcolorsrKrfrrHrIrrJs @@@@@rcreate_icon_simplerS.s"F JJz? 3EEF%>%>Nx.''(2K k4 #A !"# OH:%6 78##s B  Bctdtdtdttr:tdttddtddtdd nOtd td td ttd dtddtdd ttdtdtdttdt t j ttdtdtdtdty)zCreate all three icons.z<============================================================z,Creating System Tray Icons for DaemonControlz*Using PIL/Pillow for high-quality icons...)r"r#r$r zicon_active.png)r%r%r%r zicon_inactive.png)r&r'r(r zicon_error.pngu7⚠️ PIL/Pillow not available - using basic fallbackz, Install Pillow for better quality icons:z pip install Pillowr)r*r+u#✅ All icons created successfully!zIcons location: zIcon meanings:u) 🟢 icon_active.png - Daemon runningu( ⚪ icon_inactive.png - Daemon stoppedu' 🔴 icon_error.png - Daemon errorN)r PIL_AVAILABLErrSrrrr rmainrW{s (O 89 (O G :;  /1BC 13FG /1AB GH <= &'  7$566#675"23 G (O /0 (O G T(^223 45 G  56 45 34 Gr __main__N)0) __doc__pathlibrPILrrrU ImportErrorrrSrW__name__rVr rr_sY$M (6J9Z* Z zFsMs -77