From 4701edff4cbe6256622477a12cfbb575e9e51db4 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 1 Feb 2025 10:32:57 +0200 Subject: [PATCH] feat(tray): support dark theme for icons --- bin/tray-icons/build-icons.sh | 6 ++++++ images/app-icons/tray/bookmarks-inverted-16.png | Bin 0 -> 320 bytes images/app-icons/tray/close-inverted-16.png | Bin 0 -> 242 bytes images/app-icons/tray/new-note-inverted-16.png | Bin 0 -> 236 bytes images/app-icons/tray/recents-inverted-16.png | Bin 0 -> 425 bytes images/app-icons/tray/today-inverted-16.png | Bin 0 -> 380 bytes src/services/tray.ts | 5 ++++- 7 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 images/app-icons/tray/bookmarks-inverted-16.png create mode 100644 images/app-icons/tray/close-inverted-16.png create mode 100644 images/app-icons/tray/new-note-inverted-16.png create mode 100644 images/app-icons/tray/recents-inverted-16.png create mode 100644 images/app-icons/tray/today-inverted-16.png diff --git a/bin/tray-icons/build-icons.sh b/bin/tray-icons/build-icons.sh index 7fc9954b2..2eb0c9ab8 100644 --- a/bin/tray-icons/build-icons.sh +++ b/bin/tray-icons/build-icons.sh @@ -1,5 +1,10 @@ #!/usr/bin/env bash +if ! command -v magick &> /dev/null; then + echo "This tool requires ImageMagick to be installed in order to create the icons." + exit 1 +fi + if ! command -v inkscape &> /dev/null; then echo "This tool requires Inkscape to be render sharper SVGs than ImageMagick." exit 1 @@ -11,4 +16,5 @@ output_dir="$script_dir/../../images/app-icons/tray" for file in *.svg; do name=$(basename $file .svg) inkscape -w 16 -h 16 "$file" -o "$output_dir/$name-16.png" + magick "$output_dir/$name-16.png" -channel RGB -negate "$output_dir/$name-inverted-16.png" done \ No newline at end of file diff --git a/images/app-icons/tray/bookmarks-inverted-16.png b/images/app-icons/tray/bookmarks-inverted-16.png new file mode 100644 index 0000000000000000000000000000000000000000..8992272dd06ea3402bdc20acd9311abcd0ae23be GIT binary patch literal 320 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf66p}rHd>I(3)EF2VS{N990fib~ zFff!FFfhDIU|_JC!N4G1FlSew4N!t9$=lt9;eUJonf*W>XMsm#F_5|r!i*d9#J2+l zCwsa$hG?8WJ7FVlQ-Vm#{`5CXTvl*+AK=P!=;8juyrZMDkmC>wPhyh$Yldw>k#j^} zC@XG>DgAzL@9EPAnclch4cNeZ@6KCOAM?k*j!b1~m@>O>vclU?>sak?oUChiXK3zK zTvXmRFXPi;nXvSLb#A?%{@*N1S$3e&SYEH{gUh~?UUQpx9F{Hcn`(aK)SPo|tHeLD zuCCNQsx7zs3eb6yC9V-A!TD(=<%vb94CUqJdYO6I#mR{Use1WE>9gP2NC6cwc)I$z JtaD0e0stGqc18dI literal 0 HcmV?d00001 diff --git a/images/app-icons/tray/close-inverted-16.png b/images/app-icons/tray/close-inverted-16.png new file mode 100644 index 0000000000000000000000000000000000000000..03f5c75d17d1e94824e082b17c2241a5975fa2a1 GIT binary patch literal 242 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf66p}rHd>I(3)EF2VS{N990fib~ zFff!FFfhDIU|_JC!N4G1FlSew4N!t9$=lt9;eUJonf*W>XMsm#F_5|r!i*d9#J2+l zT|HeKLp07OCoB;Eq5mnKsa5}Dd<&y*!tZ)X3;$>T%R+bs4&MDQ8W0&V^}&=jEz2+e zIaZknYuX*mXJvF3`l5EQVUa2W16Q5xO2HG2vw;RmmbgZg1m~xflqVLYGL)B>>t*I; d7bhncr0V4trO$q6BL!5%;OXk;vd$@?2>@YDOBDbB literal 0 HcmV?d00001 diff --git a/images/app-icons/tray/new-note-inverted-16.png b/images/app-icons/tray/new-note-inverted-16.png new file mode 100644 index 0000000000000000000000000000000000000000..bc31618d8c7be05a100fb0518aa50c28d5ae0b9a GIT binary patch literal 236 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf66p}rHd>I(3)EF2VS{N990fib~ zFff!FFfhDIU|_JC!N4G1FlSew4N!t9$=lt9;eUJonf*W>XMsm#F_5|r!i*d9#J2+l z?LA!_Lp07OCoC}k@&5OH@z54lUsm>AVroulLLmp3HcMyiP-Q+`-*JKe*x4mB7y@}O zp4~A^t*@n7zQyDMP=68!msir9iiJR?WQl7;NpOBzNqJ&XDnogBxn5>oc5!lIL8@MU VQTpt6Hc~)E44$rjF6*2UngAj}M|S`K literal 0 HcmV?d00001 diff --git a/images/app-icons/tray/recents-inverted-16.png b/images/app-icons/tray/recents-inverted-16.png new file mode 100644 index 0000000000000000000000000000000000000000..1db7691480daa5cedb7a1f8d6cd7f01aa2887d9f GIT binary patch literal 425 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf66p}rHd>I(3)EF2VS{N990fib~ zFff!FFfhDIU|_JC!N4G1FlSew4N!t9$=lt9;eUJonf*W>XMsm#F_5|r!i*d9#J2+l z|9HAMhG?8`ow(79IZ(j$yoxu6io}+yK?hk}bS`IVN1jo?@k8`w5X&D%Zq=~c(HT~| zb(Iz=G@T67JmS>U+w0_z*Hv4&`-oET-I>2%g(Yhz+*}Z9+*1sf^bC*wW z%`4h#YnK1UiBV_cLj7ZNvQEELsuyU`T4Etwz0H4ap$E$W#_ySjm6cZ270Zh;X7u`2 z$Jcyv3P1H$#9?|?ng{=pnAOkDmVWIF-o!A&V5@uYi`TQm6Z)l|fBW)2Vgc_fiO$-! zy9)K5J^UKlnKI(3)EF2VS{N990fib~ zFff!FFfhDIU|_JC!N4G1FlSew4N!t9$=lt9;eUJonf*W>XMsm#F_5|r!i*d9#J2+l z&wIK!hG?Acov<&g|#5 z@^Rsl&fA;h89y+`3%jY#