From 9a16fd99b15322b05fd58c77dd6a032ec473a7b3 Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 29 Jul 2021 19:34:42 +0100 Subject: [PATCH 1/4] Changed: no resolution scaling --- MainForm.cs | 1 + RyzStudio/Windows/ThemedForms/TDialogForm.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/MainForm.cs b/MainForm.cs index 1907bab..ce57afc 100644 --- a/MainForm.cs +++ b/MainForm.cs @@ -41,6 +41,7 @@ namespace FizzyLauncher notifyIcon1.Text = Application.ProductName; + this.AutoScaleMode = AutoScaleMode.None; this.StartPosition = FormStartPosition.WindowsDefaultBounds; this.Visible = false; } diff --git a/RyzStudio/Windows/ThemedForms/TDialogForm.cs b/RyzStudio/Windows/ThemedForms/TDialogForm.cs index 05dc0e4..49453dc 100644 --- a/RyzStudio/Windows/ThemedForms/TDialogForm.cs +++ b/RyzStudio/Windows/ThemedForms/TDialogForm.cs @@ -20,7 +20,7 @@ namespace RyzStudio.Windows.ThemedForms this.StartPosition = FormStartPosition.CenterParent; this.TopMost = true; this.SizeGripStyle = SizeGripStyle.Hide; - this.AutoScaleMode = AutoScaleMode.Font; + this.AutoScaleMode = AutoScaleMode.None; } [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] From 7ad253d40823c991cd5dbe619dd552362644a0b2 Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 29 Jul 2021 21:07:06 +0100 Subject: [PATCH 2/4] Changed: listbox controls redesign --- Resources/UI/icons.svg | 546 ++++++++++++++---- Resources/UI/menu.png | Bin 0 -> 212 bytes Resources/UI/menu2.png | Bin 0 -> 187 bytes Resources/UI/pencil_line.png | Bin 0 -> 630 bytes Resources/UI/pencil_line2.png | Bin 0 -> 394 bytes Resources/UI/square_minus.png | Bin 0 -> 292 bytes Resources/UI/square_minus2.png | Bin 0 -> 250 bytes Resources/UI/square_plus.png | Bin 0 -> 338 bytes Resources/UI/square_plus2.png | Bin 0 -> 283 bytes Resources/UI/triangle_down.png | Bin 0 -> 480 bytes Resources/UI/triangle_down2.png | Bin 0 -> 329 bytes Resources/UI/triangle_down_stop.png | Bin 0 -> 446 bytes Resources/UI/triangle_down_stop2.png | Bin 0 -> 321 bytes Resources/UI/triangle_up.png | Bin 0 -> 464 bytes Resources/UI/triangle_up2.png | Bin 0 -> 327 bytes Resources/UI/triangle_up_stop.png | Bin 0 -> 442 bytes Resources/UI/triangle_up_stop2.png | Bin 0 -> 323 bytes RyzStudio/Windows/ThemedForms/TListBox.cs | 287 ++++++--- .../Windows/ThemedForms/TListBox.designer.cs | 209 +++++-- RyzStudio/Windows/ThemedForms/TListBox.resx | 6 + UIResource.Designer.cs | 116 ++-- UIResource.resx | 46 +- Windows/Forms/EditTileFolderForm.cs | 5 + 23 files changed, 885 insertions(+), 330 deletions(-) create mode 100644 Resources/UI/menu.png create mode 100644 Resources/UI/menu2.png create mode 100644 Resources/UI/pencil_line.png create mode 100644 Resources/UI/pencil_line2.png create mode 100644 Resources/UI/square_minus.png create mode 100644 Resources/UI/square_minus2.png create mode 100644 Resources/UI/square_plus.png create mode 100644 Resources/UI/square_plus2.png create mode 100644 Resources/UI/triangle_down.png create mode 100644 Resources/UI/triangle_down2.png create mode 100644 Resources/UI/triangle_down_stop.png create mode 100644 Resources/UI/triangle_down_stop2.png create mode 100644 Resources/UI/triangle_up.png create mode 100644 Resources/UI/triangle_up2.png create mode 100644 Resources/UI/triangle_up_stop.png create mode 100644 Resources/UI/triangle_up_stop2.png diff --git a/Resources/UI/icons.svg b/Resources/UI/icons.svg index 998bbb6..bfe370d 100644 --- a/Resources/UI/icons.svg +++ b/Resources/UI/icons.svg @@ -7,19 +7,19 @@ xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - inkscape:version="1.0 (4035a4fb49, 2020-05-01)" - sodipodi:docname="icons.svg" - id="svg8" - version="1.1" - class="feather feather-save" - stroke-linejoin="round" - stroke-linecap="round" - stroke-width="2" - stroke="currentColor" + width="36.465881" + height="56.465881" + viewBox="0 0 36.465881 56.465881" fill="none" - viewBox="0 0 24 24" - height="24" - width="24"> + stroke="currentColor" + stroke-width="2" + stroke-linecap="round" + stroke-linejoin="round" + class="feather feather-save" + version="1.1" + id="svg8" + sodipodi:docname="icons.svg" + inkscape:version="1.0 (4035a4fb49, 2020-05-01)"> @@ -35,134 +35,476 @@ + borderopacity="1" + objecttolerance="10" + gridtolerance="10" + guidetolerance="10" + inkscape:pageopacity="0" + inkscape:pageshadow="2" + inkscape:window-width="1920" + inkscape:window-height="1017" + id="namedview10" + showgrid="false" + inkscape:zoom="6.2608413" + inkscape:cx="90.016116" + inkscape:cy="49.411899" + inkscape:window-x="1072" + inkscape:window-y="845" + inkscape:window-maximized="1" + inkscape:current-layer="svg8" /> + inkscape:export-ydpi="96"> - - - - - - - - - + inkscape:export-ydpi="96"> + cx="12" + style="stroke:#d4d4d4;stroke-opacity:1" /> + id="path882" + d="m 19.4,15 a 1.65,1.65 0 0 0 0.33,1.82 l 0.06,0.06 a 2,2 0 0 1 0,2.83 2,2 0 0 1 -2.83,0 L 16.9,19.65 a 1.65,1.65 0 0 0 -1.82,-0.33 1.65,1.65 0 0 0 -1,1.51 V 21 a 2,2 0 0 1 -2,2 2,2 0 0 1 -2,-2 V 20.91 A 1.65,1.65 0 0 0 9,19.4 1.65,1.65 0 0 0 7.18,19.73 l -0.06,0.06 a 2,2 0 0 1 -2.83,0 2,2 0 0 1 0,-2.83 L 4.35,16.9 a 1.65,1.65 0 0 0 0.33,-1.82 1.65,1.65 0 0 0 -1.51,-1 H 3 a 2,2 0 0 1 -2,-2 2,2 0 0 1 2,-2 H 3.09 A 1.65,1.65 0 0 0 4.6,9 1.65,1.65 0 0 0 4.27,7.18 L 4.21,7.12 a 2,2 0 0 1 0,-2.83 2,2 0 0 1 2.83,0 L 7.1,4.35 A 1.65,1.65 0 0 0 8.92,4.68 H 9 A 1.65,1.65 0 0 0 10,3.17 V 3 a 2,2 0 0 1 2,-2 2,2 0 0 1 2,2 v 0.09 a 1.65,1.65 0 0 0 1,1.51 1.65,1.65 0 0 0 1.82,-0.33 l 0.06,-0.06 a 2,2 0 0 1 2.83,0 2,2 0 0 1 0,2.83 L 19.65,7.1 A 1.65,1.65 0 0 0 19.32,8.92 V 9 a 1.65,1.65 0 0 0 1.51,1 H 21 a 2,2 0 0 1 2,2 2,2 0 0 1 -2,2 h -0.09 a 1.65,1.65 0 0 0 -1.51,1 z" + style="stroke:#d4d4d4;stroke-opacity:1" /> + inkscape:export-ydpi="96"> + + + + + + + + + + + + + + + id="circle941-9" /> + id="path943-1" /> + id="line945-3" /> + + + + + + + + + + + + - + id="g1560-8" + transform="matrix(0.81929378,0,0,0.81929378,58.361382,18.491799)"> + id="path1546-2" + d="m 12,20 h 9" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Resources/UI/menu.png b/Resources/UI/menu.png new file mode 100644 index 0000000000000000000000000000000000000000..9c63469ba258c68e9c03b77117c79163a0c95e15 GIT binary patch literal 212 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBufiR<}hF1enFw@h;F~q_@`Op9V_ROjcoL-Z8CDzC7tzv$` zRjM&x<-my(6~ZYFdKVaES4em=WE@D|7(7?`>)Gd|T6Tp@W%l|Nw4ObwHUMn;BxdM4g$vlnOpEoJa@^>bP0l+XkK DcE><1 literal 0 HcmV?d00001 diff --git a/Resources/UI/menu2.png b/Resources/UI/menu2.png new file mode 100644 index 0000000000000000000000000000000000000000..2530762417e8ccd4ab973f5e184c86ba65713679 GIT binary patch literal 187 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBufiR<}hF1enFu>ErF~q_@`Op9V_ROjcoL<2!c?^apB%eHx z?r~5O?JP)pF8FWQhbW?9;ba!ELWdL_~cP?peYja~^aAhuUa%Y?FJQ@H10s~1z zK~y-6jm|r06j2n1@$cMRnFxVkZ()QbOK!4hENom+Obmh&iNQ`K5eo_UXwrxxir84h zN1=tHRail=5yc1C1Qa2zbMHhYA~x}nLXikN?9LpUC=%nEQ=i|TPgvnqDwUS5uCBAd zA>dP<=Z8zB(oXBJi}*nlMSB6#G_3$zRrOqNZ}0nm4tVd6 z0VjZ|EX#(br>7gOt*tkKT_SSbId=-6WjP!|7y~ANXV%*7&bc4JRbW4G%Q-hHA`0+V zK?vc1s!jl}L}W*2XXio);WBU#xHCULKPn>muYXyB_W+Zs`c75LJv}|2z4zyVao~Ow zMT3PxA^p?*9!Qd8FwgVbzz1t>xmYaDdGAjHCsp-PTU*=Cj*gDn(qaP;$8let=aaz4 zEX(>9@loI;FlCI{y&MLRYPGu7TKiU2zlliMIX4?Z7*o|t!1E}I`U-`@_vJ8vHOBO- z>S_@ga?Z`haXg}`7lCS?=L5|!fDw^0P*>GC@BO$j<{I!i%d-Absr0oO2C%>;U={EZ zKvie0wcEP8yT8P7JR%|kP5c`Rq`(aDL{%RfV;&ZZ#RULk%obH0ZZa_Q6D^P6`U3HH QJpcdz07*qoM6N<$f>pN;+W-In literal 0 HcmV?d00001 diff --git a/Resources/UI/pencil_line2.png b/Resources/UI/pencil_line2.png new file mode 100644 index 0000000000000000000000000000000000000000..9c30d393819c421db6daf5fa652a5da4b312c156 GIT binary patch literal 394 zcmV;50d@X~P)pF8FWQhbW?9;ba!ELWdL_~cP?peYja~^aAhuUa%Y?FJQ@H10T)R` zK~y-6mD9f~#Zef?@z=$T@*@nCEM)g5SSU8iWRlsyWX8Z^BZHKiVp2?$jEXD_Zr!>T z!(GHE`8|9exrY0_*HdRWpFZz%p67Eq)L!*i!6R-l^bb}Ya`?g(9`JX)K13FcIKw;os=>qZ$l5c*P(VBq8R}RSTTK9s0|(qU5KQqMOka oz94SPV;vLz2DU31uhPnY1K7w)aW0U!9{>OV07*qoM6N<$f@;#Fi2wiq literal 0 HcmV?d00001 diff --git a/Resources/UI/square_minus.png b/Resources/UI/square_minus.png new file mode 100644 index 0000000000000000000000000000000000000000..e4de0142c6ad7fb8f1869d2319cabd41dd5a259d GIT binary patch literal 292 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`oCO|{#S9F5he4R}c>anMprB-l zYeY$Kep*R+Vo@qXd3m{BW?pu2a$-TMUVc&f>~}U&Kt&rpT^vI!dXG-F<~w8{;Bvp> zZ0G_Hmy^B=92RjtZ)$4V>>z0=8h-HFB?sXN20|Sxzn@+6ZSlVM>1o^8#T=ISNm|T~ z6o3CA=F-8t#k{(jyMC{lvZ?!k)1`%(vvO0d7&KKqZ?Py`Q|sTggUPUltM6-l^YX2{ zhYO~d)P}x!H+@^~_5E)X=6vw`FaIcanMprB-l zYeY$Kep*R+Vo@qXd3m{BW?pu2a$-TMUVc&f>~}U&Kt=7IE{-7P?HzHek*{q4h@-G%0c@XqK`9Xm~ z>Z+D720b~=VAU;5Y8Ah8a&{IUy?e&u(WLiA^(>AXlJ7kHFZ)H-D*gWV>FYUJ>)ttN zA26P56zZgX;4zPWE(cdg!OSfyEmM4t9xrj*aNvmNzj=!j48P?G99yKpwSHZ;-E-3) gXN&jU+9qqqI6XEcDz~la4$#XCp00i_>zopr0Mt=~#{d8T literal 0 HcmV?d00001 diff --git a/Resources/UI/square_plus2.png b/Resources/UI/square_plus2.png new file mode 100644 index 0000000000000000000000000000000000000000..5c8b8ca83c3de693c2340dccb1dc6b53b09c9eb7 GIT binary patch literal 283 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBufiR<}hF1enaD%6dV~BKL<{|_rFHr_HjHr?iu+L?SsW4|@2y3#jYPwk$nBUTl#XKMJ(QxZly zr~8{NnH!-}H0^8<|D_~BXTv_m?{Qo;ENHUAo8fmN8pb`6hWatKJD$3inw* a56ibMGJncz8~hvSb_P#ZKbLh*2~7a-o@fjJ literal 0 HcmV?d00001 diff --git a/Resources/UI/triangle_down.png b/Resources/UI/triangle_down.png new file mode 100644 index 0000000000000000000000000000000000000000..af048335f948530411da847112b61a74aa970e05 GIT binary patch literal 480 zcmV<60U!Q}P)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!T08!R#+jhaV&>RLqu%AhO2Q}29Y;jg28AVYYX&A@x zrR%y&EZd!KyOn2*(!sUL~z6gC#T^2Y!{pNPx#1ZP1_K>z@;j|==^1poj532;bRa{vGi!Tw5{WDCB+8&Uhf5*&x;I*Otx zu5nE<3!AR%9ut2B2Q~>u@JVaEtVP7c!Q_f`46b8xEBaTkyhyl&Z!E7kjuVYYLlT4r zsYN`&a9Z?Uh$cN!nQ6$5=*B>Ra7t+LB{Q(if>m_PvW3=>9%ZYXHK+^(GVVI_&$4X8_x+brGx%m8=ytm`7VbzV3q?I+ zxZrtSQq~ndUEu>Vh(VoH4j|R_pO*gwKij6TEdK{O2!c^w_K-W)O06$&t%L{P)^Qx$ oX`04p0~vtCw(Yqg|ISLi12~t4vlT^ycmMzZ07*qoM6N<$f|32VegFUf literal 0 HcmV?d00001 diff --git a/Resources/UI/triangle_down_stop2.png b/Resources/UI/triangle_down_stop2.png new file mode 100644 index 0000000000000000000000000000000000000000..b31ee36683b56b4d04c5c45315117e6910cea227 GIT binary patch literal 321 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBufiR<}hF1en@S3NKV~BIUmI^QE$X;`dzSx)=D(T<^km4}*5|*f#5vbL*dLSTV@l@D7xCm;Mdt OLk3S*KbLh*2~7ZPCx24_ literal 0 HcmV?d00001 diff --git a/Resources/UI/triangle_up.png b/Resources/UI/triangle_up.png new file mode 100644 index 0000000000000000000000000000000000000000..b7f630773e83e371e6d63912dbe53647a7aed40e GIT binary patch literal 464 zcmV;>0WbcEP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!T3lc1)r9*XcFoQ@Fa0)p10V24#bo2uRanwNs2S1<)et;j~BsgZV0hbImc?Bmo zp`#SENE**cF2S0JqIlqN?>qOro0}V=(lj;x4RIV_k#ekrDY1koigq#G4#`~P5|qRl z1VK=1Hk%JfYq?^))a&&X+qPfjT%dA-Mx$|vu!N@{lg!8C@ljU%gwh1V;c$66ooZaX z*II8-a~!9ylv*=Q)9G|NkC{M6q~;ksQ@+B z=n*MHF@f*+!1KH}YE@v39;7X~W2nJk;GyFkc;mY6HpTCN zgZ8_txNuh96)Nbih6v#B%rz^dEm`!*~ZOXr;JvbGKRm0000`@)F+3DxCjL-ihjH zd{S}ZmS@KL$W=x8>kB68R+>&_7d|<;J?z?-JsGDq-#Ia9s;O;SeB_DUZ)UvW%&t09 z^wPV}+Bj6I>dXlX&C_#jPO|m#e3>y(@%J&0Pc0i)-Z4;iHgolrOV!afu{+Si6Zvh= z46k>0j6>~GPHZ|ZaB_CctW*4(-gN#D3g4u?{gXoNiqqR-fPx#1ZP1_K>z@;j|==^1poj532;bRa{vGi!T%QB-Ms5p-8G)-gjdLi|U#J258<@>(nILHx7>3J2U3P`i@f%ogfook$&bmun^EPjEpsPW<-L7+}MLJR_#ye&W&+`&p zmoRlK5d^`IX`1JxHMpl)6OFBg$t$QB@DycP)(LT%^2l}F10ngLXi$2Utt$pRVV|%8 z@43QGE&}ph!W~@KGbKtl8mqXUG5ku|;HAA4odWd72rXvDnOUQMA$o2=)1mP|Isg}0 zyD54n_@pz08~BOIJSLIi@F<5L5hvglhfj$=0+UUG%)DSSrw}eFR^SJGg1ulC4#F!j kcqW+=^$!U8{GAQs3kYI}zco4bO8@`>07*qoM6N<$g3n2{9RL6T literal 0 HcmV?d00001 diff --git a/Resources/UI/triangle_up_stop2.png b/Resources/UI/triangle_up_stop2.png new file mode 100644 index 0000000000000000000000000000000000000000..74de75abb9334915e4683d162e012c23cb09422f GIT binary patch literal 323 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBufiR<}hF1en@P?<0V~Bh}fDa^fC5U=fv8ycS<@c4qzMqjKCPIe$8Bug@v`rsBJ1gX8IA zGj}}e+5FB@<(PTR-hI8=FAqk3KO%R6-6|rvEBaH5l-*v>2g08{xc;3B{KCEKlXu{2 TUO8W&9~nGd{an^LB{Ts5w62C^ literal 0 HcmV?d00001 diff --git a/RyzStudio/Windows/ThemedForms/TListBox.cs b/RyzStudio/Windows/ThemedForms/TListBox.cs index 2ddc41b..8c3008e 100644 --- a/RyzStudio/Windows/ThemedForms/TListBox.cs +++ b/RyzStudio/Windows/ThemedForms/TListBox.cs @@ -22,14 +22,14 @@ namespace RyzStudio.Windows.ThemedForms listBox1.BorderStyle = BorderStyle.None; } - protected override void OnResize(EventArgs e) - { - base.OnResize(e); + //protected override void OnResize(EventArgs e) + //{ + // base.OnResize(e); - //int b = (styleActive.BorderWidth + 1) + styleActive.BorderPadding; + // //int b = (styleActive.BorderWidth + 1) + styleActive.BorderPadding; - //this.Height = comboBox1.Height + (b + textboxPadding.Top) + ((b - 1) + textboxPadding.Bottom); - } + // //this.Height = comboBox1.Height + (b + textboxPadding.Top) + ((b - 1) + textboxPadding.Bottom); + //} protected override void OnGotFocus(EventArgs e) { @@ -49,12 +49,10 @@ namespace RyzStudio.Windows.ThemedForms [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] public new Padding Margin { get => base.Margin; set => base.Margin = value; } - [Category("Action")] - [Browsable(true)] + [Browsable(false)] public event EventHandler OnAdd; - [Category("Action")] - [Browsable(true)] + [Browsable(false)] public event EventHandler OnEdit; protected override void updateBackground(Graphics g, ThemeStyle style) @@ -95,36 +93,7 @@ namespace RyzStudio.Windows.ThemedForms return; } - this.OnEdit?.Invoke(sender, e); - } - - /// - /// Remove - /// - /// - /// - private void imageBox2_MouseClick(object sender, MouseEventArgs e) - { - if (e.Button != MouseButtons.Left) - { - return; - } - - if (listBox1.SelectedIndex < 0) - { - return; - } - - int pos = listBox1.SelectedIndex; - - listBox1.Items.RemoveAt(pos); - - if (pos > (listBox1.Items.Count - 1)) - { - pos = (listBox1.Items.Count - 1); - } - - listBox1.SelectedIndex = pos; + contextMenuStrip1.Show(Cursor.Position); } /// @@ -142,23 +111,7 @@ namespace RyzStudio.Windows.ThemedForms } } - if (listBox1.SelectedIndex <= 0) - { - return; - } - - if (listBox1.SelectedItem == null) - { - return; - } - - object item = listBox1.SelectedItem; - int pos = listBox1.SelectedIndex; - - listBox1.Items.RemoveAt(pos); - listBox1.Items.Insert((pos - 1), item); - - listBox1.SelectedIndex = (pos - 1); + moveUpToolStripMenuItem_Click(sender, e); } /// @@ -176,26 +129,13 @@ namespace RyzStudio.Windows.ThemedForms } } - if (listBox1.SelectedIndex >= (listBox1.Items.Count - 1)) - { - return; - } - - if (listBox1.SelectedItem == null) - { - return; - } - - object item = listBox1.SelectedItem; - int pos = listBox1.SelectedIndex; - - listBox1.Items.RemoveAt(pos); - listBox1.Items.Insert((pos + 1), item); - - listBox1.SelectedIndex = (pos + 1); + moveDownToolStripMenuItem_Click(sender, e); } - private void listBox1_MouseDoubleClick(object sender, MouseEventArgs e) => imageBox5_MouseClick(sender, e); + private void listBox1_MouseDoubleClick(object sender, MouseEventArgs e) + { + editToolStripMenuItem_Click(sender, e); + } private void listBox1_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e) { @@ -229,5 +169,202 @@ namespace RyzStudio.Windows.ThemedForms } } + #region context menu + + /// + /// Add + /// + /// + /// + private void addItemToolStripMenuItem_Click(object sender, EventArgs e) + { + this.OnAdd?.Invoke(sender, e); + } + + /// + /// Copy + /// + /// + /// + private void toolStripMenuItem2_Click(object sender, EventArgs e) + { + if (listBox1.SelectedIndex <= 0) + { + return; + } + + if (listBox1.SelectedItem == null) + { + return; + } + + object item = listBox1.SelectedItem; + + listBox1.Items.Add(item); + listBox1.SelectedIndex = (listBox1.Items.Count- 1); + } + + /// + /// Edit + /// + /// + /// + private void editToolStripMenuItem_Click(object sender, EventArgs e) + { + if (listBox1.SelectedIndex < 0) + { + return; + } + + if (listBox1.SelectedItem == null) + { + return; + } + + this.OnEdit?.Invoke(sender, e); + } + + /// + /// Remove + /// + /// + /// + private void removeToolStripMenuItem_Click(object sender, EventArgs e) + { + if (listBox1.SelectedIndex < 0) + { + return; + } + + int pos = listBox1.SelectedIndex; + + listBox1.Items.RemoveAt(pos); + + if (pos > (listBox1.Items.Count - 1)) + { + pos = (listBox1.Items.Count - 1); + } + + listBox1.SelectedIndex = pos; + } + + /// + /// Remove all + /// + /// + /// + private void toolStripMenuItem1_Click(object sender, EventArgs e) + { + listBox1.Items.Clear(); + } + + /// + /// Move to top + /// + /// + /// + private void moveToTopToolStripMenuItem_Click(object sender, EventArgs e) + { + if (listBox1.SelectedIndex <= 0) + { + return; + } + + if (listBox1.SelectedItem == null) + { + return; + } + + object item = listBox1.SelectedItem; + int pos = listBox1.SelectedIndex; + + listBox1.Items.RemoveAt(pos); + listBox1.Items.Insert(0, item); + + listBox1.SelectedIndex = 0; + } + + /// + /// Move up + /// + /// + /// + private void moveUpToolStripMenuItem_Click(object sender, EventArgs e) + { + if (listBox1.SelectedIndex <= 0) + { + return; + } + + if (listBox1.SelectedItem == null) + { + return; + } + + object item = listBox1.SelectedItem; + int pos = listBox1.SelectedIndex; + + listBox1.Items.RemoveAt(pos); + listBox1.Items.Insert((pos - 1), item); + + listBox1.SelectedIndex = (pos - 1); + } + + /// + /// Move down + /// + /// + /// + private void moveDownToolStripMenuItem_Click(object sender, EventArgs e) + { + if (listBox1.SelectedIndex >= (listBox1.Items.Count - 1)) + { + return; + } + + if (listBox1.SelectedItem == null) + { + return; + } + + object item = listBox1.SelectedItem; + int pos = listBox1.SelectedIndex; + + listBox1.Items.RemoveAt(pos); + listBox1.Items.Insert((pos + 1), item); + + listBox1.SelectedIndex = (pos + 1); + } + + /// + /// Move to bottom + /// + /// + /// + private void moveToBottomToolStripMenuItem_Click(object sender, EventArgs e) + { + int n = (listBox1.Items.Count - 1); + + if (listBox1.SelectedIndex >= (listBox1.Items.Count - 1)) + { + return; + } + + if (listBox1.SelectedItem == null) + { + return; + } + + object item = listBox1.SelectedItem; + int pos = listBox1.SelectedIndex; + + listBox1.Items.RemoveAt(pos); + listBox1.Items.Insert(n, item); + + listBox1.SelectedIndex = n; + } + + #endregion + } } \ No newline at end of file diff --git a/RyzStudio/Windows/ThemedForms/TListBox.designer.cs b/RyzStudio/Windows/ThemedForms/TListBox.designer.cs index a81e57f..2c3e3f4 100644 --- a/RyzStudio/Windows/ThemedForms/TListBox.designer.cs +++ b/RyzStudio/Windows/ThemedForms/TListBox.designer.cs @@ -35,14 +35,26 @@ namespace RyzStudio.Windows.ThemedForms this.imageBox5 = new RyzStudio.Windows.Forms.TImageBox(); this.imageBox4 = new RyzStudio.Windows.Forms.TImageBox(); this.imageBox3 = new RyzStudio.Windows.Forms.TImageBox(); - this.imageBox2 = new RyzStudio.Windows.Forms.TImageBox(); this.imageBox1 = new RyzStudio.Windows.Forms.TImageBox(); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); + this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); + this.addItemToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.removeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.moveToTopToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.moveUpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.moveDownToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.moveToBottomToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); + this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); + this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); ((System.ComponentModel.ISupportInitialize)(this.imageBox5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.imageBox4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.imageBox3)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.imageBox2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.imageBox1)).BeginInit(); + this.contextMenuStrip1.SuspendLayout(); this.SuspendLayout(); // // listBox1 @@ -50,12 +62,12 @@ namespace RyzStudio.Windows.ThemedForms this.listBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.listBox1.BackColor = System.Drawing.Color.FromKnownColor(KnownColor.Window); + this.listBox1.BackColor = System.Drawing.SystemColors.Window; this.listBox1.FormattingEnabled = true; this.listBox1.ItemHeight = 15; this.listBox1.Location = new System.Drawing.Point(4, 4); this.listBox1.Name = "listBox1"; - this.listBox1.Size = new System.Drawing.Size(98, 109); + this.listBox1.Size = new System.Drawing.Size(98, 214); this.listBox1.TabIndex = 0; this.listBox1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.listBox1_MouseDoubleClick); this.listBox1.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(this.listBox1_PreviewKeyDown); @@ -69,16 +81,16 @@ namespace RyzStudio.Windows.ThemedForms this.imageBox5.BackColorSelected = System.Drawing.Color.Transparent; this.imageBox5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; this.imageBox5.ErrorImage = null; - this.imageBox5.HoverImage = global::FizzyLauncher.UIResource.edit2; - this.imageBox5.Image = global::FizzyLauncher.UIResource.edit; - this.imageBox5.ImageHover = global::FizzyLauncher.UIResource.edit2; - this.imageBox5.ImageNormal = global::FizzyLauncher.UIResource.edit; + this.imageBox5.HoverImage = global::FizzyLauncher.UIResource.menu2; + this.imageBox5.Image = global::FizzyLauncher.UIResource.menu; + this.imageBox5.ImageHover = global::FizzyLauncher.UIResource.menu2; + this.imageBox5.ImageNormal = global::FizzyLauncher.UIResource.menu; this.imageBox5.ImageSelected = null; this.imageBox5.InitialImage = null; this.imageBox5.IsSelected = false; this.imageBox5.Location = new System.Drawing.Point(106, 24); this.imageBox5.Name = "imageBox5"; - this.imageBox5.NormalImage = global::FizzyLauncher.UIResource.edit; + this.imageBox5.NormalImage = global::FizzyLauncher.UIResource.menu; this.imageBox5.SelectedImage = null; this.imageBox5.Size = new System.Drawing.Size(18, 18); this.imageBox5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; @@ -97,22 +109,22 @@ namespace RyzStudio.Windows.ThemedForms this.imageBox4.BackColorSelected = System.Drawing.Color.Transparent; this.imageBox4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; this.imageBox4.ErrorImage = null; - this.imageBox4.HoverImage = global::FizzyLauncher.UIResource.arrow_down2; - this.imageBox4.Image = global::FizzyLauncher.UIResource.arrow_down; - this.imageBox4.ImageHover = global::FizzyLauncher.UIResource.arrow_down2; - this.imageBox4.ImageNormal = global::FizzyLauncher.UIResource.arrow_down; + this.imageBox4.HoverImage = global::FizzyLauncher.UIResource.triangle_down2; + this.imageBox4.Image = global::FizzyLauncher.UIResource.triangle_down; + this.imageBox4.ImageHover = global::FizzyLauncher.UIResource.triangle_down2; + this.imageBox4.ImageNormal = global::FizzyLauncher.UIResource.triangle_down; this.imageBox4.ImageSelected = null; this.imageBox4.InitialImage = null; this.imageBox4.IsSelected = false; - this.imageBox4.Location = new System.Drawing.Point(106, 92); + this.imageBox4.Location = new System.Drawing.Point(106, 68); this.imageBox4.Name = "imageBox4"; - this.imageBox4.NormalImage = global::FizzyLauncher.UIResource.arrow_down; + this.imageBox4.NormalImage = global::FizzyLauncher.UIResource.triangle_down; this.imageBox4.SelectedImage = null; this.imageBox4.Size = new System.Drawing.Size(18, 18); this.imageBox4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.imageBox4.TabIndex = 5; this.imageBox4.TabStop = false; - this.toolTip1.SetToolTip(this.imageBox4, "Move Bottom"); + this.toolTip1.SetToolTip(this.imageBox4, "Move Down"); this.imageBox4.MouseClick += new System.Windows.Forms.MouseEventHandler(this.imageBox4_MouseClick); this.imageBox4.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.imageBox4_MouseClick); // @@ -125,16 +137,16 @@ namespace RyzStudio.Windows.ThemedForms this.imageBox3.BackColorSelected = System.Drawing.Color.Transparent; this.imageBox3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; this.imageBox3.ErrorImage = null; - this.imageBox3.HoverImage = global::FizzyLauncher.UIResource.arrow_up2; - this.imageBox3.Image = global::FizzyLauncher.UIResource.arrow_up; - this.imageBox3.ImageHover = global::FizzyLauncher.UIResource.arrow_up2; - this.imageBox3.ImageNormal = global::FizzyLauncher.UIResource.arrow_up; + this.imageBox3.HoverImage = global::FizzyLauncher.UIResource.triangle_up2; + this.imageBox3.Image = global::FizzyLauncher.UIResource.triangle_up; + this.imageBox3.ImageHover = global::FizzyLauncher.UIResource.triangle_up2; + this.imageBox3.ImageNormal = global::FizzyLauncher.UIResource.triangle_up; this.imageBox3.ImageSelected = null; this.imageBox3.InitialImage = null; this.imageBox3.IsSelected = false; - this.imageBox3.Location = new System.Drawing.Point(106, 72); + this.imageBox3.Location = new System.Drawing.Point(106, 48); this.imageBox3.Name = "imageBox3"; - this.imageBox3.NormalImage = global::FizzyLauncher.UIResource.arrow_up; + this.imageBox3.NormalImage = global::FizzyLauncher.UIResource.triangle_up; this.imageBox3.SelectedImage = null; this.imageBox3.Size = new System.Drawing.Size(18, 18); this.imageBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; @@ -144,34 +156,6 @@ namespace RyzStudio.Windows.ThemedForms this.imageBox3.MouseClick += new System.Windows.Forms.MouseEventHandler(this.imageBox3_MouseClick); this.imageBox3.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.imageBox3_MouseClick); // - // imageBox2 - // - this.imageBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.imageBox2.BackColor = System.Drawing.Color.Transparent; - this.imageBox2.BackColorHover = System.Drawing.Color.Transparent; - this.imageBox2.BackColorNormal = System.Drawing.Color.Transparent; - this.imageBox2.BackColorSelected = System.Drawing.Color.Transparent; - this.imageBox2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.imageBox2.ErrorImage = null; - this.imageBox2.HoverImage = global::FizzyLauncher.UIResource.minus2; - this.imageBox2.Image = global::FizzyLauncher.UIResource.minus; - this.imageBox2.ImageHover = global::FizzyLauncher.UIResource.minus2; - this.imageBox2.ImageNormal = global::FizzyLauncher.UIResource.minus; - this.imageBox2.ImageSelected = null; - this.imageBox2.InitialImage = null; - this.imageBox2.IsSelected = false; - this.imageBox2.Location = new System.Drawing.Point(106, 48); - this.imageBox2.Name = "imageBox2"; - this.imageBox2.NormalImage = global::FizzyLauncher.UIResource.minus; - this.imageBox2.SelectedImage = null; - this.imageBox2.Size = new System.Drawing.Size(18, 18); - this.imageBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; - this.imageBox2.TabIndex = 3; - this.imageBox2.TabStop = false; - this.toolTip1.SetToolTip(this.imageBox2, "Remove Item"); - this.imageBox2.MouseClick += new System.Windows.Forms.MouseEventHandler(this.imageBox2_MouseClick); - this.imageBox2.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.imageBox2_MouseClick); - // // imageBox1 // this.imageBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); @@ -181,16 +165,16 @@ namespace RyzStudio.Windows.ThemedForms this.imageBox1.BackColorSelected = System.Drawing.Color.Transparent; this.imageBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; this.imageBox1.ErrorImage = null; - this.imageBox1.HoverImage = global::FizzyLauncher.UIResource.plus2; - this.imageBox1.Image = global::FizzyLauncher.UIResource.plus; - this.imageBox1.ImageHover = global::FizzyLauncher.UIResource.plus2; - this.imageBox1.ImageNormal = global::FizzyLauncher.UIResource.plus; + this.imageBox1.HoverImage = global::FizzyLauncher.UIResource.square_plus2; + this.imageBox1.Image = global::FizzyLauncher.UIResource.square_plus; + this.imageBox1.ImageHover = global::FizzyLauncher.UIResource.square_plus2; + this.imageBox1.ImageNormal = global::FizzyLauncher.UIResource.square_plus; this.imageBox1.ImageSelected = null; this.imageBox1.InitialImage = null; this.imageBox1.IsSelected = false; this.imageBox1.Location = new System.Drawing.Point(106, 4); this.imageBox1.Name = "imageBox1"; - this.imageBox1.NormalImage = global::FizzyLauncher.UIResource.plus; + this.imageBox1.NormalImage = global::FizzyLauncher.UIResource.square_plus; this.imageBox1.SelectedImage = null; this.imageBox1.Size = new System.Drawing.Size(18, 18); this.imageBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; @@ -200,23 +184,118 @@ namespace RyzStudio.Windows.ThemedForms this.imageBox1.MouseClick += new System.Windows.Forms.MouseEventHandler(this.imageBox1_MouseClick); this.imageBox1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.imageBox1_MouseClick); // + // contextMenuStrip1 + // + this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.addItemToolStripMenuItem, + this.toolStripMenuItem2, + this.toolStripSeparator3, + this.editToolStripMenuItem, + this.toolStripSeparator2, + this.removeToolStripMenuItem, + this.toolStripMenuItem1, + this.toolStripSeparator1, + this.moveToTopToolStripMenuItem, + this.moveUpToolStripMenuItem, + this.moveDownToolStripMenuItem, + this.moveToBottomToolStripMenuItem}); + this.contextMenuStrip1.Name = "contextMenuStrip1"; + this.contextMenuStrip1.Size = new System.Drawing.Size(181, 242); + // + // addItemToolStripMenuItem + // + this.addItemToolStripMenuItem.Name = "addItemToolStripMenuItem"; + this.addItemToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.addItemToolStripMenuItem.Text = "&Add"; + this.addItemToolStripMenuItem.Click += new System.EventHandler(this.addItemToolStripMenuItem_Click); + // + // editToolStripMenuItem + // + this.editToolStripMenuItem.Name = "editToolStripMenuItem"; + this.editToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.editToolStripMenuItem.Text = "&Edit"; + this.editToolStripMenuItem.Click += new System.EventHandler(this.editToolStripMenuItem_Click); + // + // removeToolStripMenuItem + // + this.removeToolStripMenuItem.Name = "removeToolStripMenuItem"; + this.removeToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.removeToolStripMenuItem.Text = "&Remove"; + this.removeToolStripMenuItem.Click += new System.EventHandler(this.removeToolStripMenuItem_Click); + // + // moveToTopToolStripMenuItem + // + this.moveToTopToolStripMenuItem.Name = "moveToTopToolStripMenuItem"; + this.moveToTopToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.moveToTopToolStripMenuItem.Text = "Move To &Top"; + this.moveToTopToolStripMenuItem.Click += new System.EventHandler(this.moveToTopToolStripMenuItem_Click); + // + // moveUpToolStripMenuItem + // + this.moveUpToolStripMenuItem.Name = "moveUpToolStripMenuItem"; + this.moveUpToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.moveUpToolStripMenuItem.Text = "Move &Up"; + this.moveUpToolStripMenuItem.Click += new System.EventHandler(this.moveUpToolStripMenuItem_Click); + // + // moveDownToolStripMenuItem + // + this.moveDownToolStripMenuItem.Name = "moveDownToolStripMenuItem"; + this.moveDownToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.moveDownToolStripMenuItem.Text = "Move &Down"; + this.moveDownToolStripMenuItem.Click += new System.EventHandler(this.moveDownToolStripMenuItem_Click); + // + // moveToBottomToolStripMenuItem + // + this.moveToBottomToolStripMenuItem.Name = "moveToBottomToolStripMenuItem"; + this.moveToBottomToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.moveToBottomToolStripMenuItem.Text = "Move To &Bottom"; + this.moveToBottomToolStripMenuItem.Click += new System.EventHandler(this.moveToBottomToolStripMenuItem_Click); + // + // toolStripSeparator1 + // + this.toolStripSeparator1.Name = "toolStripSeparator1"; + this.toolStripSeparator1.Size = new System.Drawing.Size(177, 6); + // + // toolStripMenuItem1 + // + this.toolStripMenuItem1.Name = "toolStripMenuItem1"; + this.toolStripMenuItem1.Size = new System.Drawing.Size(180, 22); + this.toolStripMenuItem1.Text = "Remove A&ll"; + this.toolStripMenuItem1.Click += new System.EventHandler(this.toolStripMenuItem1_Click); + // + // toolStripSeparator2 + // + this.toolStripSeparator2.Name = "toolStripSeparator2"; + this.toolStripSeparator2.Size = new System.Drawing.Size(177, 6); + // + // toolStripMenuItem2 + // + this.toolStripMenuItem2.Name = "toolStripMenuItem2"; + this.toolStripMenuItem2.Size = new System.Drawing.Size(180, 22); + this.toolStripMenuItem2.Text = "&Copy"; + this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click); + // + // toolStripSeparator3 + // + this.toolStripSeparator3.Name = "toolStripSeparator3"; + this.toolStripSeparator3.Size = new System.Drawing.Size(177, 6); + // // TListBox // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.Controls.Add(this.imageBox5); this.Controls.Add(this.imageBox4); this.Controls.Add(this.imageBox3); - this.Controls.Add(this.imageBox2); this.Controls.Add(this.imageBox1); this.Controls.Add(this.listBox1); this.Name = "TListBox"; this.Padding = new System.Windows.Forms.Padding(4, 4, 3, 3); - this.Size = new System.Drawing.Size(128, 120); + this.Size = new System.Drawing.Size(128, 225); ((System.ComponentModel.ISupportInitialize)(this.imageBox5)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.imageBox4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.imageBox3)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.imageBox2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.imageBox1)).EndInit(); + this.contextMenuStrip1.ResumeLayout(false); this.ResumeLayout(false); } @@ -225,10 +304,22 @@ namespace RyzStudio.Windows.ThemedForms private System.Windows.Forms.ListBox listBox1; private Forms.TImageBox imageBox1; - private Forms.TImageBox imageBox2; private Forms.TImageBox imageBox3; private Forms.TImageBox imageBox4; private Forms.TImageBox imageBox5; private System.Windows.Forms.ToolTip toolTip1; + private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; + private System.Windows.Forms.ToolStripMenuItem addItemToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem editToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem removeToolStripMenuItem; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; + private System.Windows.Forms.ToolStripMenuItem moveToTopToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem moveUpToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem moveDownToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem moveToBottomToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator3; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator2; + private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1; } } diff --git a/RyzStudio/Windows/ThemedForms/TListBox.resx b/RyzStudio/Windows/ThemedForms/TListBox.resx index 57523cc..34628c2 100644 --- a/RyzStudio/Windows/ThemedForms/TListBox.resx +++ b/RyzStudio/Windows/ThemedForms/TListBox.resx @@ -60,4 +60,10 @@ 17, 17 + + 17, 17 + + + 114, 17 + \ No newline at end of file diff --git a/UIResource.Designer.cs b/UIResource.Designer.cs index 90f6194..c79c10f 100644 --- a/UIResource.Designer.cs +++ b/UIResource.Designer.cs @@ -60,46 +60,6 @@ namespace FizzyLauncher { } } - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap arrow_down { - get { - object obj = ResourceManager.GetObject("arrow_down", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap arrow_down2 { - get { - object obj = ResourceManager.GetObject("arrow_down2", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap arrow_up { - get { - object obj = ResourceManager.GetObject("arrow_up", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap arrow_up2 { - get { - object obj = ResourceManager.GetObject("arrow_up2", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// @@ -160,26 +120,6 @@ namespace FizzyLauncher { } } - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap edit { - get { - object obj = ResourceManager.GetObject("edit", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap edit2 { - get { - object obj = ResourceManager.GetObject("edit2", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// @@ -243,9 +183,9 @@ namespace FizzyLauncher { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - internal static System.Drawing.Bitmap minus { + internal static System.Drawing.Bitmap menu { get { - object obj = ResourceManager.GetObject("minus", resourceCulture); + object obj = ResourceManager.GetObject("menu", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } @@ -253,9 +193,9 @@ namespace FizzyLauncher { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - internal static System.Drawing.Bitmap minus2 { + internal static System.Drawing.Bitmap menu2 { get { - object obj = ResourceManager.GetObject("minus2", resourceCulture); + object obj = ResourceManager.GetObject("menu2", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } @@ -263,9 +203,9 @@ namespace FizzyLauncher { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - internal static System.Drawing.Bitmap plus { + internal static System.Drawing.Bitmap square_plus { get { - object obj = ResourceManager.GetObject("plus", resourceCulture); + object obj = ResourceManager.GetObject("square_plus", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } @@ -273,9 +213,9 @@ namespace FizzyLauncher { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - internal static System.Drawing.Bitmap plus2 { + internal static System.Drawing.Bitmap square_plus2 { get { - object obj = ResourceManager.GetObject("plus2", resourceCulture); + object obj = ResourceManager.GetObject("square_plus2", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } @@ -299,5 +239,45 @@ namespace FizzyLauncher { return ((System.Drawing.Bitmap)(obj)); } } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap triangle_down { + get { + object obj = ResourceManager.GetObject("triangle_down", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap triangle_down2 { + get { + object obj = ResourceManager.GetObject("triangle_down2", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap triangle_up { + get { + object obj = ResourceManager.GetObject("triangle_up", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap triangle_up2 { + get { + object obj = ResourceManager.GetObject("triangle_up2", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } } } diff --git a/UIResource.resx b/UIResource.resx index 03adecf..2104efd 100644 --- a/UIResource.resx +++ b/UIResource.resx @@ -118,18 +118,6 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - Resources\UI\arrow_down.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - Resources\UI\arrow_down2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - Resources\UI\arrow_up.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - Resources\UI\arrow_up2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - Resources\UI\close.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -148,12 +136,6 @@ Resources\UI\disk2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - Resources\UI\edit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - Resources\UI\edit2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - Resources\UI\file.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -172,17 +154,17 @@ Resources\UI\help2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - Resources\UI\minus.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + Resources\UI\menu.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - Resources\UI\minus2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + Resources\UI\menu2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - Resources\UI\plus.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + Resources\UI\square_plus.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - Resources\UI\plus2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + Resources\UI\square_plus2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a Resources\UI\trash.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -190,4 +172,16 @@ Resources\UI\trash2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + Resources\UI\triangle_down.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + Resources\UI\triangle_down2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + Resources\UI\triangle_up.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + Resources\UI\triangle_up2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + \ No newline at end of file diff --git a/Windows/Forms/EditTileFolderForm.cs b/Windows/Forms/EditTileFolderForm.cs index 3fdf26a..459b35f 100644 --- a/Windows/Forms/EditTileFolderForm.cs +++ b/Windows/Forms/EditTileFolderForm.cs @@ -317,6 +317,11 @@ namespace FizzyLauncher.Windows.Forms return; } + if (listBox1.ListBox.SelectedItem == null) + { + return; + } + EditTileForm.ShowEditDialog(listBox1); } From 3b6dfe926f0fc248d641dc8904455304951dc868 Mon Sep 17 00:00:00 2001 From: Ray Date: Thu, 29 Jul 2021 21:12:52 +0100 Subject: [PATCH 3/4] Changed: build no. --- FizzyLauncher.csproj | 6 +++--- installer-64.iss | 2 +- installer-86.iss | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/FizzyLauncher.csproj b/FizzyLauncher.csproj index 573f00a..f5e0bd4 100644 --- a/FizzyLauncher.csproj +++ b/FizzyLauncher.csproj @@ -12,9 +12,9 @@ Hi, I'm Ray Fizzy Launcher Ray Lam - 0.2.2.015 - 0.2.2.015 - 0.2.2.015 + 0.2.2.018 + 0.2.2.018 + 0.2.2.018 diff --git a/installer-64.iss b/installer-64.iss index 3d50fd2..96c5186 100644 --- a/installer-64.iss +++ b/installer-64.iss @@ -2,7 +2,7 @@ ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! #define MyAppName "Fizzy Launcher" -#define MyAppVersion "0.2.2.015" +#define MyAppVersion "0.2.2.018" #define MyAppPublisher "Hi, I'm Ray" #define MyAppURL "https://www.hiimray.co.uk/software-fizzy-launcher" #define MyAppExeName "fizzylauncher.exe" diff --git a/installer-86.iss b/installer-86.iss index 0e8e430..4a3e61b 100644 --- a/installer-86.iss +++ b/installer-86.iss @@ -2,7 +2,7 @@ ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! #define MyAppName "Fizzy Launcher" -#define MyAppVersion "0.2.2.015" +#define MyAppVersion "0.2.2.018" #define MyAppPublisher "Hi, I'm Ray" #define MyAppURL "https://www.hiimray.co.uk/software-fizzy-launcher" #define MyAppExeName "fizzylauncher.exe" From 30a826fbd58be886ab18ddfc36fe2f0c9d1e5f5f Mon Sep 17 00:00:00 2001 From: Ray Date: Fri, 30 Jul 2021 01:23:38 +0100 Subject: [PATCH 4/4] Changed: circle icons + clean-up --- Resources/UI/circle_menu.png | Bin 0 -> 597 bytes Resources/UI/circle_menu2.png | Bin 0 -> 421 bytes Resources/UI/icons.svg | 773 ++++++++++-------- Resources/UI/square_minus.png | Bin 292 -> 0 bytes Resources/UI/square_minus2.png | Bin 250 -> 0 bytes Resources/UI/square_plus.png | Bin 338 -> 0 bytes Resources/UI/square_plus2.png | Bin 283 -> 0 bytes Resources/UI/triangle_down.png | Bin 480 -> 0 bytes Resources/UI/triangle_down2.png | Bin 329 -> 0 bytes Resources/UI/triangle_down_stop.png | Bin 446 -> 0 bytes Resources/UI/triangle_down_stop2.png | Bin 321 -> 0 bytes Resources/UI/triangle_up.png | Bin 464 -> 0 bytes Resources/UI/triangle_up2.png | Bin 327 -> 0 bytes Resources/UI/triangle_up_stop.png | Bin 442 -> 0 bytes Resources/UI/triangle_up_stop2.png | Bin 323 -> 0 bytes RyzStudio/Windows/ThemedForms/TListBox.cs | 15 + .../Windows/ThemedForms/TListBox.designer.cs | 219 ++--- UIResource.Designer.cs | 148 ++-- UIResource.resx | 50 +- 19 files changed, 686 insertions(+), 519 deletions(-) create mode 100644 Resources/UI/circle_menu.png create mode 100644 Resources/UI/circle_menu2.png delete mode 100644 Resources/UI/square_minus.png delete mode 100644 Resources/UI/square_minus2.png delete mode 100644 Resources/UI/square_plus.png delete mode 100644 Resources/UI/square_plus2.png delete mode 100644 Resources/UI/triangle_down.png delete mode 100644 Resources/UI/triangle_down2.png delete mode 100644 Resources/UI/triangle_down_stop.png delete mode 100644 Resources/UI/triangle_down_stop2.png delete mode 100644 Resources/UI/triangle_up.png delete mode 100644 Resources/UI/triangle_up2.png delete mode 100644 Resources/UI/triangle_up_stop.png delete mode 100644 Resources/UI/triangle_up_stop2.png diff --git a/Resources/UI/circle_menu.png b/Resources/UI/circle_menu.png new file mode 100644 index 0000000000000000000000000000000000000000..0ff2962bd4a38bdbed971e1bbac2954cf196c545 GIT binary patch literal 597 zcmV-b0;>IqP)pF8FWQhbW?9;ba!ELWdL_~cP?peYja~^aAhuUa%Y?FJQ@H10pdwS zK~y-6os+w2R8bU$zki>@;4sEF@Y0MTTbw4fU=c5ff-hh-g@Rb zJNq+bDvF}xoO|e;dtzqmlCDlc2qC-*AsmDdt~Vt$Eyj2w#yHv7*mwb;TJvXM-g`g) zFMyhGDCse9KCc_Lv$wamkg%L6%Q8=svMif;@3#TUvV4|h**&12*WF%CHCI)2(>Zq} z1u(OHU=g6#>+OaRR?TcK2acQB+celYw*|D)x2mcp4JDhBuH_`7oSLL>O#m}HIIJHz zuwBnN4Zdh*?M7Amz}>JNo!_yt0;<2uh-iJXti34=Edp6^2l!=flU&BUT8 zIw6E1@XpNEopS^D`%^>P!87R?;O&GgVc+cFqm{IHpF4-pu;I9B``E j{8iE?NlV`QQ5ydXqrm>^<pF8FWQhbW?9;ba!ELWdL_~cP?peYja~^aAhuUa%Y?FJQ@H10WwKM zK~y-6ozuH6L{St5;BS%>!7zy)C2@HP#fU^mynvdT+N~ENE~N+X0u&0*U?idvQ4?_~ zW~NY_HRjlkMEuE4_Fn7%SJqkQU;M;0_Hl!^I1TJ!DkWD6_nsiF;05Qni`*FIP{Rq< z(3FTT(ZUA$OFFA!3+>?c6q83GUMLZ!Sd1bEoxpSiHvS;)U^_IE75TuHF^rEOj3P@! zZ9K%iibtGgsLKcTQ6Mj&H!0AR4;kJ=Q_nDhvxIyv8B%mm#2w}{-+yHX&m{#~B|Mq@ zyT+3E4EmB-6IX@zcxdh8Nj{hkY8XmRt&ksxF89do*~VsBi@#teG+)*}jKIH)MAyn~ zxk;)&b*j1s`m%DmOuJacD=u&wxe3f-5XV@TEK?Cv^5Hae*ZDePlPUQVhbTqw-rwVt P00000NkvXXu0mjfiG#1D literal 0 HcmV?d00001 diff --git a/Resources/UI/icons.svg b/Resources/UI/icons.svg index bfe370d..fc6bf20 100644 --- a/Resources/UI/icons.svg +++ b/Resources/UI/icons.svg @@ -7,19 +7,19 @@ xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="36.465881" - height="56.465881" - viewBox="0 0 36.465881 56.465881" - fill="none" - stroke="currentColor" - stroke-width="2" - stroke-linecap="round" - stroke-linejoin="round" - class="feather feather-save" - version="1.1" - id="svg8" + inkscape:version="1.0 (4035a4fb49, 2020-05-01)" sodipodi:docname="icons.svg" - inkscape:version="1.0 (4035a4fb49, 2020-05-01)"> + id="svg8" + version="1.1" + class="feather feather-save" + stroke-linejoin="round" + stroke-linecap="round" + stroke-width="2" + stroke="currentColor" + fill="none" + viewBox="0 0 169.84447 96.385719" + height="96.385719" + width="169.84447"> @@ -35,476 +35,569 @@ + inkscape:window-y="845" + inkscape:window-x="1072" + inkscape:cy="82.547694" + inkscape:cx="114.18197" + inkscape:zoom="6.2608413" + showgrid="false" + id="namedview10" + inkscape:window-height="1017" + inkscape:window-width="1920" + inkscape:pageshadow="2" + inkscape:pageopacity="0" + guidetolerance="10" + gridtolerance="10" + objecttolerance="10" + borderopacity="1" + bordercolor="#666666" + pagecolor="#ffffff" + inkscape:document-rotation="0" + fit-margin-top="0" + fit-margin-left="0" + fit-margin-right="0" + fit-margin-bottom="0" /> + transform="matrix(0.80171614,0,0,0.7982539,18.396568,-1.5965078)" + id="g842"> + + + + + + + + + - - - - - - - - - + transform="matrix(0.65647058,0,0,0.65647058,20,20)"> + cy="12" + cx="12" /> + id="path882-5" + d="m 19.4,15 a 1.65,1.65 0 0 0 0.33,1.82 l 0.06,0.06 a 2,2 0 0 1 0,2.83 2,2 0 0 1 -2.83,0 L 16.9,19.65 a 1.65,1.65 0 0 0 -1.82,-0.33 1.65,1.65 0 0 0 -1,1.51 V 21 a 2,2 0 0 1 -2,2 2,2 0 0 1 -2,-2 V 20.91 A 1.65,1.65 0 0 0 9,19.4 1.65,1.65 0 0 0 7.18,19.73 l -0.06,0.06 a 2,2 0 0 1 -2.83,0 2,2 0 0 1 0,-2.83 L 4.35,16.9 a 1.65,1.65 0 0 0 0.33,-1.82 1.65,1.65 0 0 0 -1.51,-1 H 3 a 2,2 0 0 1 -2,-2 2,2 0 0 1 2,-2 H 3.09 A 1.65,1.65 0 0 0 4.6,9 1.65,1.65 0 0 0 4.27,7.18 L 4.21,7.12 a 2,2 0 0 1 0,-2.83 2,2 0 0 1 2.83,0 L 7.1,4.35 A 1.65,1.65 0 0 0 8.92,4.68 H 9 A 1.65,1.65 0 0 0 10,3.17 V 3 a 2,2 0 0 1 2,-2 2,2 0 0 1 2,2 v 0.09 a 1.65,1.65 0 0 0 1,1.51 1.65,1.65 0 0 0 1.82,-0.33 l 0.06,-0.06 a 2,2 0 0 1 2.83,0 2,2 0 0 1 0,2.83 L 19.65,7.1 A 1.65,1.65 0 0 0 19.32,8.92 V 9 a 1.65,1.65 0 0 0 1.51,1 H 21 a 2,2 0 0 1 2,2 2,2 0 0 1 -2,2 h -0.09 a 1.65,1.65 0 0 0 -1.51,1 z" /> + style="fill:none;stroke:#d4d4d4;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"> + cy="12" + r="10" + id="circle941" /> + id="path943" /> + y1="17" + x2="12.01" + y2="17" + id="line945" /> + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - + id="path1546-2" /> - - - - + id="path1548-4" /> - + + y1="48" + x2="75" + y2="48" + id="line1498-1-9" /> + transform="matrix(0.88705882,0,0,0.88705882,36.451765,57.338728)" + inkscape:export-xdpi="96" + inkscape:export-ydpi="96"> + id="polygon1617" + points="19,4 19,20 9,12 " + style="stroke:#d4d4d4;stroke-opacity:1" /> + + + + + id="line1619-8" /> - - - - + transform="matrix(0.712,0,0,0.712,-0.12988241,63.506823)"> + style="stroke:#d4d4d4;stroke-opacity:1" /> + style="stroke:#d4d4d4;stroke-opacity:1" /> + + + + + + + id="line1690-1" /> + id="line1692-7" /> - - - - - - + transform="matrix(0.88297886,0,0,0.81929262,37.468085,78.361347)" + inkscape:export-xdpi="96" + inkscape:export-ydpi="96"> + id="polygon1735" + points="5,21 5,3 19,12 " + style="stroke:#d4d4d4;stroke-opacity:1" /> + style="fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round" + inkscape:export-xdpi="96" + inkscape:export-ydpi="96"> + points="19,12 5,21 5,3 " + id="polygon1735-2" /> + transform="matrix(0.80034632,0,0,0.80034632,78.399307,-1.6006926)" + inkscape:export-xdpi="96" + inkscape:export-ydpi="96"> + + + + + + id="rect1766-0" /> + id="line1768-6" /> + id="line1770-7" /> + inkscape:export-ydpi="96"> + x="3" + style="stroke:#d4d4d4;stroke-opacity:1" /> - + x1="8" + style="stroke:#d4d4d4;stroke-opacity:1" /> + inkscape:export-ydpi="96"> + id="rect1809-3" /> + id="line1811-8" /> - - - - + transform="matrix(0.81745949,0,0,0.81745949,81.164106,40.822659)" + inkscape:export-xdpi="96" + inkscape:export-ydpi="96"> + + + + + + id="line1846-4" /> + id="line1848-6" /> + id="line1850-4" /> + + + + - - - + style="stroke:#d4d4d4;stroke-opacity:1" + id="g983"> + + + + + + + + + + + + + + diff --git a/Resources/UI/square_minus.png b/Resources/UI/square_minus.png deleted file mode 100644 index e4de0142c6ad7fb8f1869d2319cabd41dd5a259d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 292 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`oCO|{#S9F5he4R}c>anMprB-l zYeY$Kep*R+Vo@qXd3m{BW?pu2a$-TMUVc&f>~}U&Kt&rpT^vI!dXG-F<~w8{;Bvp> zZ0G_Hmy^B=92RjtZ)$4V>>z0=8h-HFB?sXN20|Sxzn@+6ZSlVM>1o^8#T=ISNm|T~ z6o3CA=F-8t#k{(jyMC{lvZ?!k)1`%(vvO0d7&KKqZ?Py`Q|sTggUPUltM6-l^YX2{ zhYO~d)P}x!H+@^~_5E)X=6vw`FaIcanMprB-l zYeY$Kep*R+Vo@qXd3m{BW?pu2a$-TMUVc&f>~}U&Kt=7IE{-7P?HzHek*{q4h@-G%0c@XqK`9Xm~ z>Z+D720b~=VAU;5Y8Ah8a&{IUy?e&u(WLiA^(>AXlJ7kHFZ)H-D*gWV>FYUJ>)ttN zA26P56zZgX;4zPWE(cdg!OSfyEmM4t9xrj*aNvmNzj=!j48P?G99yKpwSHZ;-E-3) gXN&jU+9qqqI6XEcDz~la4$#XCp00i_>zopr0Mt=~#{d8T diff --git a/Resources/UI/square_plus2.png b/Resources/UI/square_plus2.png deleted file mode 100644 index 5c8b8ca83c3de693c2340dccb1dc6b53b09c9eb7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 283 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBufiR<}hF1enaD%6dV~BKL<{|_rFHr_HjHr?iu+L?SsW4|@2y3#jYPwk$nBUTl#XKMJ(QxZly zr~8{NnH!-}H0^8<|D_~BXTv_m?{Qo;ENHUAo8fmN8pb`6hWatKJD$3inw* a56ibMGJncz8~hvSb_P#ZKbLh*2~7a-o@fjJ diff --git a/Resources/UI/triangle_down.png b/Resources/UI/triangle_down.png deleted file mode 100644 index af048335f948530411da847112b61a74aa970e05..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 480 zcmV<60U!Q}P)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!T08!R#+jhaV&>RLqu%AhO2Q}29Y;jg28AVYYX&A@x zrR%y&EZd!KyOn2*(!sUL~z6gC#T^2Y!{pNPx#1ZP1_K>z@;j|==^1poj532;bRa{vGi!Tw5{WDCB+8&Uhf5*&x;I*Otx zu5nE<3!AR%9ut2B2Q~>u@JVaEtVP7c!Q_f`46b8xEBaTkyhyl&Z!E7kjuVYYLlT4r zsYN`&a9Z?Uh$cN!nQ6$5=*B>Ra7t+LB{Q(if>m_PvW3=>9%ZYXHK+^(GVVI_&$4X8_x+brGx%m8=ytm`7VbzV3q?I+ zxZrtSQq~ndUEu>Vh(VoH4j|R_pO*gwKij6TEdK{O2!c^w_K-W)O06$&t%L{P)^Qx$ oX`04p0~vtCw(Yqg|ISLi12~t4vlT^ycmMzZ07*qoM6N<$f|32VegFUf diff --git a/Resources/UI/triangle_down_stop2.png b/Resources/UI/triangle_down_stop2.png deleted file mode 100644 index b31ee36683b56b4d04c5c45315117e6910cea227..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 321 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBufiR<}hF1en@S3NKV~BIUmI^QE$X;`dzSx)=D(T<^km4}*5|*f#5vbL*dLSTV@l@D7xCm;Mdt OLk3S*KbLh*2~7ZPCx24_ diff --git a/Resources/UI/triangle_up.png b/Resources/UI/triangle_up.png deleted file mode 100644 index b7f630773e83e371e6d63912dbe53647a7aed40e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 464 zcmV;>0WbcEP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!T3lc1)r9*XcFoQ@Fa0)p10V24#bo2uRanwNs2S1<)et;j~BsgZV0hbImc?Bmo zp`#SENE**cF2S0JqIlqN?>qOro0}V=(lj;x4RIV_k#ekrDY1koigq#G4#`~P5|qRl z1VK=1Hk%JfYq?^))a&&X+qPfjT%dA-Mx$|vu!N@{lg!8C@ljU%gwh1V;c$66ooZaX z*II8-a~!9ylv*=Q)9G|NkC{M6q~;ksQ@+B z=n*MHF@f*+!1KH}YE@v39;7X~W2nJk;GyFkc;mY6HpTCN zgZ8_txNuh96)Nbih6v#B%rz^dEm`!*~ZOXr;JvbGKRm0000`@)F+3DxCjL-ihjH zd{S}ZmS@KL$W=x8>kB68R+>&_7d|<;J?z?-JsGDq-#Ia9s;O;SeB_DUZ)UvW%&t09 z^wPV}+Bj6I>dXlX&C_#jPO|m#e3>y(@%J&0Pc0i)-Z4;iHgolrOV!afu{+Si6Zvh= z46k>0j6>~GPHZ|ZaB_CctW*4(-gN#D3g4u?{gXoNiqqR-fPx#1ZP1_K>z@;j|==^1poj532;bRa{vGi!T%QB-Ms5p-8G)-gjdLi|U#J258<@>(nILHx7>3J2U3P`i@f%ogfook$&bmun^EPjEpsPW<-L7+}MLJR_#ye&W&+`&p zmoRlK5d^`IX`1JxHMpl)6OFBg$t$QB@DycP)(LT%^2l}F10ngLXi$2Utt$pRVV|%8 z@43QGE&}ph!W~@KGbKtl8mqXUG5ku|;HAA4odWd72rXvDnOUQMA$o2=)1mP|Isg}0 zyD54n_@pz08~BOIJSLIi@F<5L5hvglhfj$=0+UUG%)DSSrw}eFR^SJGg1ulC4#F!j kcqW+=^$!U8{GAQs3kYI}zco4bO8@`>07*qoM6N<$g3n2{9RL6T diff --git a/Resources/UI/triangle_up_stop2.png b/Resources/UI/triangle_up_stop2.png deleted file mode 100644 index 74de75abb9334915e4683d162e012c23cb09422f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 323 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBufiR<}hF1en@P?<0V~Bh}fDa^fC5U=fv8ycS<@c4qzMqjKCPIe$8Bug@v`rsBJ1gX8IA zGj}}e+5FB@<(PTR-hI8=FAqk3KO%R6-6|rvEBaH5l-*v>2g08{xc;3B{KCEKlXu{2 TUO8W&9~nGd{an^LB{Ts5w62C^ diff --git a/RyzStudio/Windows/ThemedForms/TListBox.cs b/RyzStudio/Windows/ThemedForms/TListBox.cs index 8c3008e..ab3fa86 100644 --- a/RyzStudio/Windows/ThemedForms/TListBox.cs +++ b/RyzStudio/Windows/ThemedForms/TListBox.cs @@ -86,6 +86,21 @@ namespace RyzStudio.Windows.ThemedForms /// /// /// + private void tImageBox1_MouseClick(object sender, MouseEventArgs e) + { + if (e.Button != MouseButtons.Left) + { + return; + } + + editToolStripMenuItem_Click(sender, e); + } + + /// + /// Menu + /// + /// + /// private void imageBox5_MouseClick(object sender, MouseEventArgs e) { if (e.Button != MouseButtons.Left) diff --git a/RyzStudio/Windows/ThemedForms/TListBox.designer.cs b/RyzStudio/Windows/ThemedForms/TListBox.designer.cs index 2c3e3f4..e45fa50 100644 --- a/RyzStudio/Windows/ThemedForms/TListBox.designer.cs +++ b/RyzStudio/Windows/ThemedForms/TListBox.designer.cs @@ -39,22 +39,24 @@ namespace RyzStudio.Windows.ThemedForms this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); this.addItemToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); this.removeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.moveToTopToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.moveUpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.moveDownToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.moveToBottomToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); - this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); - this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); + this.tImageBox1 = new RyzStudio.Windows.Forms.TImageBox(); ((System.ComponentModel.ISupportInitialize)(this.imageBox5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.imageBox4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.imageBox3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.imageBox1)).BeginInit(); this.contextMenuStrip1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.tImageBox1)).BeginInit(); this.SuspendLayout(); // // listBox1 @@ -81,22 +83,22 @@ namespace RyzStudio.Windows.ThemedForms this.imageBox5.BackColorSelected = System.Drawing.Color.Transparent; this.imageBox5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; this.imageBox5.ErrorImage = null; - this.imageBox5.HoverImage = global::FizzyLauncher.UIResource.menu2; - this.imageBox5.Image = global::FizzyLauncher.UIResource.menu; - this.imageBox5.ImageHover = global::FizzyLauncher.UIResource.menu2; - this.imageBox5.ImageNormal = global::FizzyLauncher.UIResource.menu; + this.imageBox5.HoverImage = global::FizzyLauncher.UIResource.circle_menu2; + this.imageBox5.Image = global::FizzyLauncher.UIResource.circle_menu; + this.imageBox5.ImageHover = global::FizzyLauncher.UIResource.circle_menu2; + this.imageBox5.ImageNormal = global::FizzyLauncher.UIResource.circle_menu; this.imageBox5.ImageSelected = null; this.imageBox5.InitialImage = null; this.imageBox5.IsSelected = false; - this.imageBox5.Location = new System.Drawing.Point(106, 24); + this.imageBox5.Location = new System.Drawing.Point(106, 48); this.imageBox5.Name = "imageBox5"; - this.imageBox5.NormalImage = global::FizzyLauncher.UIResource.menu; + this.imageBox5.NormalImage = global::FizzyLauncher.UIResource.circle_menu; this.imageBox5.SelectedImage = null; this.imageBox5.Size = new System.Drawing.Size(18, 18); this.imageBox5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.imageBox5.TabIndex = 6; this.imageBox5.TabStop = false; - this.toolTip1.SetToolTip(this.imageBox5, "Edit Item"); + this.toolTip1.SetToolTip(this.imageBox5, "Menu"); this.imageBox5.MouseClick += new System.Windows.Forms.MouseEventHandler(this.imageBox5_MouseClick); this.imageBox5.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.imageBox5_MouseClick); // @@ -109,16 +111,16 @@ namespace RyzStudio.Windows.ThemedForms this.imageBox4.BackColorSelected = System.Drawing.Color.Transparent; this.imageBox4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; this.imageBox4.ErrorImage = null; - this.imageBox4.HoverImage = global::FizzyLauncher.UIResource.triangle_down2; - this.imageBox4.Image = global::FizzyLauncher.UIResource.triangle_down; - this.imageBox4.ImageHover = global::FizzyLauncher.UIResource.triangle_down2; - this.imageBox4.ImageNormal = global::FizzyLauncher.UIResource.triangle_down; + this.imageBox4.HoverImage = global::FizzyLauncher.UIResource.arrow_down2; + this.imageBox4.Image = global::FizzyLauncher.UIResource.arrow_down; + this.imageBox4.ImageHover = global::FizzyLauncher.UIResource.arrow_down2; + this.imageBox4.ImageNormal = global::FizzyLauncher.UIResource.arrow_down; this.imageBox4.ImageSelected = null; this.imageBox4.InitialImage = null; this.imageBox4.IsSelected = false; - this.imageBox4.Location = new System.Drawing.Point(106, 68); + this.imageBox4.Location = new System.Drawing.Point(106, 92); this.imageBox4.Name = "imageBox4"; - this.imageBox4.NormalImage = global::FizzyLauncher.UIResource.triangle_down; + this.imageBox4.NormalImage = global::FizzyLauncher.UIResource.arrow_down; this.imageBox4.SelectedImage = null; this.imageBox4.Size = new System.Drawing.Size(18, 18); this.imageBox4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; @@ -137,16 +139,16 @@ namespace RyzStudio.Windows.ThemedForms this.imageBox3.BackColorSelected = System.Drawing.Color.Transparent; this.imageBox3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; this.imageBox3.ErrorImage = null; - this.imageBox3.HoverImage = global::FizzyLauncher.UIResource.triangle_up2; - this.imageBox3.Image = global::FizzyLauncher.UIResource.triangle_up; - this.imageBox3.ImageHover = global::FizzyLauncher.UIResource.triangle_up2; - this.imageBox3.ImageNormal = global::FizzyLauncher.UIResource.triangle_up; + this.imageBox3.HoverImage = global::FizzyLauncher.UIResource.arrow_up2; + this.imageBox3.Image = global::FizzyLauncher.UIResource.arrow_up; + this.imageBox3.ImageHover = global::FizzyLauncher.UIResource.arrow_up2; + this.imageBox3.ImageNormal = global::FizzyLauncher.UIResource.arrow_up; this.imageBox3.ImageSelected = null; this.imageBox3.InitialImage = null; this.imageBox3.IsSelected = false; - this.imageBox3.Location = new System.Drawing.Point(106, 48); + this.imageBox3.Location = new System.Drawing.Point(106, 72); this.imageBox3.Name = "imageBox3"; - this.imageBox3.NormalImage = global::FizzyLauncher.UIResource.triangle_up; + this.imageBox3.NormalImage = global::FizzyLauncher.UIResource.arrow_up; this.imageBox3.SelectedImage = null; this.imageBox3.Size = new System.Drawing.Size(18, 18); this.imageBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; @@ -165,22 +167,22 @@ namespace RyzStudio.Windows.ThemedForms this.imageBox1.BackColorSelected = System.Drawing.Color.Transparent; this.imageBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; this.imageBox1.ErrorImage = null; - this.imageBox1.HoverImage = global::FizzyLauncher.UIResource.square_plus2; - this.imageBox1.Image = global::FizzyLauncher.UIResource.square_plus; - this.imageBox1.ImageHover = global::FizzyLauncher.UIResource.square_plus2; - this.imageBox1.ImageNormal = global::FizzyLauncher.UIResource.square_plus; + this.imageBox1.HoverImage = global::FizzyLauncher.UIResource.plus2; + this.imageBox1.Image = global::FizzyLauncher.UIResource.plus; + this.imageBox1.ImageHover = global::FizzyLauncher.UIResource.plus2; + this.imageBox1.ImageNormal = global::FizzyLauncher.UIResource.plus; this.imageBox1.ImageSelected = null; this.imageBox1.InitialImage = null; this.imageBox1.IsSelected = false; this.imageBox1.Location = new System.Drawing.Point(106, 4); this.imageBox1.Name = "imageBox1"; - this.imageBox1.NormalImage = global::FizzyLauncher.UIResource.square_plus; + this.imageBox1.NormalImage = global::FizzyLauncher.UIResource.plus; this.imageBox1.SelectedImage = null; this.imageBox1.Size = new System.Drawing.Size(18, 18); this.imageBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.imageBox1.TabIndex = 2; this.imageBox1.TabStop = false; - this.toolTip1.SetToolTip(this.imageBox1, "Add Item"); + this.toolTip1.SetToolTip(this.imageBox1, "Add"); this.imageBox1.MouseClick += new System.Windows.Forms.MouseEventHandler(this.imageBox1_MouseClick); this.imageBox1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.imageBox1_MouseClick); // @@ -200,89 +202,118 @@ namespace RyzStudio.Windows.ThemedForms this.moveDownToolStripMenuItem, this.moveToBottomToolStripMenuItem}); this.contextMenuStrip1.Name = "contextMenuStrip1"; - this.contextMenuStrip1.Size = new System.Drawing.Size(181, 242); + this.contextMenuStrip1.Size = new System.Drawing.Size(163, 220); // // addItemToolStripMenuItem // this.addItemToolStripMenuItem.Name = "addItemToolStripMenuItem"; - this.addItemToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.addItemToolStripMenuItem.Size = new System.Drawing.Size(162, 22); this.addItemToolStripMenuItem.Text = "&Add"; this.addItemToolStripMenuItem.Click += new System.EventHandler(this.addItemToolStripMenuItem_Click); // - // editToolStripMenuItem - // - this.editToolStripMenuItem.Name = "editToolStripMenuItem"; - this.editToolStripMenuItem.Size = new System.Drawing.Size(180, 22); - this.editToolStripMenuItem.Text = "&Edit"; - this.editToolStripMenuItem.Click += new System.EventHandler(this.editToolStripMenuItem_Click); - // - // removeToolStripMenuItem - // - this.removeToolStripMenuItem.Name = "removeToolStripMenuItem"; - this.removeToolStripMenuItem.Size = new System.Drawing.Size(180, 22); - this.removeToolStripMenuItem.Text = "&Remove"; - this.removeToolStripMenuItem.Click += new System.EventHandler(this.removeToolStripMenuItem_Click); - // - // moveToTopToolStripMenuItem - // - this.moveToTopToolStripMenuItem.Name = "moveToTopToolStripMenuItem"; - this.moveToTopToolStripMenuItem.Size = new System.Drawing.Size(180, 22); - this.moveToTopToolStripMenuItem.Text = "Move To &Top"; - this.moveToTopToolStripMenuItem.Click += new System.EventHandler(this.moveToTopToolStripMenuItem_Click); - // - // moveUpToolStripMenuItem - // - this.moveUpToolStripMenuItem.Name = "moveUpToolStripMenuItem"; - this.moveUpToolStripMenuItem.Size = new System.Drawing.Size(180, 22); - this.moveUpToolStripMenuItem.Text = "Move &Up"; - this.moveUpToolStripMenuItem.Click += new System.EventHandler(this.moveUpToolStripMenuItem_Click); - // - // moveDownToolStripMenuItem - // - this.moveDownToolStripMenuItem.Name = "moveDownToolStripMenuItem"; - this.moveDownToolStripMenuItem.Size = new System.Drawing.Size(180, 22); - this.moveDownToolStripMenuItem.Text = "Move &Down"; - this.moveDownToolStripMenuItem.Click += new System.EventHandler(this.moveDownToolStripMenuItem_Click); - // - // moveToBottomToolStripMenuItem - // - this.moveToBottomToolStripMenuItem.Name = "moveToBottomToolStripMenuItem"; - this.moveToBottomToolStripMenuItem.Size = new System.Drawing.Size(180, 22); - this.moveToBottomToolStripMenuItem.Text = "Move To &Bottom"; - this.moveToBottomToolStripMenuItem.Click += new System.EventHandler(this.moveToBottomToolStripMenuItem_Click); - // - // toolStripSeparator1 - // - this.toolStripSeparator1.Name = "toolStripSeparator1"; - this.toolStripSeparator1.Size = new System.Drawing.Size(177, 6); - // - // toolStripMenuItem1 - // - this.toolStripMenuItem1.Name = "toolStripMenuItem1"; - this.toolStripMenuItem1.Size = new System.Drawing.Size(180, 22); - this.toolStripMenuItem1.Text = "Remove A&ll"; - this.toolStripMenuItem1.Click += new System.EventHandler(this.toolStripMenuItem1_Click); - // - // toolStripSeparator2 - // - this.toolStripSeparator2.Name = "toolStripSeparator2"; - this.toolStripSeparator2.Size = new System.Drawing.Size(177, 6); - // // toolStripMenuItem2 // this.toolStripMenuItem2.Name = "toolStripMenuItem2"; - this.toolStripMenuItem2.Size = new System.Drawing.Size(180, 22); + this.toolStripMenuItem2.Size = new System.Drawing.Size(162, 22); this.toolStripMenuItem2.Text = "&Copy"; this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click); // // toolStripSeparator3 // this.toolStripSeparator3.Name = "toolStripSeparator3"; - this.toolStripSeparator3.Size = new System.Drawing.Size(177, 6); + this.toolStripSeparator3.Size = new System.Drawing.Size(159, 6); + // + // editToolStripMenuItem + // + this.editToolStripMenuItem.Name = "editToolStripMenuItem"; + this.editToolStripMenuItem.Size = new System.Drawing.Size(162, 22); + this.editToolStripMenuItem.Text = "&Edit"; + this.editToolStripMenuItem.Click += new System.EventHandler(this.editToolStripMenuItem_Click); + // + // toolStripSeparator2 + // + this.toolStripSeparator2.Name = "toolStripSeparator2"; + this.toolStripSeparator2.Size = new System.Drawing.Size(159, 6); + // + // removeToolStripMenuItem + // + this.removeToolStripMenuItem.Name = "removeToolStripMenuItem"; + this.removeToolStripMenuItem.Size = new System.Drawing.Size(162, 22); + this.removeToolStripMenuItem.Text = "&Remove"; + this.removeToolStripMenuItem.Click += new System.EventHandler(this.removeToolStripMenuItem_Click); + // + // toolStripMenuItem1 + // + this.toolStripMenuItem1.Name = "toolStripMenuItem1"; + this.toolStripMenuItem1.Size = new System.Drawing.Size(162, 22); + this.toolStripMenuItem1.Text = "Remove A&ll"; + this.toolStripMenuItem1.Click += new System.EventHandler(this.toolStripMenuItem1_Click); + // + // toolStripSeparator1 + // + this.toolStripSeparator1.Name = "toolStripSeparator1"; + this.toolStripSeparator1.Size = new System.Drawing.Size(159, 6); + // + // moveToTopToolStripMenuItem + // + this.moveToTopToolStripMenuItem.Name = "moveToTopToolStripMenuItem"; + this.moveToTopToolStripMenuItem.Size = new System.Drawing.Size(162, 22); + this.moveToTopToolStripMenuItem.Text = "Move To &Top"; + this.moveToTopToolStripMenuItem.Click += new System.EventHandler(this.moveToTopToolStripMenuItem_Click); + // + // moveUpToolStripMenuItem + // + this.moveUpToolStripMenuItem.Name = "moveUpToolStripMenuItem"; + this.moveUpToolStripMenuItem.Size = new System.Drawing.Size(162, 22); + this.moveUpToolStripMenuItem.Text = "Move &Up"; + this.moveUpToolStripMenuItem.Click += new System.EventHandler(this.moveUpToolStripMenuItem_Click); + // + // moveDownToolStripMenuItem + // + this.moveDownToolStripMenuItem.Name = "moveDownToolStripMenuItem"; + this.moveDownToolStripMenuItem.Size = new System.Drawing.Size(162, 22); + this.moveDownToolStripMenuItem.Text = "Move &Down"; + this.moveDownToolStripMenuItem.Click += new System.EventHandler(this.moveDownToolStripMenuItem_Click); + // + // moveToBottomToolStripMenuItem + // + this.moveToBottomToolStripMenuItem.Name = "moveToBottomToolStripMenuItem"; + this.moveToBottomToolStripMenuItem.Size = new System.Drawing.Size(162, 22); + this.moveToBottomToolStripMenuItem.Text = "Move To &Bottom"; + this.moveToBottomToolStripMenuItem.Click += new System.EventHandler(this.moveToBottomToolStripMenuItem_Click); + // + // tImageBox1 + // + this.tImageBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.tImageBox1.BackColor = System.Drawing.Color.Transparent; + this.tImageBox1.BackColorHover = System.Drawing.Color.Transparent; + this.tImageBox1.BackColorNormal = System.Drawing.Color.Transparent; + this.tImageBox1.BackColorSelected = System.Drawing.Color.Transparent; + this.tImageBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.tImageBox1.ErrorImage = null; + this.tImageBox1.HoverImage = global::FizzyLauncher.UIResource.edit2; + this.tImageBox1.Image = global::FizzyLauncher.UIResource.edit; + this.tImageBox1.ImageHover = global::FizzyLauncher.UIResource.edit2; + this.tImageBox1.ImageNormal = global::FizzyLauncher.UIResource.edit; + this.tImageBox1.ImageSelected = null; + this.tImageBox1.InitialImage = null; + this.tImageBox1.IsSelected = false; + this.tImageBox1.Location = new System.Drawing.Point(106, 24); + this.tImageBox1.Name = "tImageBox1"; + this.tImageBox1.NormalImage = global::FizzyLauncher.UIResource.edit; + this.tImageBox1.SelectedImage = null; + this.tImageBox1.Size = new System.Drawing.Size(18, 18); + this.tImageBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.tImageBox1.TabIndex = 7; + this.tImageBox1.TabStop = false; + this.toolTip1.SetToolTip(this.tImageBox1, "Edit"); + this.tImageBox1.MouseClick += new System.Windows.Forms.MouseEventHandler(this.tImageBox1_MouseClick); + this.tImageBox1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.tImageBox1_MouseClick); // // TListBox // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; + this.Controls.Add(this.tImageBox1); this.Controls.Add(this.imageBox5); this.Controls.Add(this.imageBox4); this.Controls.Add(this.imageBox3); @@ -296,6 +327,7 @@ namespace RyzStudio.Windows.ThemedForms ((System.ComponentModel.ISupportInitialize)(this.imageBox3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.imageBox1)).EndInit(); this.contextMenuStrip1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.tImageBox1)).EndInit(); this.ResumeLayout(false); } @@ -321,5 +353,6 @@ namespace RyzStudio.Windows.ThemedForms private System.Windows.Forms.ToolStripSeparator toolStripSeparator3; private System.Windows.Forms.ToolStripSeparator toolStripSeparator2; private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1; + private Forms.TImageBox tImageBox1; } } diff --git a/UIResource.Designer.cs b/UIResource.Designer.cs index c79c10f..d8654e6 100644 --- a/UIResource.Designer.cs +++ b/UIResource.Designer.cs @@ -60,6 +60,66 @@ namespace FizzyLauncher { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap arrow_down { + get { + object obj = ResourceManager.GetObject("arrow_down", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap arrow_down2 { + get { + object obj = ResourceManager.GetObject("arrow_down2", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap arrow_up { + get { + object obj = ResourceManager.GetObject("arrow_up", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap arrow_up2 { + get { + object obj = ResourceManager.GetObject("arrow_up2", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap circle_menu { + get { + object obj = ResourceManager.GetObject("circle_menu", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap circle_menu2 { + get { + object obj = ResourceManager.GetObject("circle_menu2", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// @@ -120,6 +180,26 @@ namespace FizzyLauncher { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap edit { + get { + object obj = ResourceManager.GetObject("edit", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap edit2 { + get { + object obj = ResourceManager.GetObject("edit2", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// @@ -183,9 +263,9 @@ namespace FizzyLauncher { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - internal static System.Drawing.Bitmap menu { + internal static System.Drawing.Bitmap plus { get { - object obj = ResourceManager.GetObject("menu", resourceCulture); + object obj = ResourceManager.GetObject("plus", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } @@ -193,29 +273,9 @@ namespace FizzyLauncher { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - internal static System.Drawing.Bitmap menu2 { + internal static System.Drawing.Bitmap plus2 { get { - object obj = ResourceManager.GetObject("menu2", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap square_plus { - get { - object obj = ResourceManager.GetObject("square_plus", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap square_plus2 { - get { - object obj = ResourceManager.GetObject("square_plus2", resourceCulture); + object obj = ResourceManager.GetObject("plus2", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } @@ -239,45 +299,5 @@ namespace FizzyLauncher { return ((System.Drawing.Bitmap)(obj)); } } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap triangle_down { - get { - object obj = ResourceManager.GetObject("triangle_down", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap triangle_down2 { - get { - object obj = ResourceManager.GetObject("triangle_down2", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap triangle_up { - get { - object obj = ResourceManager.GetObject("triangle_up", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap triangle_up2 { - get { - object obj = ResourceManager.GetObject("triangle_up2", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } } } diff --git a/UIResource.resx b/UIResource.resx index 2104efd..20df970 100644 --- a/UIResource.resx +++ b/UIResource.resx @@ -118,6 +118,24 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + Resources\UI\arrow_down.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + Resources\UI\arrow_down2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + Resources\UI\arrow_up.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + Resources\UI\arrow_up2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + Resources\UI\circle_menu.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + Resources\UI\circle_menu2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + Resources\UI\close.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -136,6 +154,12 @@ Resources\UI\disk2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + Resources\UI\edit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + Resources\UI\edit2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + Resources\UI\file.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -154,17 +178,11 @@ Resources\UI\help2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - Resources\UI\menu.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + Resources\UI\plus.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - Resources\UI\menu2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - Resources\UI\square_plus.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - Resources\UI\square_plus2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + Resources\UI\plus2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a Resources\UI\trash.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -172,16 +190,4 @@ Resources\UI\trash2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - Resources\UI\triangle_down.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - Resources\UI\triangle_down2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - Resources\UI\triangle_up.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - Resources\UI\triangle_up2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - \ No newline at end of file