From 368ca86474384228a9a630e42741865229ad7976 Mon Sep 17 00:00:00 2001 From: Jammer Date: Mon, 3 Jun 2024 16:47:17 +0100 Subject: [PATCH] Added more icons Added more icons --- README.md | 8 ++-- .../ViewModels/MainWindowViewModel.cs | 4 +- src/JamSoft.AvaloniaUI.Dialogs/Assets/add.png | Bin 0 -> 1598 bytes .../Assets/back-up.png | Bin 0 -> 1836 bytes src/JamSoft.AvaloniaUI.Dialogs/Assets/ban.png | Bin 0 -> 1454 bytes .../Assets/battery-half.png | Bin 0 -> 810 bytes .../Assets/check-circle.png | Bin 0 -> 1663 bytes .../Assets/customize.png | Bin 0 -> 1144 bytes .../Assets/database.png | Bin 0 -> 798 bytes .../Assets/folder-open.png | Bin 0 -> 969 bytes .../Assets/wifi.png | Bin 0 -> 1091 bytes .../JamSoft.AvaloniaUI.Dialogs.csproj | 8 ++-- .../MsgBox/MsgBoxImage.cs | 42 +++++++++++++++++- .../ViewModels/MsgBoxViewModel.cs | 24 ++++++++++ 14 files changed, 75 insertions(+), 11 deletions(-) create mode 100644 src/JamSoft.AvaloniaUI.Dialogs/Assets/add.png create mode 100644 src/JamSoft.AvaloniaUI.Dialogs/Assets/back-up.png create mode 100644 src/JamSoft.AvaloniaUI.Dialogs/Assets/ban.png create mode 100644 src/JamSoft.AvaloniaUI.Dialogs/Assets/battery-half.png create mode 100644 src/JamSoft.AvaloniaUI.Dialogs/Assets/check-circle.png create mode 100644 src/JamSoft.AvaloniaUI.Dialogs/Assets/customize.png create mode 100644 src/JamSoft.AvaloniaUI.Dialogs/Assets/database.png create mode 100644 src/JamSoft.AvaloniaUI.Dialogs/Assets/folder-open.png create mode 100644 src/JamSoft.AvaloniaUI.Dialogs/Assets/wifi.png diff --git a/README.md b/README.md index ad035d3..2773389 100644 --- a/README.md +++ b/README.md @@ -16,16 +16,16 @@ https://jamsoft.github.io/JamSoft.AvaloniaUI.Dialogs/ ## Installation ```shell -dotnet add package JamSoft.AvaloniaUI.Dialogs --version 1.3.0 +dotnet add package JamSoft.AvaloniaUI.Dialogs --version 1.3.1 ``` ```shell -Install-Package JamSoft.AvaloniaUI.Dialogs -Version 1.3.0 +Install-Package JamSoft.AvaloniaUI.Dialogs -Version 1.3.1 ``` ```xml - + ``` ```shell -paket add JamSoft.AvaloniaUI.Dialogs --version 1.3.0 +paket add JamSoft.AvaloniaUI.Dialogs --version 1.3.1 ``` ### Tested On - Windows 10 & 11 diff --git a/src/JamSoft.AvaloniaUI.Dialogs.Sample/ViewModels/MainWindowViewModel.cs b/src/JamSoft.AvaloniaUI.Dialogs.Sample/ViewModels/MainWindowViewModel.cs index ab383c6..23a1475 100644 --- a/src/JamSoft.AvaloniaUI.Dialogs.Sample/ViewModels/MainWindowViewModel.cs +++ b/src/JamSoft.AvaloniaUI.Dialogs.Sample/ViewModels/MainWindowViewModel.cs @@ -348,11 +348,11 @@ private async void ShowMessageBoxCommandExecuted() var resultYesNoNoIcon = await _messageBoxService.Show("Yes No Without Icon", "Do you want to carry on?", MsgBoxButton.YesNo); Message = $"{resultYesNoNoIcon} clicked"; - var viewModel = new MsgBoxViewModel("Yes No With Icon", "Do you want to carry on?", MsgBoxButton.YesNo, MsgBoxImage.Warning); + var viewModel = new MsgBoxViewModel("Yes No With Icon", "Do you want to carry on?", MsgBoxButton.YesNo, MsgBoxImage.Forbidden); var resultVm = await _messageBoxService.Show(viewModel); Message = $"{resultVm} clicked"; - var resultYesNoCancelCustomButtonText = await _messageBoxService.Show("German Yes No Cancel", "Möchten Sie weitermachen?", MsgBoxButton.YesNoCancel, MsgBoxImage.Question, "Nein", "Ja", "Abbrechen"); + var resultYesNoCancelCustomButtonText = await _messageBoxService.Show("German Yes No Cancel", "Möchten Sie weitermachen?", MsgBoxButton.YesNoCancel, MsgBoxImage.Wifi, "Nein", "Ja", "Abbrechen"); Message = $"{resultYesNoCancelCustomButtonText} clicked"; } } \ No newline at end of file diff --git a/src/JamSoft.AvaloniaUI.Dialogs/Assets/add.png b/src/JamSoft.AvaloniaUI.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CFf0I=bpZyS;G?oB#j-07*qoM6N<$f^Oj;Hvj+t literal 0 HcmV?d00001 diff --git a/src/JamSoft.AvaloniaUI.Dialogs/Assets/back-up.png b/src/JamSoft.AvaloniaUI.Dialogs/Assets/back-up.png new file mode 100644 index 0000000000000000000000000000000000000000..9ca9aad6e552f0aa506648c41f58999de57cafd3 GIT binary patch literal 1836 zcmV+{2h;e8P)s%6hHXEM|{NS z7ZHpY6%>K^h(?GQgO8*UYfwZWEnuNhYk4RIp)Iw8wT03Frql7my4ShAoOAAZPZR&i z%G}J|XFc}Wd+oK>UbmwhMzIR7#A!GkCu0HTVg0X%~V{0lqq2)1A|?#2F`GLObP z@dmseFUDdV#Lh0=hjsWv0lvAh3?ITx*n{aB=y|+#h}=`~Jv>!_?=!d(CnfM(gsyotruN^RcTD;U3;N`fjLBprTa$cTd{Hw65Vfp`~(E;Hf#<#@sYZ8}YTf+ZO z729oT#pomSA8?^& zoLmxpDn3=h~a}c8rSEYfaCD*mW+R{D{l}lk?!q3S-|ifj+5Vs`a(;_Pvci9 z3SXNt{;CqjFD_vGG~rCznt)4El-`ms_CetnisH8gb@FtJ6Yz=@rPn5my|9GwL(%9 zPTF&Vzpr3aV;B)x(e4&xJ>7zg!Wa?8U!v;~8^rSs^Dl*-Q@Tln!vA;ZPlmoGR>QY( zWQ#ggUnv{xeCbo5iuSPP0*5lKd?EN0ihziiGB%@K0yrZL+t@6F3K32NlSo zCq>2Pd~xMfH>#X0Md%4B^@t+%fJx!(t`;Tqv#_M%1PmUpo5b5(U!(E&h`M7Ueo=#f z331lmC1QqOi(_xCsPk{c4Jq>bOLCjc9Cf4O>TIHdUi)#GA*Ho3?5$xEhS5`!kJ^)k z$NmbAP56EpzA28>yt4L)bACkvzeKFj&UMtVo8T-QiStCI_)f9n_KAskOl+AeMQls zVzu=2yr512NsZDwMIv;TVt%47EXT*heL|A6d~=<`Zc7o;qwS*m@?!C8k|wZ3G-6yP za+9nRXUgy<$lU0N7P;#RJhNMz(GQ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D`r?MDgRqr}>E5tsRLEJtBQ74KgY!8RCn(Z8DblDap}P+lF(>)t8BGX@|2H zWjQ%mT6(auVEZWV5d#hGTg5|gh{}il0 zB)WvFaCzTEyKRYz&oEx0y*I>Ctsj?FsCzd|5+)WSExKVV#dm;9M-5jC?RlhxZ>-1A z_G@#^=)s-hJFsQi7TlrQ%Ne=REo?=#dS5up)(R(DJ4*Oa=oPN7mGLmv2xt0cR1s)9 z+Rj8FLo-b{ZE~z|rG9MPMhgq6e&H(Ycfu8%)xtHqja3HsKkuMF(}whK2><{907*qo IM6N<$g19QOYXATM literal 0 HcmV?d00001 diff --git a/src/JamSoft.AvaloniaUI.Dialogs/Assets/battery-half.png b/src/JamSoft.AvaloniaUI.Dialogs/Assets/battery-half.png new file mode 100644 index 0000000000000000000000000000000000000000..0ed1466b5d0d77470808b589040a2960b2356c5e GIT binary patch literal 810 zcmV+_1J(SAP)v&!OxYbDb5i7!3#X9a-qrCii`MwS_j&5oWR<4CO#h9FxUYJmaze> zXf^qnxZDBBG;2fnQ@Nk_|McKN2PDxBJBF?@$xp@K9U#1&cBo7NPBjSh3J0)SwhP4O zCv;;Y&S6+s_b@gT3AiRFKuuPdS#6cyepce4u>L{W7T%D79OuKDyqQE`Htq`Nv7?dW zk{qWivh8p*u>fyl;&n=V-sv7Tvxu_~GugB8St=|$J?5>Bi;Fm@BSnwAviXq)4W z5Yiu9Kd&j;FKdC-Gga1OU#_*L=v!RE*%o5t(SyetH$}f#f46X3e0c@pz6bl2Xp6(* z9EWR0-@(X2SwFMX!3f+4IMr~(*f<*7{w?R;9LE~Yd=B2ptdhMe6w?1pfx}TanG>Lf z*ElFERO}a|$d1Q*unFfiJ|16RH0TuE$q6)C?Lg7wN9d8=Fk%aDhyA6=`_~M`kCr;o z{==STlOJI`Hp^}xu@fp|{rI(&#Os-iEx3U99gtwi260^YIRBfJxlATvKIV$Q6Aa;{ o?0?MTxKa{{L?V$$Bod>OPZWI2-w-RIcK`qY07*qoM6N<$f4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>p1EtD?D_!_!ycNP!Swm}-Z&{Me~g?`8A&kraJD)cA>77)LI ziW6JWulpZrgS}E?ru%t0!#XtvW+!G(%)-Wj&(L*w!E4fd%%!gn#VD+6tVh@3PXgGq zjfTl%NU*Zp(Tv>kG#%ClA&@|K9I{AYQ8Oy#f*Rl#blLaW5L$vcP;rFv%otY!$IxX? zBN-+uJb>AkKSueL$$f{}-CiA*aF>B-emj(dO=!lv?6bfdQHUpik35K90UnORAR^Y_ zT{zu~gUay=;7boCStP1d$~vM&n9uoq`vQj*;}u8=x);MSq$VfMyF(@7$asa+vcShU zR6dUcViWv=9BCvrXl->pP>>JAbZ~V4-97_g*|HQdc-rstmznzed^%3y{s&=G5n=IgZN&fp002ov JPDHLkV1gu>`j7ws literal 0 HcmV?d00001 diff --git a/src/JamSoft.AvaloniaUI.Dialogs/Assets/customize.png b/src/JamSoft.AvaloniaUI.Dialogs/Assets/customize.png new file mode 100644 index 0000000000000000000000000000000000000000..52ef204ba3cc3cadbf07f4e0deba2d15685eae0c GIT binary patch literal 1144 zcmV-;1c&>HP)5=f6bnO|X#WEXi8jO#maK>vVq6NABqEwcuk6Iau%MrQ zg1sRYhQu5@5uvp)G}6za?v>Y1-CO5Y)vfz@{Uv8r=bk#>SM}~Yb?QR?s5+W0T7b2{ zHDDO{20R1~0#h8~W=0VLlz_7-F<%1nEn{a!XaPzf!7&gf3>G2N9cDz77^ZAa>|6z0szbdUI}6kTE@==7xLwlxFw)B zWn8ioR+*CT1kMACOpY2%2DTa!Fp)1M#E$>!Mu9CUIi!hjMnd9PPnmL!){|%$iYLJG8sE9V zT}R>)@@Y9qL^v%azf_oTC7Sd@!Q`bPh%ga#YH}r%#VWw0gnZh8OBrH~0^3{!*!d5W zcNSq9Fcgryk8PhOLRy`m#i@Yg2l2o1(w(Kn0^nyL@_DX&6>}XiQ#Wum5cwikK8}B* zeqd!2k&k^>)DAptGV)d61<}uBUlWp#Z7;wa;9L`uzfN6ecrkFl3CKSNmL)vH1YjfZ z=07Aq1nfeU`bJCzP5?hFlPgC_=-}gjK1&_(1L%u5Wkxsfz#_r*3GvzqOa1{KZh)>> zB&id?$F|S++FQhrlOKR8ZI4-!)_HsIGNVdwa4exXY@9fD3sMBm#VKnZN-)$bU9XA`u|S{aGE# zz#8=AOTa~BD?em%kO=TX;NugvFFYNdn;c96bd%6M$q8j(HSQ}PV-|)&D5)-<3LHXp zR&}>PHn<6FNExpJmr8iFqBjZ+rUQ!Sq0u>I1DYp z-*MQN0KUlASBGQT<#{wjdV&g5hv2RP4^h|QzHl74R9vEgGxe zjUzZzxi+85b^%ADWPK7pg5V7v<=7wPT#YzbBmP*r$KrAe6rDiP7#E=E1d2w}3-B9>5+v`33EBYw0000< KMNUMnLSTX{t@C>T literal 0 HcmV?d00001 diff --git a/src/JamSoft.AvaloniaUI.Dialogs/Assets/database.png b/src/JamSoft.AvaloniaUI.Dialogs/Assets/database.png new file mode 100644 index 0000000000000000000000000000000000000000..5f88d4371c6b7b7e6226b0cc040fe0cf53ddb03a GIT binary patch literal 798 zcmV+(1L6FMP)~u{}_cwViJvsH0OPZ^i@|@wvoOov*yZve~ysx zK+NtIo$U_9jL%wHDRmqO^!Xye(m+EerSqj|e8q`?&$2|i5QZ8mDk1H)Bo`T7Oz8_y zlP(4!pJp~;AS31`rkb7&G~(JZ)rgyIGV}Y_0u+hN{7OFsssc#Q$yxO0A*4fuw14iy zE3C+HI*s#+w;!luZ@}jzTowOl8p|#xxEwBK&vKy#gWD2%_|Hhc#Xr6#l+wU z-jKct?ub7h^R|gb?zVSM#^rKx{(8 zza7mBTr-nxo?ZBlHakLfC6?2+K{{qM#J2bqm`D{R8dV7PjplD2R+` zkuL}`B7zovtP>+DrA_purA>=@PcGw`cjw-jcjwOY{b0m*a1Q7GJTo3=F0@$Rl$wuMLa+*`WCQ9b8Z)K2ly3}!^QCfn5ov$Ya?Jz zNP6EehYunGU>UfJVW%w#iLM$7sNsu<=NL$k5?r=fy@C%SMw1rX2mv+n6tN5())iQ) z{&18lgg3{m=mPpO%ooi)f_wwK4cyQrXk-VtVlyz!+I39pPHbyzUCvkp?g{a3-HFX2 z0N|4l+on6InFLtT5|DQRdD9Y*cL90R5|DQRdD9Y*cL8~`A?5j}fX*xm$$%3v@k@2i z32I+#{uycmKF6G2lw&H*CD4aIzkOROX#@;qRz`lL5^y22GV);wn6MRagz#-rk(mH~ z+6s``{~zJwsgh^ME?`Bdw*vNafF$5G@WnD;BN+hNh4?tw2{?%S0P>MVE*A_4u?1if z>;w$Q#K$ahx!{Ztt56++Yy?Q{KS{W^z&8#7`-OO=_Km54PT;r@FH-vlq!2I^b54;2 z%%D6$wh<6z7ML>3f$c)PqJA(Da31-UbCKGAk#GWB z#YBMA{`0^agB&gy6k@Lk-&C)XRKOPCtPmd~9D#jfCva4VSE7NW0tSJtLfq%}j~#zi zk_wR8{~PeapeUC}*Z(}#@mD2@fOg=V5Pu5%F{{fNb;ny~`42p6|qVZQnC*YzGdkK6sD9R;?#$T0s0(uDVs8M`ve@Hm~s?-x8wSNFSHY~~& ziN{|RQvvUQ4+cfKB=PvG61P>hS(qn$R}s6$X5Swmj=w7FK|o!a`4R|#y@Y!hVrk|M rm_f662)D=-ZEJi|eEn|m;gvHWW00000NkvXXu0mjf;f15& literal 0 HcmV?d00001 diff --git a/src/JamSoft.AvaloniaUI.Dialogs/Assets/wifi.png b/src/JamSoft.AvaloniaUI.Dialogs/Assets/wifi.png new file mode 100644 index 0000000000000000000000000000000000000000..1c56f44b4133d57ab674460d685f4d455d56cf96 GIT binary patch literal 1091 zcmV-J1ibr+P)r zh1is%h`ekoRx2>B_2IQyAheln5rH>1x^WNwm<8fmwLkF?7Pc$?QtX-qg0k995v%G_ zZ@tXH-B_O-XJs58<9(6Ww~G`uf;}St6ZJqhj>Iyt+8LDfxI=5P;cNJ= z$)MkHRfz)fVzuZmG+PFqZZKd}?CTFyR*Jf$p1ut=oQ(Ix`kBfIR$*JtP8}wKPY(|D z?_D;G9m#Q?^ovd0^w>3w^Cw>{69M6?{PClH7 z$3>m<86HjkR~U0~6W$WVQkon+)yDBAuG8M0q%^v4i})6^imqonaI@kYxtTc&AIM+$ zbbCjX!Lx=M)?%OH#ZOJmYs(PVj6?90@`O*fM?}2o2n+C169>z%jhL5JL_3l7LEM<( za})Scq}-20hiGr|Ubpl?u20k!uV(NiGjl{cE6ti66eV?|uFTQ6M$`;xV#;o9+yz-U zp+(2`;Xc`RkjLQxt#_mAc6y3nuI3w!cjZ$}o`w&boNJF_TX8e;SObR!M25(Vd7_l9 zcfN;nJXgyswEvT$G2B(q`D(b={-yPcA_!)lv|Xnz68-yMuvt9QFOucBLWq7_>=i01 zDk?J3sl9a%Zot{e>uq>O(xm*qbFIi2({uSKuI`{;rLaol-xQ7EvW|IIFg1Ltc}+jm zDF=(DU+cTO(pp|+KI%Ft#n`1qIWe6wFTiMuu_J|f(LolNIr`6(4NBkImc@F_FTlEv zc~=5m8h4SOa9})wZ;P7vg~?|8hF_E8HJx;-qN1XrqN3v9;~xWFNtRXy>;(V-002ov JPDHLkV1ivR2SWe= literal 0 HcmV?d00001 diff --git a/src/JamSoft.AvaloniaUI.Dialogs/JamSoft.AvaloniaUI.Dialogs.csproj b/src/JamSoft.AvaloniaUI.Dialogs/JamSoft.AvaloniaUI.Dialogs.csproj index c1e47f6..749a6e6 100644 --- a/src/JamSoft.AvaloniaUI.Dialogs/JamSoft.AvaloniaUI.Dialogs.csproj +++ b/src/JamSoft.AvaloniaUI.Dialogs/JamSoft.AvaloniaUI.Dialogs.csproj @@ -21,11 +21,11 @@ true JamSoft.AssemblyKeyFile.snk true - 1.3.0 - 1.3.0.0 - 1.3.0.0 + 1.3.1 + 1.3.1.0 + 1.3.1.0 MIT - 1.3.0.0-rel + 1.3.1.0-rel true README.md diff --git a/src/JamSoft.AvaloniaUI.Dialogs/MsgBox/MsgBoxImage.cs b/src/JamSoft.AvaloniaUI.Dialogs/MsgBox/MsgBoxImage.cs index 9bc41ac..46166e9 100644 --- a/src/JamSoft.AvaloniaUI.Dialogs/MsgBox/MsgBoxImage.cs +++ b/src/JamSoft.AvaloniaUI.Dialogs/MsgBox/MsgBoxImage.cs @@ -53,5 +53,45 @@ public enum MsgBoxImage /// /// Show a custom icon /// - Custom + Custom, + + /// + /// Show the Success icon + /// + Success, + + /// + /// Show the Battery icon + /// + Battery, + + /// + /// Show the Database icon + /// + Database, + + /// + /// Show the Folder icon + /// + Folder, + + /// + /// Show the Forbidden icon + /// + Forbidden, + + /// + /// Show the Plus icon + /// + Plus, + + /// + /// Show the Setting icon + /// + Setting, + + /// + /// Show the Wifi icon + /// + Wifi } \ No newline at end of file diff --git a/src/JamSoft.AvaloniaUI.Dialogs/ViewModels/MsgBoxViewModel.cs b/src/JamSoft.AvaloniaUI.Dialogs/ViewModels/MsgBoxViewModel.cs index ddad84f..118069c 100644 --- a/src/JamSoft.AvaloniaUI.Dialogs/ViewModels/MsgBoxViewModel.cs +++ b/src/JamSoft.AvaloniaUI.Dialogs/ViewModels/MsgBoxViewModel.cs @@ -105,6 +105,30 @@ protected virtual void SetImage() case MsgBoxImage.Question: Icon = new Bitmap(AssetLoader.Open(new Uri($"avares://JamSoft.AvaloniaUI.Dialogs/Assets/interrogation.png"))); break; + case MsgBoxImage.Success: + Icon = new Bitmap(AssetLoader.Open(new Uri($"avares://JamSoft.AvaloniaUI.Dialogs/Assets/check-circle.png"))); + break; + case MsgBoxImage.Battery: + Icon = new Bitmap(AssetLoader.Open(new Uri($"avares://JamSoft.AvaloniaUI.Dialogs/Assets/battery-half.png"))); + break; + case MsgBoxImage.Database: + Icon = new Bitmap(AssetLoader.Open(new Uri($"avares://JamSoft.AvaloniaUI.Dialogs/Assets/database.png"))); + break; + case MsgBoxImage.Folder: + Icon = new Bitmap(AssetLoader.Open(new Uri($"avares://JamSoft.AvaloniaUI.Dialogs/Assets/folder-open.png"))); + break; + case MsgBoxImage.Forbidden: + Icon = new Bitmap(AssetLoader.Open(new Uri($"avares://JamSoft.AvaloniaUI.Dialogs/Assets/ban.png"))); + break; + case MsgBoxImage.Plus: + Icon = new Bitmap(AssetLoader.Open(new Uri($"avares://JamSoft.AvaloniaUI.Dialogs/Assets/add.png"))); + break; + case MsgBoxImage.Setting: + Icon = new Bitmap(AssetLoader.Open(new Uri($"avares://JamSoft.AvaloniaUI.Dialogs/Assets/customize.png"))); + break; + case MsgBoxImage.Wifi: + Icon = new Bitmap(AssetLoader.Open(new Uri($"avares://JamSoft.AvaloniaUI.Dialogs/Assets/wifi.png"))); + break; default: Icon = null; break;