From b0d2c625ab2f00f662aebb53223ead34d1951d6e Mon Sep 17 00:00:00 2001 From: Ray Date: Sun, 17 May 2020 04:31:25 +0100 Subject: [PATCH] Changed: close button + clean-up --- LinearAppLauncher.csproj | 67 +-- Properties/Resources.Designer.cs | 120 ----- Properties/Resources.resx | 36 -- Resource1.Designer.cs | 80 +++ Resource1.resx | 24 + Resources/arrow-right-ea-16.png | Bin 285 -> 0 bytes Resources/button16_file_add.png | Bin 372 -> 0 bytes Resources/button16_file_add2.png | Bin 323 -> 0 bytes Resources/button16_folder_add.png | Bin 352 -> 0 bytes Resources/button16_folder_add2.png | Bin 288 -> 0 bytes Resources/chrome-ea-32.png | Bin 1364 -> 0 bytes Resources/folder-ea-32.png | Bin 522 -> 0 bytes Resources/form16_close.png | Bin 347 -> 0 bytes Resources/form16_close2.png | Bin 352 -> 0 bytes Resources/form16_maximise.png | Bin 300 -> 0 bytes Resources/form16_maximise2.png | Bin 275 -> 0 bytes Resources/form16_menu.png | Bin 297 -> 0 bytes Resources/form16_menu2.png | Bin 282 -> 0 bytes Resources/form16_minimise.png | Bin 276 -> 0 bytes Resources/form16_minimise2.png | Bin 291 -> 0 bytes Resources/form16_restore.png | Bin 318 -> 0 bytes Resources/form16_restore2.png | Bin 317 -> 0 bytes Resources/grid-ea-24.png | Bin 224 -> 0 bytes Resources/mail-ea-32.png | Bin 789 -> 0 bytes Resources/raw/icon-set.svg | 236 ++++++++- RyzStudio/Drawing/LeftRectangoid.cs | 137 ------ RyzStudio/String.cs | 36 -- .../Windows/Forms/Resources/close2_16.png | Bin 0 -> 422 bytes .../Windows/Forms/Resources/close2_20.png | Bin 0 -> 435 bytes .../Windows/Forms/Resources/close_16.png | Bin 0 -> 484 bytes .../Windows/Forms/Resources/close_20.png | Bin 0 -> 522 bytes .../Windows/Forms/Resources/maximise2_20.png | Bin 0 -> 290 bytes .../Windows/Forms/Resources/maximise_20.png | Bin 0 -> 319 bytes .../Windows/Forms/Resources/minimise2_20.png | Bin 0 -> 294 bytes .../Windows/Forms/Resources/minimise_20.png | Bin 0 -> 320 bytes RyzStudio/Windows/ThemedForms/LeftButton.cs | 111 ----- .../ThemedForms/LeftButton.designer.cs | 61 --- .../Windows/ThemedForms/LeftUserControl.cs | 53 -- .../ThemedForms/LeftUserControl.designer.cs | 37 -- .../ThemedForms/ProgressBar.Designer.cs | 72 --- RyzStudio/Windows/ThemedForms/ProgressBar.cs | 29 -- .../Windows/ThemedForms/ProgressBar.resx | 120 ----- .../ThemedForms/ProgressBarInner.Designer.cs | 63 --- .../Windows/ThemedForms/ProgressBarInner.cs | 197 -------- .../Windows/ThemedForms/ProgressBarInner.resx | 120 ----- .../ThemedForms/TDialogForm.Designer.cs | 6 +- .../ThemedForms/res/button16_file_add.png | Bin 426 -> 0 bytes .../ThemedForms/res/button16_file_add2.png | Bin 371 -> 0 bytes .../ThemedForms/res/button16_folder_add.png | Bin 463 -> 0 bytes .../ThemedForms/res/button16_folder_add2.png | Bin 361 -> 0 bytes .../ThemedForms/res/button16_refresh.png | Bin 639 -> 0 bytes .../ThemedForms/res/button16_refresh2.png | Bin 421 -> 0 bytes .../Windows/ThemedForms/res/form16_close.png | Bin 347 -> 0 bytes .../Windows/ThemedForms/res/form16_close2.png | Bin 352 -> 0 bytes .../ThemedForms/res/form16_maximise.png | Bin 300 -> 0 bytes .../ThemedForms/res/form16_maximise2.png | Bin 275 -> 0 bytes .../Windows/ThemedForms/res/form16_menu.png | Bin 297 -> 0 bytes .../Windows/ThemedForms/res/form16_menu2.png | Bin 282 -> 0 bytes .../ThemedForms/res/form16_minimise.png | Bin 276 -> 0 bytes .../ThemedForms/res/form16_minimise2.png | Bin 291 -> 0 bytes .../ThemedForms/res/form16_restore.png | Bin 318 -> 0 bytes .../ThemedForms/res/form16_restore2.png | Bin 317 -> 0 bytes .../Windows/ThemedForms/res/form20_close.png | Bin 493 -> 0 bytes .../Windows/ThemedForms/res/form20_close2.png | Bin 386 -> 0 bytes .../ThemedForms/res/form20_maximise.png | Bin 280 -> 0 bytes .../ThemedForms/res/form20_maximise2.png | Bin 281 -> 0 bytes .../Windows/ThemedForms/res/form20_menu.png | Bin 296 -> 0 bytes .../Windows/ThemedForms/res/form20_menu2.png | Bin 298 -> 0 bytes .../ThemedForms/res/form20_minimise.png | Bin 289 -> 0 bytes .../ThemedForms/res/form20_minimise2.png | Bin 301 -> 0 bytes .../ThemedForms/res/form20_restore.png | Bin 319 -> 0 bytes .../ThemedForms/res/form20_restore2.png | Bin 323 -> 0 bytes .../Windows/ThemedForms/res/settings16.png | Bin 729 -> 0 bytes .../Windows/ThemedForms/res/settings16_2.png | Bin 483 -> 0 bytes .../ThemedForms/res/settings16_white.png | Bin 516 -> 0 bytes Windows/Forms/AForm.cs | 57 +++ .../Forms/AForm.resx | 0 Windows/Forms/Tile/TileGroupLabel.Designer.cs | 213 -------- Windows/Forms/Tile/TileGroupLabel.cs | 101 ---- Windows/Forms/Tile/TileGroupLabel.resx | 123 ----- .../Tile/TileLayoutContainer.Designer.cs | 208 -------- Windows/Forms/Tile/TileLayoutContainer.cs | 362 -------------- Windows/Forms/Tile/TileLayoutContainer.resx | 126 ----- Windows/Forms/Tile/TileLayoutPanel.cs | 454 ------------------ Windows/Forms/Tile/TileLayoutPanel.resx | 120 ----- Windows/Forms/TitlePanel.Designer.cs | 90 ---- Windows/Forms/TitlePanel.cs | 140 ------ Windows/Forms/TitlePanel.resx | 120 ----- 88 files changed, 410 insertions(+), 3309 deletions(-) delete mode 100644 Resources/arrow-right-ea-16.png delete mode 100644 Resources/button16_file_add.png delete mode 100644 Resources/button16_file_add2.png delete mode 100644 Resources/button16_folder_add.png delete mode 100644 Resources/button16_folder_add2.png delete mode 100644 Resources/chrome-ea-32.png delete mode 100644 Resources/folder-ea-32.png delete mode 100644 Resources/form16_close.png delete mode 100644 Resources/form16_close2.png delete mode 100644 Resources/form16_maximise.png delete mode 100644 Resources/form16_maximise2.png delete mode 100644 Resources/form16_menu.png delete mode 100644 Resources/form16_menu2.png delete mode 100644 Resources/form16_minimise.png delete mode 100644 Resources/form16_minimise2.png delete mode 100644 Resources/form16_restore.png delete mode 100644 Resources/form16_restore2.png delete mode 100644 Resources/grid-ea-24.png delete mode 100644 Resources/mail-ea-32.png delete mode 100644 RyzStudio/Drawing/LeftRectangoid.cs delete mode 100644 RyzStudio/String.cs create mode 100644 RyzStudio/Windows/Forms/Resources/close2_16.png create mode 100644 RyzStudio/Windows/Forms/Resources/close2_20.png create mode 100644 RyzStudio/Windows/Forms/Resources/close_16.png create mode 100644 RyzStudio/Windows/Forms/Resources/close_20.png create mode 100644 RyzStudio/Windows/Forms/Resources/maximise2_20.png create mode 100644 RyzStudio/Windows/Forms/Resources/maximise_20.png create mode 100644 RyzStudio/Windows/Forms/Resources/minimise2_20.png create mode 100644 RyzStudio/Windows/Forms/Resources/minimise_20.png delete mode 100644 RyzStudio/Windows/ThemedForms/LeftButton.cs delete mode 100644 RyzStudio/Windows/ThemedForms/LeftButton.designer.cs delete mode 100644 RyzStudio/Windows/ThemedForms/LeftUserControl.cs delete mode 100644 RyzStudio/Windows/ThemedForms/LeftUserControl.designer.cs delete mode 100644 RyzStudio/Windows/ThemedForms/ProgressBar.Designer.cs delete mode 100644 RyzStudio/Windows/ThemedForms/ProgressBar.cs delete mode 100644 RyzStudio/Windows/ThemedForms/ProgressBar.resx delete mode 100644 RyzStudio/Windows/ThemedForms/ProgressBarInner.Designer.cs delete mode 100644 RyzStudio/Windows/ThemedForms/ProgressBarInner.cs delete mode 100644 RyzStudio/Windows/ThemedForms/ProgressBarInner.resx delete mode 100644 RyzStudio/Windows/ThemedForms/res/button16_file_add.png delete mode 100644 RyzStudio/Windows/ThemedForms/res/button16_file_add2.png delete mode 100644 RyzStudio/Windows/ThemedForms/res/button16_folder_add.png delete mode 100644 RyzStudio/Windows/ThemedForms/res/button16_folder_add2.png delete mode 100644 RyzStudio/Windows/ThemedForms/res/button16_refresh.png delete mode 100644 RyzStudio/Windows/ThemedForms/res/button16_refresh2.png delete mode 100644 RyzStudio/Windows/ThemedForms/res/form16_close.png delete mode 100644 RyzStudio/Windows/ThemedForms/res/form16_close2.png delete mode 100644 RyzStudio/Windows/ThemedForms/res/form16_maximise.png delete mode 100644 RyzStudio/Windows/ThemedForms/res/form16_maximise2.png delete mode 100644 RyzStudio/Windows/ThemedForms/res/form16_menu.png delete mode 100644 RyzStudio/Windows/ThemedForms/res/form16_menu2.png delete mode 100644 RyzStudio/Windows/ThemedForms/res/form16_minimise.png delete mode 100644 RyzStudio/Windows/ThemedForms/res/form16_minimise2.png delete mode 100644 RyzStudio/Windows/ThemedForms/res/form16_restore.png delete mode 100644 RyzStudio/Windows/ThemedForms/res/form16_restore2.png delete mode 100644 RyzStudio/Windows/ThemedForms/res/form20_close.png delete mode 100644 RyzStudio/Windows/ThemedForms/res/form20_close2.png delete mode 100644 RyzStudio/Windows/ThemedForms/res/form20_maximise.png delete mode 100644 RyzStudio/Windows/ThemedForms/res/form20_maximise2.png delete mode 100644 RyzStudio/Windows/ThemedForms/res/form20_menu.png delete mode 100644 RyzStudio/Windows/ThemedForms/res/form20_menu2.png delete mode 100644 RyzStudio/Windows/ThemedForms/res/form20_minimise.png delete mode 100644 RyzStudio/Windows/ThemedForms/res/form20_minimise2.png delete mode 100644 RyzStudio/Windows/ThemedForms/res/form20_restore.png delete mode 100644 RyzStudio/Windows/ThemedForms/res/form20_restore2.png delete mode 100644 RyzStudio/Windows/ThemedForms/res/settings16.png delete mode 100644 RyzStudio/Windows/ThemedForms/res/settings16_2.png delete mode 100644 RyzStudio/Windows/ThemedForms/res/settings16_white.png rename RyzStudio/Windows/ThemedForms/LeftButton.resx => Windows/Forms/AForm.resx (100%) delete mode 100644 Windows/Forms/Tile/TileGroupLabel.Designer.cs delete mode 100644 Windows/Forms/Tile/TileGroupLabel.cs delete mode 100644 Windows/Forms/Tile/TileGroupLabel.resx delete mode 100644 Windows/Forms/Tile/TileLayoutContainer.Designer.cs delete mode 100644 Windows/Forms/Tile/TileLayoutContainer.cs delete mode 100644 Windows/Forms/Tile/TileLayoutContainer.resx delete mode 100644 Windows/Forms/Tile/TileLayoutPanel.cs delete mode 100644 Windows/Forms/Tile/TileLayoutPanel.resx delete mode 100644 Windows/Forms/TitlePanel.Designer.cs delete mode 100644 Windows/Forms/TitlePanel.cs delete mode 100644 Windows/Forms/TitlePanel.resx diff --git a/LinearAppLauncher.csproj b/LinearAppLauncher.csproj index 593b18e..ddb0c7c 100644 --- a/LinearAppLauncher.csproj +++ b/LinearAppLauncher.csproj @@ -196,6 +196,9 @@ TButtonTextBox.cs + + AForm.cs + AddTileForm.cs @@ -229,68 +232,28 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + \ No newline at end of file diff --git a/Properties/Resources.Designer.cs b/Properties/Resources.Designer.cs index 28276dc..ef64037 100644 --- a/Properties/Resources.Designer.cs +++ b/Properties/Resources.Designer.cs @@ -70,16 +70,6 @@ namespace AppLauncher.Properties { } } - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap arrow_right_ea_16 { - get { - object obj = ResourceManager.GetObject("arrow_right_ea_16", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// @@ -90,116 +80,6 @@ namespace AppLauncher.Properties { } } - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap form16_close { - get { - object obj = ResourceManager.GetObject("form16_close", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap form16_close2 { - get { - object obj = ResourceManager.GetObject("form16_close2", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap form16_maximise { - get { - object obj = ResourceManager.GetObject("form16_maximise", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap form16_maximise2 { - get { - object obj = ResourceManager.GetObject("form16_maximise2", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap form16_menu { - get { - object obj = ResourceManager.GetObject("form16_menu", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap form16_menu2 { - get { - object obj = ResourceManager.GetObject("form16_menu2", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap form16_minimise { - get { - object obj = ResourceManager.GetObject("form16_minimise", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap form16_minimise2 { - get { - object obj = ResourceManager.GetObject("form16_minimise2", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap form16_restore { - get { - object obj = ResourceManager.GetObject("form16_restore", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap form16_restore2 { - get { - object obj = ResourceManager.GetObject("form16_restore2", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - - /// - /// Looks up a localized resource of type System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap grid_ea_24 { - get { - object obj = ResourceManager.GetObject("grid_ea_24", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// diff --git a/Properties/Resources.resx b/Properties/Resources.resx index 3b81589..c4c3cc9 100644 --- a/Properties/Resources.resx +++ b/Properties/Resources.resx @@ -121,45 +121,9 @@ ..\Resources\app_icon_24.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\arrow-right-ea-16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - ..\Resources\folder_32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\form16_close.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\form16_close2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\form16_maximise.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\form16_maximise2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\form16_menu.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\form16_menu2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\form16_minimise.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\form16_minimise2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\form16_restore.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\form16_restore2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\grid-ea-24.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - ..\Resources\toggle-left-ea-16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a diff --git a/Resource1.Designer.cs b/Resource1.Designer.cs index fcc731f..3d76540 100644 --- a/Resource1.Designer.cs +++ b/Resource1.Designer.cs @@ -100,6 +100,46 @@ namespace AppLauncher { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap close_16 { + get { + object obj = ResourceManager.GetObject("close_16", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap close_20 { + get { + object obj = ResourceManager.GetObject("close_20", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap close2_16 { + get { + object obj = ResourceManager.GetObject("close2_16", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap close2_20 { + get { + object obj = ResourceManager.GetObject("close2_20", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// @@ -160,6 +200,46 @@ namespace AppLauncher { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap maximise_20 { + get { + object obj = ResourceManager.GetObject("maximise_20", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap maximise2_20 { + get { + object obj = ResourceManager.GetObject("maximise2_20", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap minimise_20 { + get { + object obj = ResourceManager.GetObject("minimise_20", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap minimise2_20 { + get { + object obj = ResourceManager.GetObject("minimise2_20", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// diff --git a/Resource1.resx b/Resource1.resx index 43e9f46..a9aa549 100644 --- a/Resource1.resx +++ b/Resource1.resx @@ -130,6 +130,18 @@ RyzStudio\Windows\Forms\Resources\arrow_up2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + RyzStudio\Windows\Forms\Resources\close2_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + RyzStudio\Windows\Forms\Resources\close2_20.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + RyzStudio\Windows\Forms\Resources\close_16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + RyzStudio\Windows\Forms\Resources\close_20.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + RyzStudio\Windows\Forms\Resources\edit.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -148,6 +160,18 @@ RyzStudio\Windows\Forms\Resources\folder2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + RyzStudio\Windows\Forms\Resources\maximise2_20.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + RyzStudio\Windows\Forms\Resources\maximise_20.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + RyzStudio\Windows\Forms\Resources\minimise2_20.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + RyzStudio\Windows\Forms\Resources\minimise_20.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + RyzStudio\Windows\Forms\Resources\minus.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a diff --git a/Resources/arrow-right-ea-16.png b/Resources/arrow-right-ea-16.png deleted file mode 100644 index 0eeb39d3b91d980dbaa3ccd7d0d895228ac18b2e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 285 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85o4Xn6XD`Cp%DZlc$Sgh=qT$#IpxaPfzb%AGh~b(f@z7d@BUl z5}GbW9Q^_Fnro4lPMZkoC z<%48X62pb_z7Ae8hn!g*)_*WGGWx|Z^Zb#cN3SX_VmZ_x;V?yfo^7?-`9p^`$)DKs z_v`EMdRNz@@&b}dJO`FbvV5p|c(hx*>&%%m?G0z5ZS-vhDq8-{0o#jg5}n z9g>X_tOiC#_t=80Zr!@IUqOk7N1;}M!R*1StE;a!K12(Z}++-JXWeQ&xW63z>H+#w~#;bXZn+`j)9pFh|njA5wmragwuLSFoy^UXf z-QJ$R*||lK?E$O9ZJ!1+Yvz}S9d3O--Y>s=VUUaD2I&+{T?OdXq84umfFr?P-?xdad}WKNiL#_{XZGGItC Nc)I$ztaD0e0s!%Bg1i6# diff --git a/Resources/button16_file_add2.png b/Resources/button16_file_add2.png deleted file mode 100644 index f3e9f6d2179af7121d2314669151bada83185afe..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~B_mzch1Gq$$e+;8eZOfUvhDuXxoI>Z<;4FSAKHgGum`mj9+JAe$xE~D$Gfb_Ufni z7#v^{&B$rov*qGpw%RufHG>j*wWC%%Y+_q<#CAgOdiK0!6}xON-0+;gM&xay`G2PQ zOt+G*wXB{cw|r8~q%TRk64!0sue^WDo$FTu|J0^hdJ9TEnV5RN^Ixw)1@p4T61G!! S%?<z-+dbOt}?FI(5&63 z!&xxsRAc6>xjSk&zt`3`Z)|F7-J~QH5X=#{UFURYn3YI@fwwJ_jttCAK*V_`Ki{a*MzIbzRjOhYh_C1ebkJR#jNvvd?fa!=5|A|9&sX=bBqw z_}4JvZ^yzP0u8$9uV$_TjT-wL<FVdQ&MBb@0I8Ogm;e9( diff --git a/Resources/button16_folder_add2.png b/Resources/button16_folder_add2.png deleted file mode 100644 index d21178aa8cafb22ebfe50bf0379772d84075e671..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 288 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sDEfH31!Z9ZwB;8sr;#}Etux0m z`({cN-g>d1b*@z9#RhA)7pn!Ax7qqdta#{pJI^3+VJW*+#mk31-fh|?`8{_S-y0oW z`^Bn$it?(JjOTVb)$O~faH{@5KU<52yXeMiVqQy{0_Lhp%~1Zkc=O`wSeX!(3x_|< hFBYubZFY>sKU2UnWXUOwlRytJc)I$ztaD0e0suaOZf^hp diff --git a/Resources/chrome-ea-32.png b/Resources/chrome-ea-32.png deleted file mode 100644 index 00f529759c378db5ab337bd7b078812ce748cbed..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1364 zcmV-a1*`grP)(WOn|6> zm=GQy5(7%a1dJ~ljR}d0I7nDr0*RQ2J|MUxD&PaYKmZkuhNxk2!3`8e7`pGR+q1Z2 zq-SpZK1{V`}?K}We0ptO+0T=+#DI#Y`?vJ8q zXQ5E|W+;Dh0gwvAa3RUn07eew$k`E+k9(fC=YIi>F=I%+1>nZS($^w#f@CMj1`#O$ z7z^Oqgl;d%#h&N+Ljrx@zfDB8188wmA%OK!6m2UM3cu6}uvjdPOQlka06YZXQUD2$gylgaef0wv8DQy{q!z@2XDcWdpGd_I5lJYcz8o)tyW zE&yqg6%n~#YyH}P0mY4^7-N={sa-3Eg~6`odAmU*Z>~I;Kid-YF0Lz zeP7%W90M>)MEXcJxefPetzU_O=8MQW0AnsDbCSmMJgveooCshP09b3EjYYh!tE;Qo z!B&aLI~NOcmMs>Gxiranu_#^_k<$P+1JF?vEf0d=Ab<`h=>f1oM2-L$0bm+{1tc2* z3@D|Rko-1I5s`Ll?IsbCR4O$`f*|-1z%2ldYOTkURK}Rk08AoTQA(9aUJ0OEDK#~l z&3+emXpEUoau0w80Qe9v+CQK>g($pU1Pm74*bVw zT#-tpmH{{$1Ewwj9LlP`sqk-Rt#QTh;lob>c%wSD);?L!n^Nil_cLm0YC2v+QvKV` zD7bV*q}G*x1cP-CN~t;Ja`}d&!1w)oNX~G>Q_aoIUGa624FIlj!=fVjv0E7D`~Ep~ zPiy^$h^%qz=_ra07-KquAed&1neO}k2Bp-iRlSI;O$HPM!L0x;b3Q&2W6VU72i^K| zt@YE%O~#m&B%i8r0`W{f_dM^W8ob3UTbS>s6>PSRsevAWcvI2*VOWu&*$IOT938XjGipU_tElLmspNdGk(=XLpZ>f_FdU|?VDwWDH09gQ?*4pdx`TU=8 zO%MdDtBC-3TWft6;Oe2v@@|q{E`XPUAXrilSgBN2Iv7Yk7Kgd&(*fWKH}&JNVZ*AQ z&AA_YsZ^S&l-li%0RUcXXlPi`($dmX)r4Vqy|wl$r#Y0%<=U%tGYrEK*4m8#<~#Xs zQ4~#yw~yyFQKeF8rig48k&KJDOGGx1+~#@SPeBmu0x%l@0o<&${>1nF2}-F&Bp(ED zi95BE*4nwA=Y1LXU$adNf?za&HvvqF&yzeUB3D(93WE>+H~?2CTJv-zY;eGW4b%6=+L|3Tq5Rp-X)BKC%X{FQ|k{>9gcGfCiN&6e_ W&0M+7;r)jI0000igP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGmbN~PnbOGLGA9w%&0iQ`kK~z{r?Uu_* z!$1^bl&{gwl~<0xO|*eCm?g*yg5U@{@gxR5G6}7bgE@PqX>O9A zg=hoMFa_w?FpLe6>;sGD9mhF`I}iC#4Y@Xr4FWIpP%IX2VLeU>q74LOF<}=I>mnIL zr_-6r<#JbWlN?n)FQ{Kf{R55_jcsDeq-2JO$%!4?25IB=zZW6W*PGE*E+=HdoeI1P;&w`YjE?>3GM?cB2N#3ujH3- zN8d9)M%VZKYN=GZp&&d0+;FdH0B#eCyAfyQ5o%(Mh2G*4iJ~aV8(r{{;#`~VEC2ui M07*qoM6N<$f`-`HJpcdz diff --git a/Resources/form16_close.png b/Resources/form16_close.png deleted file mode 100644 index 6cfa679bd607c6b908b548bcf40bc01d1a39548b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 347 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Ea{HEjtmSN`?>!lvI6;>1s;*b z3=DjSL74G){)!Z!phSslL`iUdT1k0gQ7S`0VrE{6US4X6f{C7?o?)`q9B-hSo1QL? zAr}5igQNMH37r$1dW zIV&sUDDL@9toFVQbZW|Ifgf?i&Hz>~gTDkOAk z`MKOFQpc`Lsbb;%kXUv?{()#S=gApT*;(Au1*T7A7R>AH$^3Co^wS6J6GzNDB)7Pv z_OFyPda!NzRM~%*&PMGHz1eKMrdA^3>;L$~ukI>ge~(3+;dPVqetB_*{8J_wl?z|h pum0ZUvu6@V#-=Y;&ttF4&I{z{Ir%_twL8$044$rjF6*2UngAD?hj;)0 diff --git a/Resources/form16_close2.png b/Resources/form16_close2.png deleted file mode 100644 index e29862795b75be961aeb829c660687489eab467a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 352 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBugD~Uq{1qucL5ULAh?3y^w370~qEv>0#LT=By}Z;C1rt3( zJ;P+JIo?1u7d>4ZLoEE421oNX83@RHRXXOfS8e%%wVj9frxfshaH*LU@jXz;XN_j! zB+a*FWf2+T8o#xB>JR-AH%ytdRXOi2t6^o+=klsuI;+Z*_!c}=ZQQ!yt#eW4gGn(w z&z)Cu?&m%AtVN)#kacEpPUn)wkM2?XJ4L&a^q*KBugG`1)Np?pC*!iUt*ch{!PC{xWt~$(69BD)iE;n{ diff --git a/Resources/form16_maximise.png b/Resources/form16_maximise.png deleted file mode 100644 index 93017d3887c4f870863df4fbb72e98c6454d5edb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 300 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBugD~Uq{1qucL5ULAh?3y^w370~qEv>0#LT=By}Z;C1rt3( zJ;P+JIo?1ub3I)gLoED{PWI+Itia>)(s!3<^)sDYr&Vkj9+eAB(>c-es&%Q>DrYgt zOqNZ@{2MlWzGt7@BfsO|-Hf#BL8lHU9)30}s48);?zEg%aV9D5cMF_2^1lfkP(B-E z-fjElFXNYc0#LT=By}Z;C1rt3( zJ;P+JIo?1uEuJopAr}5`CvW6BY{294KK;_a!YuJwx}`7kEq*TQk-Reb&A|zZpQ4IB z0#LT=By}Z;C1rt3( zJ;P+JIo?1uvpiiKLoEESPPXQ2G2n42mV9tV#QP*`5zB(xYNy^SXa*nXxpvfRH%G9- z5fA^K9$PLYvvWK3S~fIrg{i)oTYPS90#LT=By}Z;C1rt3( zJ;P+JIo?1u-JULvAr}5`gAKVF40!gOUtxbO?1Ha$o%7v4y^EXUZgDm7y?pTOpy~uQ zcP`5XGTb3~jfK{g8k&2JUn#oF+)Ic(oD<5kSK6{M@q25?jD24>^K6>bn`(Q=?0E2j z9dcz6@tXPK`-Cq%+Rgh<|3#tj0>g@FD|gKObP0l+XkKbG>C= diff --git a/Resources/form16_minimise.png b/Resources/form16_minimise.png deleted file mode 100644 index 3bde4b5f9b258bee440ef37d66793ceaa0bbb1cd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 276 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Ea{HEjtmSN`?>!lvI6;>1s;*b z3=DjSL74G){)!Z!phSslL`iUdT1k0gQ7S`0VrE{6US4X6f{C7?o?)`q9B-hSNuDl_ zAr}63CtLHi81T3hOHMNm-k>UeLXb(;cglUopk)n`51W`cgV(f_Em7BbEV*<;@ArNE zhI$JceL2&g2c0^;V8PC1Q`~CUd5xkQlO2)|+k|jD^wwwovBdFL)Yo!Bxuzg}O`EU#py&90#LT=By}Z;C1rt3( zJ;P+JIo?1uQ#@T9LoEF7PTt7ZY{294K0WH+3^k8bZO1h~SrT5~H!!-ed9oLef+aJz zx~+TBoM1Nj0DjT9#5Qj2n>{Dqv@EMvvX6Ukc=mGhiD}|SO{rJiR>oX^6)pC2()rxo zm-4smmOLWiyF$-U7TZrPguwl44f?K*d0)m+BrgIjg3=1o;Ul#t;Z!}}tKZ?cQg g%qhnzTYlTr@ki*KHT#$<40IoZr>mdKI;Vst074IEbN~PV diff --git a/Resources/form16_restore.png b/Resources/form16_restore.png deleted file mode 100644 index b6651db303506754b53656d22adcf3f56efea8c4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 318 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Ea{HEjtmSN`?>!lvI6;>1s;*b z3=DjSK$uZf!>a)(C{f}XQ4*Y=R#Ki=l*&+$n3-3imzP?iV4`QJXPB%t#~Y|-kEe@c zh=u>z$&P$Y1_G`-d#c3qPdHsart8kYe_;w=dBMYFr`4|fFI8|^DsuP7WO1v@Gv_ZW z;YvQUF84M!heFz+TgzVW%57wwy|?&XL;lR>YgGZ46$}E`OxgPFM4Z$IkEPExAC>#I zPx6SwWS&{30uyZ?eOBMGJoPi%j(*`sa(Cih>|CCj$y{)?K&1G8VnFCsWj`r}fB*RE zesSB}6KY<@)_6YX^UYayPuVJbFO&+dt>qJT7vi3^M)rA>i&?qjb&a~2T{mQa{$TKQ L^>bP0l+XkKwy=4S diff --git a/Resources/form16_restore2.png b/Resources/form16_restore2.png deleted file mode 100644 index b61682c370d6d0ad0aaf8717e81cdc60632e2751..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 317 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBugD~Uq{1qucL5ULAh?3y^w370~qEv>0#LT=By}Z;C1rt3( zJ;P+JIo?1u>pWc?LoEESPIlxwq#)q>+~`$ol>@ihE@zMJG7G;N>D?*0>GH>TLX>ZE zTgg*@xt5b3oE!X0-tb-dB`s;+xTK|;-Ky1g>RIK;`eQkvPwokRX-S;qwD!zbrE0?u z6LU0QPxYT{#}nkG<&w>&^jK=m?$VgW1|Jx04nF2y$2!;X_50MXV%PtjNVqMVQ`0K( z*gs8|M}Vj1bd>JCPYeP)nj2O#z0^&72DW!eDnl5 OfWgz%&t;ucLK6UtK0|>3 diff --git a/Resources/mail-ea-32.png b/Resources/mail-ea-32.png deleted file mode 100644 index 1eea9a36f3aaabb111ce238a5d5766f8a48acd6f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 789 zcmV+w1M2*VP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGmbN~PnbOGLGA9w%&0;)+wK~z{r?Uu`H zQ$ZBQCl42bppbVosEck(+~}r4T?mR4T?oZZcP?CYXZt6#;6hx9J8@HqAPTLx5`1hF zs==LtRfBmN@Ga3i{GFM(ms^t9Cf-89d~i7De0S!YZ|2UOM2+y@BVfHoxm-RN3rps^bb|+VY}VFm`o3TWa&SR0#Wz%AkZLcLx;%gS#O2C)|P!@^7Az=_4@DwWDLMC~%v z@Q@l(i{?2}Zx0QxfR^KxoP#7|OV9{#uGy3kjE zgJ?ARtkG!5_Fcg`npElpmZ#|yt3DnMhx0T$V;*VoH*n*LMB<5I`eQ=@f=nj!law4qd${4}p`hVkDl_g8F6fCCEOrKudyWy9!;%(={#<(Z7J`KB>tXS4d52XKd=+CF}l>Ea9e2rixg}guWq#ITzLv7u7ilTmjtY z`?*qI5biO|mf=&g+03TX>35R2uRsWXh7S?SUom%!e1u$5IqBgvA7O-T0Hyu_RyX(C TuKs*000000NkvXXu0mjf2MlOE diff --git a/Resources/raw/icon-set.svg b/Resources/raw/icon-set.svg index bfff9b2..a85547f 100644 --- a/Resources/raw/icon-set.svg +++ b/Resources/raw/icon-set.svg @@ -26,9 +26,9 @@ inkscape:document-rotation="0" inkscape:current-layer="layer1" inkscape:document-units="mm" - inkscape:cy="407.3011" - inkscape:cx="356.66747" - inkscape:zoom="11.2" + inkscape:cy="380.16089" + inkscape:cx="225.9408" + inkscape:zoom="5.9043449" inkscape:pageshadow="2" inkscape:pageopacity="0.0" borderopacity="1.0" @@ -420,7 +420,7 @@ inkscape:export-ydpi="96" inkscape:export-xdpi="96" inkscape:export-filename="L:\gitlab-hiimray\linear-app-launcher\Resources\app_icon_24.png" - transform="matrix(0.4024192,0,0,0.4024192,75.420915,95.566356)" + transform="matrix(0.4024192,0,0,0.4024192,47.691701,86.479192)" id="g1549" style="fill:none;fill-opacity:1;stroke:#545b6b;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/RyzStudio/Drawing/LeftRectangoid.cs b/RyzStudio/Drawing/LeftRectangoid.cs deleted file mode 100644 index b421a98..0000000 --- a/RyzStudio/Drawing/LeftRectangoid.cs +++ /dev/null @@ -1,137 +0,0 @@ -namespace RyzStudio.Drawing -{ - using System.Drawing; - using System.Drawing.Drawing2D; - - public struct LeftRectangoid - { - private int X; - private int Y; - private int Width; - private int Height; - private int Radius; - - public LeftRectangoid(Rectangle rect, int radius) - { - X = rect.X; - Y = rect.Y; - Width = rect.Width; - Height = rect.Height; - Radius = radius; - } - - public LeftRectangoid(Rectangle rect, int radius, int borderWidth) - { - rect.Inflate((-1 * borderWidth), (-1 * borderWidth)); - - X = rect.X; - Y = rect.Y; - Width = rect.Width; - Height = rect.Height; - Radius = radius; - } - - public LeftRectangoid(int x, int y, int width, int height, int radius) - { - X = x; - Y = y; - Width = width; - Height = height; - Radius = radius; - } - - public LeftRectangoid(int x, int y, int width, int height) - { - X = x; - Y = y; - Width = width; - Height = height; - Radius = 0; - } - - public LeftRectangoid(int width, int height, int radius) - { - X = 0; - Y = 0; - Width = width; - Height = height; - Radius = radius; - } - - public LeftRectangoid(int width, int height) - { - X = 0; - Y = 0; - Width = width; - Height = height; - Radius = 0; - } - - public LeftRectangoid(int width) - { - X = 0; - Y = 0; - Width = width; - Height = width; - Radius = 0; - } - - public GraphicsPath ToGraphicsPath() - { - GraphicsPath rv = new GraphicsPath(); - - rv.AddLine(X + Width, Y + Height, X + this.Radius, Y + Height); - - if (this.Radius > 0) - { - rv.AddArc(X, Y + Height - (this.Radius * 2), this.Radius * 2, this.Radius * 2, 90, 90); - } - - rv.AddLine(X, Y + Height - (this.Radius * 2), X, Y + this.Radius); - - if (this.Radius > 0) - { - rv.AddArc(X, Y, this.Radius * 2, this.Radius * 2, 180, 90); - } - - rv.AddLine(X + Width, Y, X + this.Radius, Y); - - return rv; - } - - public GraphicsPath ToClosedGraphicsPath() - { - GraphicsPath rv = new GraphicsPath(); - - rv.AddLine(X + this.Radius, Y, X + Width, Y); - rv.AddLine(X + Width + this.Radius, Y + this.Radius, X + Width + this.Radius, Y + Height); - - rv.AddLine(X + Width + this.Radius, Y + Height, X + this.Radius, Y + Height); - - if (this.Radius > 0) - { - rv.AddArc(X, Y + Height - (this.Radius * 2), this.Radius * 2, this.Radius * 2, 90, 90); - } - - rv.AddLine(X, Y + Height - (this.Radius * 2), X, Y + this.Radius); - - if (this.Radius > 0) - { - rv.AddArc(X, Y, this.Radius * 2, this.Radius * 2, 180, 90); - } - - rv.AddLine(X + Width + this.Radius, Y, X + this.Radius, Y); - - return rv; - } - - public PointF GetOrigin() - { - PointF rv = new PointF(); - rv.X = ((float)Width / 2) + X; - rv.Y = ((float)Height / 2) + Y; - - return rv; - } - } -} \ No newline at end of file diff --git a/RyzStudio/String.cs b/RyzStudio/String.cs deleted file mode 100644 index c6c4510..0000000 --- a/RyzStudio/String.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.IO; -using System.Security.Cryptography; -using System.Text; - -namespace RyzStudio -{ - public class String - { - public static string EncodeTo64(string value) - { - try - { - byte[] toEncodeAsBytes = System.Text.ASCIIEncoding.ASCII.GetBytes(value); - return System.Convert.ToBase64String(toEncodeAsBytes); - } - catch - { - return string.Empty; - } - } - - public static string DecodeFrom64(string value) - { - try - { - byte[] encodedDataAsBytes = System.Convert.FromBase64String(value); - return System.Text.ASCIIEncoding.ASCII.GetString(encodedDataAsBytes); - } - catch - { - return string.Empty; - } - } - } -} \ No newline at end of file diff --git a/RyzStudio/Windows/Forms/Resources/close2_16.png b/RyzStudio/Windows/Forms/Resources/close2_16.png new file mode 100644 index 0000000000000000000000000000000000000000..f9622924b9e482c83c275f97793e93226f9c084d GIT binary patch literal 422 zcmV;X0a^ZuP)pF8FWQhbW?9;ba!ELWdL_~cP?peYja~^aAhuUa%Y?FJQ@H10W(QN zK~y-6mDAr!8(|Oy@ZYQ}?ORl&Xz4{S?UN{`p+r{bb0~d|hDL~Pe2;>?>s={`f1W~U zL#7uS(`pv8&fR?9oHJ*JIg#hK%?z=FQn#4mJF3XqH@uV1g=r^vDuq4iM~NNjBzg`z zc5gUpA$%-QcJBNz{-7*c*~d0B#Uf9UW1DTYO9Xjl!-%m^jBsFkp<;lq_TB2OAc&BeDz)Fjr{>YfPlpk5pF8FWQhbW?9;ba!ELWdL_~cP?peYja~^aAhuUa%Y?FJQ@H10YFJa zK~y-6<Kebc5b18Iyq{=lC6b~QbF=x)U9=JvHyk{s%{Q-OP5NQ z;wD&V=P2oxrTCB>hol|ESIETf7l>X!OTZ+(mL5_bzNyUF1h!ggK>`(J_GB z^-$B1^gGr)pGqjqVo6gkceO!N56^^eQx__{GSb7Mrej>8h3^WltDjW`uKA_V#u=WV zCHz!)5o<1{7XIbtz+e7*yefrx;DM2z(83R#NsrC=oZadbtu7q-ghiYxtthSH6i>}K zoL-nNaiY|YjzM$`l-f9%+}+B5xO#af!=@4X?|z@wU? dzR(r6t^wMyW;@IL8(#nb002ovPDHLkV1lA9#XpF8FWQhbW?9;ba!ELWdL_~cP?peYja~^aAhuUa%Y?FJQ@H10dYx0 zK~y-6jgw7I8$l3-zc(}rcK~68B1JMN%N!($6IdXR$5GBPR<6PHjM;!eVJMe+FsQZ&2*0_|dfeNl%x3rq4#;6!NAhHV^>-X*td zMOZqYe8_skmhJ!)aU#P}0))2C|Au}6A!#bbINi0a-!0pUak|@tT@fhD)18|7s;H(h z&+{bD^Q5Szv8KK%%hR1F1=93jjx@$jH@ElV=JsC1PLalGdN6;8UwJl3ww)cv$xlfi zmxtqT^UI<1)=zc-FdB^{>Dhhm+j^th?Wzg8B4Arvo&5sn8^(sQ61~6qksSYhvHu;R zs?It%^pUFX^UEQ?R%hSX{i-?}0kcO127|*{jML|X^!3;KnQdof`Q_7Ka5#I2Z`}PX zdvl#-e{x9%uA8t4umG<&6(0|;1B-xtVX0Td3Cs0tMK<(+^H7I6OBPAAbOdhyo#A{< a%I*NZkeRH#)tEg10000igP)pF8FWQhbW?9;ba!ELWdL_~cP?peYja~^aAhuUa%Y?FJQ@H10hdWc zK~y-6wUn`IQ&AMgf8Wb}me|Hk!OjW>?4(;ODA_DHMA|6^8;X!Wz;5c$Mb|E+kOpbD zmKHkLEiSfQq+6ka&aK2vYQ*H_9S2{x+(It(n+}|Feth?ybFY?`c1QAs&Z4ji#!W&b zPBGT6joB-gFLV}V_A&@`u75@rexAvkunIs5lP_vB2O+%1`>jdRbPsqIogXt41~C8p z>3$ZDN1+g(E*;?>Bp6oE$c z1qEt#bz>?EPt<5`z5^C6!=0qJu5&i}`s&y(fC?}k$T|Vm3!~|qziu0ekFk0!tpET3 M07*qoM6N<$f-wr@ZU6uP literal 0 HcmV?d00001 diff --git a/RyzStudio/Windows/Forms/Resources/maximise2_20.png b/RyzStudio/Windows/Forms/Resources/maximise2_20.png new file mode 100644 index 0000000000000000000000000000000000000000..490190ad9903dfbcbd3c6b27b6bcbc4f3d083a64 GIT binary patch literal 290 zcmeAS@N?(olHy`uVBq!ia0vp^A|TAc1|)ksWqE-VXMsm#F#`kNVGw3Kp1&dmC@5Lt z8c`CQpH@mmtT}V`<;yxP|V4_ zO1P7SXSVHUujI~^Izd~vC>m=jmuIci=S_YS@#MCo7yFfox3}rKJ?e71KkuIDB)wJV za;4`VI(^@h&+yx?>YDk7)}5VR^!ZTx2gN_~hYB9OW)+bP0l+XkK!n$v# literal 0 HcmV?d00001 diff --git a/RyzStudio/Windows/Forms/Resources/maximise_20.png b/RyzStudio/Windows/Forms/Resources/maximise_20.png new file mode 100644 index 0000000000000000000000000000000000000000..9dc88fbcd2a3c85d219664d37511da1e0f9b244b GIT binary patch literal 319 zcmeAS@N?(olHy`uVBq!ia0vp^A|TAc1|)ksWqE-VXMsm#F#`kNVGw3Kp1&dmC@5Lt z8c`CQpH@mmtT}V`<;yxP|+Dr7sn8b-nUaW@*NBiY1^;t z%d&QE_`zV0?OsbV_b^Jcaj)Jf=ZQoGCS|zle+Krhj$vy z&+k^%p2=~_G0>U)VTaP1Sy>rV)}$zTeckFJxm~IGa^w_64R(cAxAR;1t?cS|W=>cp zctJBI`PC_gJ$cpj_Sd*~O$wJd?_?kGzTw&I-4mbRT6_G1Iq&?ve>CIsXK)uktmkM| zzO!G!SFAg9+xLw>4py=8?7Qgavdpb$UC*g!tOpoh%~~hHvDV9KACvK03&$7YaSMU| OV(@hJb6Mw<&;$VZqkUrl literal 0 HcmV?d00001 diff --git a/RyzStudio/Windows/Forms/Resources/minimise2_20.png b/RyzStudio/Windows/Forms/Resources/minimise2_20.png new file mode 100644 index 0000000000000000000000000000000000000000..c1221e34efef00a2449ebfd889d3a4c5b803f387 GIT binary patch literal 294 zcmeAS@N?(olHy`uVBq!ia0vp^A|TAc1|)ksWqE-VXMsm#F#`kNVGw3Kp1&dmC@5Lt z8c`CQpH@mmtT}V`<;yxP|;>j7sn8b-nUma<}x`7I9xP; zp&1Tc%X-J=?d$))e8cN!_lsJWwlE*pUooM^et)^_&W~+3mmtT}V`<;yxP|;aW7sn8b-nUcs@-aG!xSgNs z+p@JPj@4gr*VK-jJ&dwkyl=1VR=RjIV{gNJ_sG2)p7u25woKq$RIuu#@3S-I&(*?f z>ZhKyJn3;kZoN~xA+E2He6qozy5g9v5-$4`#!q7rIydGt|yN zB$5BRXo`n~-lhM2sx#b#7kuw4Q8L;#X|e4IaX$vV0JD;#2kvaV`hiDE*1~bcD(3A# Pk1=?<`njxgN@xNACK!Jn literal 0 HcmV?d00001 diff --git a/RyzStudio/Windows/ThemedForms/LeftButton.cs b/RyzStudio/Windows/ThemedForms/LeftButton.cs deleted file mode 100644 index ca98f5a..0000000 --- a/RyzStudio/Windows/ThemedForms/LeftButton.cs +++ /dev/null @@ -1,111 +0,0 @@ -namespace RyzStudio.Windows.ThemedForms -{ - using System; - using System.ComponentModel; - using System.Drawing; - - public partial class LeftButton : RyzStudio.Windows.ThemedForms.LeftUserControl - { - protected ButtonState buttonState = ButtonState.Normal; - - public LeftButton() : base() - { - InitializeComponent(); - - label1.ImageAlign = ContentAlignment.MiddleCenter; - - label1.Click += delegate { this.OnClick(null); }; - label1.MouseEnter += delegate { this.VisualState = ButtonState.Hover; }; - label1.MouseLeave += delegate { this.VisualState = ButtonState.Normal; }; - label1.MouseDown += delegate { this.VisualState = ButtonState.Down; }; - label1.MouseUp += delegate { this.VisualState = ButtonState.Normal; }; - } - - protected override void OnLoad(EventArgs e) - { - base.OnLoad(e); - - // customise - this.StyleOver = new ButtonStyle(Color.FromArgb(0, 152, 167), Color.White, this.OverImage); - this.StyleDown = new ButtonStyle(Color.FromArgb(179, 179, 179), Color.Black, this.DownImage); - this.StyleDefault = new ButtonStyle(Color.White, Color.Black, this.DefaultImage); - - //this.StyleOver.ForeImage = this.OverImage; - //this.StyleDown.ForeImage = this.DownImage; - //this.StyleDefault.ForeImage = this.DefaultImage; - - this.VisualState = ButtonState.Normal; - } - - protected ButtonState VisualState - { - get { return buttonState; } - set - { - switch (value) - { - case ButtonState.Normal: - if (this.VisualState == ButtonState.Down) - { - updateButton(StyleOver); - } - else - { - updateButton(StyleDefault); - } - - break; - case ButtonState.Hover: - updateButton(StyleOver); - break; - case ButtonState.Down: - updateButton(StyleDown); - break; - default: - updateButton(StyleDefault); - break; - } - - buttonState = value; - } - } - - protected void updateButton(ButtonStyle style) - { - label1.ForeColor = style.PenColour; - label1.BackColor = style.BackColour; - label1.Image = style.ForeImage; - } - - [Browsable(true)] - [Category("Appearance")] - public string LabelText { get => label1.Text; set => label1.Text = value; } - - [Browsable(true)] - [Category("Appearance")] - public System.Windows.Forms.Label Label { get => label1; set => label1 = value; } - - [Browsable(true)] - [Category("Appearance")] - public Image OverImage { get; set; } = null; - - [Browsable(true)] - [Category("Appearance")] - public Image DownImage { get; set; } = null; - - [Browsable(true)] - [Category("Appearance")] - public Image DefaultImage { get; set; } = null; - - [Browsable(false)] - public ButtonStyle StyleOver { get; set; } = new ButtonStyle(Color.FromArgb(71, 142, 203), Color.FromArgb(250, 250, 250)); - - [Browsable(false)] - public ButtonStyle StyleDown { get; set; } = new ButtonStyle(Color.FromArgb(61, 132, 193), Color.FromArgb(250, 250, 250)); - - [Browsable(false)] - public ButtonStyle StyleDefault { get; set; } = new ButtonStyle(Color.FromArgb(51, 122, 183), Color.FromArgb(250, 250, 250)); - - public void PerformClick() => this.OnClick(null); - } -} \ No newline at end of file diff --git a/RyzStudio/Windows/ThemedForms/LeftButton.designer.cs b/RyzStudio/Windows/ThemedForms/LeftButton.designer.cs deleted file mode 100644 index 6c359d6..0000000 --- a/RyzStudio/Windows/ThemedForms/LeftButton.designer.cs +++ /dev/null @@ -1,61 +0,0 @@ -namespace RyzStudio.Windows.ThemedForms -{ - partial class LeftButton - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Component Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.label1 = new System.Windows.Forms.Label(); - this.SuspendLayout(); - // - // label1 - // - this.label1.Dock = System.Windows.Forms.DockStyle.Fill; - this.label1.Location = new System.Drawing.Point(4, 4); - this.label1.Margin = new System.Windows.Forms.Padding(0); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(121, 25); - this.label1.TabIndex = 0; - this.label1.Text = "label1"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // Button - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.label1); - this.Name = "Button"; - this.Padding = new System.Windows.Forms.Padding(4, 4, 0, 3); - this.Size = new System.Drawing.Size(128, 32); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Label label1; - } -} diff --git a/RyzStudio/Windows/ThemedForms/LeftUserControl.cs b/RyzStudio/Windows/ThemedForms/LeftUserControl.cs deleted file mode 100644 index 89353ec..0000000 --- a/RyzStudio/Windows/ThemedForms/LeftUserControl.cs +++ /dev/null @@ -1,53 +0,0 @@ -namespace RyzStudio.Windows.ThemedForms -{ - using System; - using System.Drawing; - using System.Windows.Forms; - using RyzStudio.Drawing; - using System.ComponentModel; - - public partial class LeftUserControl : System.Windows.Forms.UserControl - { - protected ThemeStyle styleActive = new ThemeStyle(1, 3, 2, Color.FromArgb(212, 212, 212), Color.White); - - public LeftUserControl() - { - InitializeComponent(); - } - - protected override void OnLoad(EventArgs e) - { - base.OnLoad(e); - - this.BackColor = Color.Transparent; - } - - - protected override void OnPaintBackground(PaintEventArgs e) - { - base.OnPaintBackground(e); - - Graphics g = e.Graphics; - //// g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic; - //// g.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality; - //// g.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.HighQuality; - //// g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; - - updateBackground(g, styleActive); - } - - [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] - public new Padding Padding { get => base.Padding; set => base.Padding = value; } - - protected virtual void updateBackground(Graphics g, ThemeStyle style) - { - int b = (styleActive.BorderWidth + 1) + styleActive.BorderPadding; - - this.Padding = new Padding(b, b, 0, (b - 1)); - - LeftRectangoid area = new LeftRectangoid(this.ClientRectangle, style.BorderRadius, style.BorderWidth); - g.FillPath(new SolidBrush(style.BackColour), area.ToClosedGraphicsPath()); - g.DrawPath(new Pen(new SolidBrush(style.BorderColour), style.BorderWidth), area.ToGraphicsPath()); - } - } -} \ No newline at end of file diff --git a/RyzStudio/Windows/ThemedForms/LeftUserControl.designer.cs b/RyzStudio/Windows/ThemedForms/LeftUserControl.designer.cs deleted file mode 100644 index 792cd21..0000000 --- a/RyzStudio/Windows/ThemedForms/LeftUserControl.designer.cs +++ /dev/null @@ -1,37 +0,0 @@ -namespace RyzStudio.Windows.ThemedForms -{ - partial class LeftUserControl - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Component Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - components = new System.ComponentModel.Container(); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - } - - #endregion - } -} diff --git a/RyzStudio/Windows/ThemedForms/ProgressBar.Designer.cs b/RyzStudio/Windows/ThemedForms/ProgressBar.Designer.cs deleted file mode 100644 index 032705b..0000000 --- a/RyzStudio/Windows/ThemedForms/ProgressBar.Designer.cs +++ /dev/null @@ -1,72 +0,0 @@ -namespace RyzStudio.Windows.ThemedForms -{ - partial class ProgressBar - { - private System.ComponentModel.IContainer components = null; - - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Component Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.label3 = new System.Windows.Forms.Label(); - this.userControl1 = new RyzStudio.Windows.ThemedForms.ProgressBarInner(); - this.SuspendLayout(); - // - // label3 - // - this.label3.BackColor = System.Drawing.Color.Transparent; - this.label3.Dock = System.Windows.Forms.DockStyle.Fill; - this.label3.Font = new System.Drawing.Font("Segoe UI", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label3.Location = new System.Drawing.Point(4, 4); - this.label3.Margin = new System.Windows.Forms.Padding(0); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(803, 47); - this.label3.TabIndex = 144; - this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // userControl1 - // - this.userControl1.BarColour = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(225)))), ((int)(((byte)(249))))); - this.userControl1.Dock = System.Windows.Forms.DockStyle.Fill; - this.userControl1.Location = new System.Drawing.Point(4, 4); - this.userControl1.Margin = new System.Windows.Forms.Padding(0); - this.userControl1.Maximum = 100; - this.userControl1.Minimum = 0; - this.userControl1.Name = "userControl1"; - this.userControl1.Size = new System.Drawing.Size(803, 47); - this.userControl1.TabIndex = 145; - this.userControl1.Value = 50; - // - // ProgressBar - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.userControl1); - this.Controls.Add(this.label3); - this.Margin = new System.Windows.Forms.Padding(0); - this.Name = "ProgressBar"; - this.Padding = new System.Windows.Forms.Padding(4, 4, 3, 3); - this.Size = new System.Drawing.Size(810, 54); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Label label3; - private ProgressBarInner userControl1; - } -} diff --git a/RyzStudio/Windows/ThemedForms/ProgressBar.cs b/RyzStudio/Windows/ThemedForms/ProgressBar.cs deleted file mode 100644 index 6660601..0000000 --- a/RyzStudio/Windows/ThemedForms/ProgressBar.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System; -using System.Drawing; - -namespace RyzStudio.Windows.ThemedForms -{ - public partial class ProgressBar : RyzStudio.Windows.ThemedForms.UserControl - { - public ProgressBar() : base() - { - InitializeComponent(); - - styleActive = new ThemeStyle(1, 3, 2, Color.FromArgb(212, 212, 212), Color.White); - } - - public int Minimum { get => userControl1.Minimum; set => userControl1.Minimum = value; } - public int Maximum { get => userControl1.Maximum; set => userControl1.Maximum = value; } - public int Value { get => userControl1.Value; set => userControl1.Value = value; } - - public Color BarColour { get => userControl1.BarColour; set => userControl1.BarColour = value; } - public Color BarTextColour { get => userControl1.BarTextColour; set => userControl1.BarTextColour = value; } - - protected override void OnSizeChanged(EventArgs e) - { - base.OnSizeChanged(e); - - this.Invalidate(); - } - } -} diff --git a/RyzStudio/Windows/ThemedForms/ProgressBar.resx b/RyzStudio/Windows/ThemedForms/ProgressBar.resx deleted file mode 100644 index 1af7de1..0000000 --- a/RyzStudio/Windows/ThemedForms/ProgressBar.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/RyzStudio/Windows/ThemedForms/ProgressBarInner.Designer.cs b/RyzStudio/Windows/ThemedForms/ProgressBarInner.Designer.cs deleted file mode 100644 index 8a0fc5c..0000000 --- a/RyzStudio/Windows/ThemedForms/ProgressBarInner.Designer.cs +++ /dev/null @@ -1,63 +0,0 @@ -namespace RyzStudio.Windows.ThemedForms -{ - partial class ProgressBarInner - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Component Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.label3 = new System.Windows.Forms.Label(); - this.SuspendLayout(); - // - // label3 - // - this.label3.BackColor = System.Drawing.Color.Transparent; - this.label3.Dock = System.Windows.Forms.DockStyle.Fill; - this.label3.Font = new System.Drawing.Font("Segoe UI", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label3.Location = new System.Drawing.Point(4, 4); - this.label3.Margin = new System.Windows.Forms.Padding(0); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(803, 47); - this.label3.TabIndex = 144; - this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // ProgressBarInner - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.label3); - this.Margin = new System.Windows.Forms.Padding(0); - this.Name = "ProgressBarInner"; - this.Padding = new System.Windows.Forms.Padding(4, 4, 3, 3); - this.Size = new System.Drawing.Size(810, 54); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Label label3; - } -} diff --git a/RyzStudio/Windows/ThemedForms/ProgressBarInner.cs b/RyzStudio/Windows/ThemedForms/ProgressBarInner.cs deleted file mode 100644 index acf6004..0000000 --- a/RyzStudio/Windows/ThemedForms/ProgressBarInner.cs +++ /dev/null @@ -1,197 +0,0 @@ -using System; -using System.Drawing; -using System.Windows.Forms; - -namespace RyzStudio.Windows.ThemedForms -{ - public partial class ProgressBarInner : System.Windows.Forms.UserControl - { - protected int minimum = 0; - protected int maximum = 100; - protected int value = 0; - - public ProgressBarInner() : base() - { - InitializeComponent(); - - this.Padding = new Padding(0); - } - - public int Minimum - { - get - { - return minimum; - } - set - { - if (this.InvokeRequired) - { - this.Invoke(new MethodInvoker(() => { - setMinimum(value); - })); - } - else - { - setMinimum(value); - } - } - } - - public int Maximum - { - get - { - return maximum; - } - set - { - if (this.InvokeRequired) - { - this.Invoke(new MethodInvoker(() => { - setMaximum(value); - })); - } - else - { - setMaximum(value); - } - } - } - - public int Value - { - get - { - return value; - } - set - { - if (this.InvokeRequired) - { - this.Invoke(new MethodInvoker(() => { - setValue(value); - })); - } - else - { - setValue(value); - } - } - } - - public Color BarColour { get; set; } = Color.FromArgb(158, 225, 249); - - public Color BarTextColour - { - get => label3.ForeColor; - set => label3.ForeColor = value; - } - - protected override void OnPaint(PaintEventArgs e) - { - base.OnPaint(e); - - Rectangle canvas = this.DisplayRectangle; - Graphics g = e.Graphics; - - if (this.Value > 0) - { - decimal result = decimal.Divide(canvas.Width, this.Maximum) * this.Value; - - canvas.Width = (int)Math.Round(result); - - g.FillRectangle(new SolidBrush(this.BarColour), canvas); - } - } - - protected void updateText() - { - if (label3.InvokeRequired) - { - label3.Invoke(new MethodInvoker(() => - { - label3.Text = string.Format("{0}/{1}", this.Value.ToString(), this.Maximum.ToString()); - })); - } - else - { - label3.Text = string.Format("{0}/{1}", this.Value.ToString(), this.Maximum.ToString()); - } - } - - protected void setMinimum(int value) - { - int m = value; - if (m < 0) - { - m = 0; - } - - if (m > this.Maximum) - { - m = this.Maximum; - } - - if (this.Value < m) - { - this.Value = m; - } - - if (this.value > this.Maximum) - { - this.value = this.Maximum; - } - - minimum = m; - updateText(); - this.Invalidate(); - } - - protected void setMaximum(int value) - { - int m = value; - if (m < 0) - { - m = 0; - } - - if (m < this.Minimum) - { - m = this.Minimum; - } - - if (this.Value > m) - { - this.Value = m; - } - - if (this.value < this.Minimum) - { - this.value = this.Minimum; - } - - maximum = m; - updateText(); - this.Invalidate(); - } - - protected void setValue(int value) - { - int m = value; - if (m < this.Minimum) - { - m = this.Minimum; - } - - if (m > this.Maximum) - { - m = this.Maximum; - } - - this.value = m; - updateText(); - this.Invalidate(); - } - } -} diff --git a/RyzStudio/Windows/ThemedForms/ProgressBarInner.resx b/RyzStudio/Windows/ThemedForms/ProgressBarInner.resx deleted file mode 100644 index 1af7de1..0000000 --- a/RyzStudio/Windows/ThemedForms/ProgressBarInner.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/RyzStudio/Windows/ThemedForms/TDialogForm.Designer.cs b/RyzStudio/Windows/ThemedForms/TDialogForm.Designer.cs index e4d8f2a..9e42867 100644 --- a/RyzStudio/Windows/ThemedForms/TDialogForm.Designer.cs +++ b/RyzStudio/Windows/ThemedForms/TDialogForm.Designer.cs @@ -50,12 +50,12 @@ this.imgbxClose.BackColor = System.Drawing.Color.Transparent; this.imgbxClose.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; this.imgbxClose.ErrorImage = null; - this.imgbxClose.HighlightImage = global::AppLauncher.Properties.Resources.form16_close2; - this.imgbxClose.Image = global::AppLauncher.Properties.Resources.form16_close; + this.imgbxClose.HighlightImage = global::AppLauncher.Resource1.close2_16; + this.imgbxClose.Image = null; this.imgbxClose.InitialImage = null; this.imgbxClose.Location = new System.Drawing.Point(308, 4); this.imgbxClose.Name = "imgbxClose"; - this.imgbxClose.NormalImage = global::AppLauncher.Properties.Resources.form16_close; + this.imgbxClose.NormalImage = global::AppLauncher.Resource1.close_16; this.imgbxClose.Size = new System.Drawing.Size(24, 24); this.imgbxClose.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.imgbxClose.TabIndex = 145; diff --git a/RyzStudio/Windows/ThemedForms/res/button16_file_add.png b/RyzStudio/Windows/ThemedForms/res/button16_file_add.png deleted file mode 100644 index ecd378d0f0b53c05c9b43f1321f3fca5931e1618..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 426 zcmV;b0agBqP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D02p*dSaefwW^{L9 za%BK;VQFr3E^cLXAT%y9E-_;&oJ#-z0UJp~K~y+Tm6K0S!ax*8!2w(5eVF4(#xEJ%cw{s|@N%BWkHT04HPOidY!ZGXwHZ|1!>U#HECrIfNf z&l~KHO0Y8Ry6zq~tej+>IDOFM;SIhn@C%Ct{FsNBfP~_euAPY5irNy#j2|+H36O36 z2bepKGiLlnT!dlRtOdXaJY(?_F(KM@05{auIltnhGQbpXpV0qZ3Si!$`QEnewoaw0 z44`o+c{w9Gm8ujF1VNASl*T)qzm+-eRss-5%-`{c;M36CjuA85dn9(^~+iCsAK#f&9731>OO;JOY&U16sX6 UJW#J(y8r+H07*qoM6N<$f^=!BKL7v# diff --git a/RyzStudio/Windows/ThemedForms/res/button16_file_add2.png b/RyzStudio/Windows/ThemedForms/res/button16_file_add2.png deleted file mode 100644 index 63f8d49364266d48529b124397241fb677ce7056..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 371 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBugD~Uq{1qucL5ULAh?3y^w370~qEv>0#LT=By}Z;C1rt3( zJ;P+JIo?1uPdr^5LoEEaUf#=hFo5CcN56=fN0>X*1twPT@+%4PE65${I(Q<%w9E04 za+1L61k<2b^{X=01N{-vy~xw z#g6{;&d3GqTDv$;NGRWUaZuNgyX0rs1y{**9)bR-4UWRjFS5l0xn9lq@ur|RC}COG zX?<4Bk_jd0>;J?Av|QWj{)bcd#DYe%E%!b>%hXuNswz{^a?SMJLj9nB|GE306gXX* zyH_aUL#DR+o{RFLH_{sUE{iy}pENms+wV&KDwoLyR^NVBHzwa@XgvMeVr}{)H=utR NJYD@<);T3K0RS__kv9MU diff --git a/RyzStudio/Windows/ThemedForms/res/button16_folder_add.png b/RyzStudio/Windows/ThemedForms/res/button16_folder_add.png deleted file mode 100644 index 09bf8d4f97cbcb5d9894dda5e06ddf0ac009a6a7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 463 zcmV;=0WkiFP)opI1LJMW-4%^altxiI}0Ae?o96Zl%z< zP>}us7rPc*Bq<%cckJZW#zN0Ggv?qRp>u}hd%HyVP`?}S9nXEwbKi3hR}rxXdfmTp4=73Y zm>XC2avC+kfsiHv(2GBqDYty+|pYJmzZz)RKI&y_544l9skN84nJ z@ErkR#;MwT(m+AU64!{5;QX|b^2DN4hVt@qz0ADq;^f4FRK5J7^x5xhq=1T^dAc}; zSoAKvyw{7_QKapm`mR);r3nvNSz0(W-|XSc=GH$fec{xt32s6gw)khJKIcz*%DN&# z!c*Q{%$Pg-#$C=|2NP!)f8JZ1aIVqTM)CL}k@T*^`mQ_qp-qK!L;mp1Fk63Rh zziiLU3zyvw#pno$ie|Z`D{ Bh}!@F diff --git a/RyzStudio/Windows/ThemedForms/res/button16_refresh.png b/RyzStudio/Windows/ThemedForms/res/button16_refresh.png deleted file mode 100644 index 2fce7d15805f4251ce2189c6a05931e9bc1d2056..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 639 zcmV-_0)YLAP)#wTb_HL zhkMTDh@RAHwNelSv%oYkD#>%seF5$UL2!L!WaKx%!oosvaB#4yjc^>thk*OQ4oMHp z?4zU%IBaG!z>=ArtyC(XqbRx{>DIa+ilV)e-kVwC`~GyfTwdHLPt$bRIrk8#08^6o znAuG)zaZ%v@S{*Doau!D%H{Inz`(#H@D6xpW}^TeK$0Z;fk`u)8yg#I^}=~pR#t}0 z?2@EUz#QQ90c2VB-S_>uFbtn=1;=rG0(c2vW_j7P70{bntyU-&i^nB-Ym$PbKxvwu zGqXRER@V+(yWM^>K0dzsKjJ>;+#^66o<$G@CxKU+0cNHoNiKK0-P_e_b;$!Vpd;zE znU&3KcNm77!T@m`p9bcA-yep5zu&3(IL@BhQ{3E3-ebR0S6 zu4*QBZBg$>#||Ogviu##3W^gF%hS%Cxp_14UozA09Y?M03Y%?3f(uzgexLNNIHJwB zv3u^0{~h~wO6(Tp{$kK9K4-CwL!_kdmVm=%w_Y|F-$|@tuymADH$3TRb&#oU!!*Y> zuC&Fc%&a;WtC;9bcU*T|>E+e4N?($Bv?V;}ezweUv5dcX@u=%785&VaT<2QZLfb@Q`dyz1J4aVcn)bn^m8VGXyM?dx?Lz@qk|ufk@G1Cn?yWplk|c9< z`-Kf^(+YdoWgcoB(@7Hcj}Ud+)t)u~O`%DF?wS9yKWvoxSEu%YdxN`sezJYbMA Nc)I$ztaD0e0ssj+q(T4y diff --git a/RyzStudio/Windows/ThemedForms/res/form16_close.png b/RyzStudio/Windows/ThemedForms/res/form16_close.png deleted file mode 100644 index 6cfa679bd607c6b908b548bcf40bc01d1a39548b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 347 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Ea{HEjtmSN`?>!lvI6;>1s;*b z3=DjSL74G){)!Z!phSslL`iUdT1k0gQ7S`0VrE{6US4X6f{C7?o?)`q9B-hSo1QL? zAr}5igQNMH37r$1dW zIV&sUDDL@9toFVQbZW|Ifgf?i&Hz>~gTDkOAk z`MKOFQpc`Lsbb;%kXUv?{()#S=gApT*;(Au1*T7A7R>AH$^3Co^wS6J6GzNDB)7Pv z_OFyPda!NzRM~%*&PMGHz1eKMrdA^3>;L$~ukI>ge~(3+;dPVqetB_*{8J_wl?z|h pum0ZUvu6@V#-=Y;&ttF4&I{z{Ir%_twL8$044$rjF6*2UngAD?hj;)0 diff --git a/RyzStudio/Windows/ThemedForms/res/form16_close2.png b/RyzStudio/Windows/ThemedForms/res/form16_close2.png deleted file mode 100644 index e29862795b75be961aeb829c660687489eab467a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 352 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBugD~Uq{1qucL5ULAh?3y^w370~qEv>0#LT=By}Z;C1rt3( zJ;P+JIo?1u7d>4ZLoEE421oNX83@RHRXXOfS8e%%wVj9frxfshaH*LU@jXz;XN_j! zB+a*FWf2+T8o#xB>JR-AH%ytdRXOi2t6^o+=klsuI;+Z*_!c}=ZQQ!yt#eW4gGn(w z&z)Cu?&m%AtVN)#kacEpPUn)wkM2?XJ4L&a^q*KBugG`1)Np?pC*!iUt*ch{!PC{xWt~$(69BD)iE;n{ diff --git a/RyzStudio/Windows/ThemedForms/res/form16_maximise.png b/RyzStudio/Windows/ThemedForms/res/form16_maximise.png deleted file mode 100644 index 93017d3887c4f870863df4fbb72e98c6454d5edb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 300 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBugD~Uq{1qucL5ULAh?3y^w370~qEv>0#LT=By}Z;C1rt3( zJ;P+JIo?1ub3I)gLoED{PWI+Itia>)(s!3<^)sDYr&Vkj9+eAB(>c-es&%Q>DrYgt zOqNZ@{2MlWzGt7@BfsO|-Hf#BL8lHU9)30}s48);?zEg%aV9D5cMF_2^1lfkP(B-E z-fjElFXNYc0#LT=By}Z;C1rt3( zJ;P+JIo?1uEuJopAr}5`CvW6BY{294KK;_a!YuJwx}`7kEq*TQk-Reb&A|zZpQ4IB z0#LT=By}Z;C1rt3( zJ;P+JIo?1uvpiiKLoEESPPXQ2G2n42mV9tV#QP*`5zB(xYNy^SXa*nXxpvfRH%G9- z5fA^K9$PLYvvWK3S~fIrg{i)oTYPS90#LT=By}Z;C1rt3( zJ;P+JIo?1u-JULvAr}5`gAKVF40!gOUtxbO?1Ha$o%7v4y^EXUZgDm7y?pTOpy~uQ zcP`5XGTb3~jfK{g8k&2JUn#oF+)Ic(oD<5kSK6{M@q25?jD24>^K6>bn`(Q=?0E2j z9dcz6@tXPK`-Cq%+Rgh<|3#tj0>g@FD|gKObP0l+XkKbG>C= diff --git a/RyzStudio/Windows/ThemedForms/res/form16_minimise.png b/RyzStudio/Windows/ThemedForms/res/form16_minimise.png deleted file mode 100644 index 3bde4b5f9b258bee440ef37d66793ceaa0bbb1cd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 276 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Ea{HEjtmSN`?>!lvI6;>1s;*b z3=DjSL74G){)!Z!phSslL`iUdT1k0gQ7S`0VrE{6US4X6f{C7?o?)`q9B-hSNuDl_ zAr}63CtLHi81T3hOHMNm-k>UeLXb(;cglUopk)n`51W`cgV(f_Em7BbEV*<;@ArNE zhI$JceL2&g2c0^;V8PC1Q`~CUd5xkQlO2)|+k|jD^wwwovBdFL)Yo!Bxuzg}O`EU#py&90#LT=By}Z;C1rt3( zJ;P+JIo?1uQ#@T9LoEF7PTt7ZY{294K0WH+3^k8bZO1h~SrT5~H!!-ed9oLef+aJz zx~+TBoM1Nj0DjT9#5Qj2n>{Dqv@EMvvX6Ukc=mGhiD}|SO{rJiR>oX^6)pC2()rxo zm-4smmOLWiyF$-U7TZrPguwl44f?K*d0)m+BrgIjg3=1o;Ul#t;Z!}}tKZ?cQg g%qhnzTYlTr@ki*KHT#$<40IoZr>mdKI;Vst074IEbN~PV diff --git a/RyzStudio/Windows/ThemedForms/res/form16_restore.png b/RyzStudio/Windows/ThemedForms/res/form16_restore.png deleted file mode 100644 index b6651db303506754b53656d22adcf3f56efea8c4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 318 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Ea{HEjtmSN`?>!lvI6;>1s;*b z3=DjSK$uZf!>a)(C{f}XQ4*Y=R#Ki=l*&+$n3-3imzP?iV4`QJXPB%t#~Y|-kEe@c zh=u>z$&P$Y1_G`-d#c3qPdHsart8kYe_;w=dBMYFr`4|fFI8|^DsuP7WO1v@Gv_ZW z;YvQUF84M!heFz+TgzVW%57wwy|?&XL;lR>YgGZ46$}E`OxgPFM4Z$IkEPExAC>#I zPx6SwWS&{30uyZ?eOBMGJoPi%j(*`sa(Cih>|CCj$y{)?K&1G8VnFCsWj`r}fB*RE zesSB}6KY<@)_6YX^UYayPuVJbFO&+dt>qJT7vi3^M)rA>i&?qjb&a~2T{mQa{$TKQ L^>bP0l+XkKwy=4S diff --git a/RyzStudio/Windows/ThemedForms/res/form16_restore2.png b/RyzStudio/Windows/ThemedForms/res/form16_restore2.png deleted file mode 100644 index b61682c370d6d0ad0aaf8717e81cdc60632e2751..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 317 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBugD~Uq{1qucL5ULAh?3y^w370~qEv>0#LT=By}Z;C1rt3( zJ;P+JIo?1u>pWc?LoEESPIlxwq#)q>+~`$ol>@ihE@zMJG7G;N>D?*0>GH>TLX>ZE zTgg*@xt5b3oE!X0-tb-dB`s;+xTK|;-Ky1g>RIK;`eQkvPwokRX-S;qwD!zbrE0?u z6LU0QPxYT{#}nkG<&w>&^jK=m?$VgW1|Jx04nF2y$2!;X_50MXV%PtjNVqMVQ`0K( z*gs8|M}Vj1bd>JCPYeP)nj2O#z0^&7@5%L83 z7}{xyG|6k|6QoGGvr*Cn4;JQ5;Zm!d4^{%)cPoKFW@c}bBpH`wIRZ$MWNc$={_vTO_#yk)#WtYCH4{TQA{ZI4(y}r%b2Q?Phr`@BKI6;0cNY_?l)}c2rfB j0eir!j?gu5Ea~%KuA-xrUypO700000NkvXXu0mjfbe`0` diff --git a/RyzStudio/Windows/ThemedForms/res/form20_close2.png b/RyzStudio/Windows/ThemedForms/res/form20_close2.png deleted file mode 100644 index 06c113d37b256d002db456ec3d53c8bb7a46baf8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 386 zcmeAS@N?(olHy`uVBq!ia0vp^A|TAc1|)ksWqE-VV{wqX6T`Z5GB1G~mUKs7M+SzC z{oH>NS%G}c0*}aI1_r*vAk26?e?&q9iy!t)x7$D3zfgF*C13FE6!3!9>qc z&oEhQjyF)vXHOT$5DWjSQysYu83?$hhx#vg5qjl!WGvUDE3MqE%bqdB9hkc#DB!}@ zy=`f;3bULYe0RTWZuD2HRq^#?e72kKL13b zEbMr@qJZP8!@{lCTW#NpdTljVFK5~K?qWw}xY}chZ!!D0TCD=!$8>Bk0P$`dKA5<4 zx58%OulZ@I;-|tRUf7-0O5|tf*U)uMOTBql+Zm{WnX7db*W|MeyF!7SgLgOmxUtFq zlpG&lue{ge`DgcU@yb}Qzo*H`^U}uB2VYyw-`Qc YkBe4KzRuQc2=qRKr>mdKI;Vst0MZbgxBvhE diff --git a/RyzStudio/Windows/ThemedForms/res/form20_maximise.png b/RyzStudio/Windows/ThemedForms/res/form20_maximise.png deleted file mode 100644 index 3895c4296b4425c526f6fc01fbd69bfa9dbb7184..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 280 zcmeAS@N?(olHy`uVBq!ia0vp^A|TAc1|)ksWqE-VV{wqX6T`Z5GB1G~mUKs7M+SzC z{oH>NS%G}c0*}aI1_r*vAk26?e?&q9iy!t)x7$D3zfgF*C13FE6!3!9>qc z&oEhQjyF(Er>Bc!h=u>#sfK(F3OueeKlnZR%d-A(-~wUexW!^YJk5M2$BrDCUc;nW zo2aF=)P(VXSn?fB4WE~#PcC+)hEG@7*fs6fCV@k1S_1YbChE0kJ)bq>@@MX&cewU` zch20S?s8NS%G}c0*}aI1_r*vAk26?e?&q9iy!t)x7$D3zfgF*C13FE6!3!9>qc z&oEhQjyF(Em#2$kh=u>#tG;{=1|lpEA`8{;oIihQnT3Nl{{y#}#Wwt$FP-L1@bEF( z{mnZ(c)=UzkX;U`$9DSN5GQrGy=&t{&}Pc*a5Db@^uN{DyNo zy=|Yc*I(eDQ+;B)W8gfN%6%D4OIDU1Vmm9Y`*zv=wU;#O8Cxd3vo2X$W8S>=AWK|T W_RJaj${T>LV(@hJb6Mw<&;$Sy-(&Rv diff --git a/RyzStudio/Windows/ThemedForms/res/form20_menu.png b/RyzStudio/Windows/ThemedForms/res/form20_menu.png deleted file mode 100644 index 39281437a7247c228ec5a58958769f7d90204868..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 296 zcmeAS@N?(olHy`uVBq!ia0vp^A|TAc1|)ksWqE-VOS+@4BLl<6e(pbstUx|zfk$L9 z0|Vb75M~tB@M-`GN|d-plmzFem6RtIr7{#GX6BXX<)xM=nCKbm876DZ@dm0{=IP=X zV&VUE>OtOS10L7nMb?hrwM*vq9N_5mx4dk6YI|z9jK`7)(N$OUYmf9lR(CkTxpa!O zpl$Iv{U2{lzUw{UaZF5~Z8MKq?^BBAQbUW@f1Zuf>>w zGuW^*h$W7dJ4AzxxsU#Zev<77U)QelF{r5}E*-JZ)D1 diff --git a/RyzStudio/Windows/ThemedForms/res/form20_menu2.png b/RyzStudio/Windows/ThemedForms/res/form20_menu2.png deleted file mode 100644 index cc52e787c1f97ce1d49a7710247402805918a7cc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 298 zcmeAS@N?(olHy`uVBq!ia0vp^A|TAc1|)ksWqE-VV{wqX6T`Z5GB1G~mUKs7M+SzC z{oH>NS%G}c0*}aI1_r*vAk26?e?&q9iy!t)x7$D3zfgF*C13FE6!3!9>qc z&oEhQjyF)vY)==*5DWk0gc)0U=O!N8q}L{SdOqXFdZUlVZ8Np4B*WGwB{xX5`3hR@ zV9rpulDc_XwBZEqW$U-F%{Hw489bp;;IbxbLGg>E2R%>QA3oagF>yr}M?Qv;Y7fM lmp4QNn-#09C4km4Gfc5MlE+m4Y9r8@44$rjF6*2UngFETWkUb} diff --git a/RyzStudio/Windows/ThemedForms/res/form20_minimise.png b/RyzStudio/Windows/ThemedForms/res/form20_minimise.png deleted file mode 100644 index 366da415aa7c1a7c6d1f18aeb4eec5a5ad3fbd5c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 289 zcmeAS@N?(olHy`uVBq!ia0vp^A|TAc1|)ksWqE-VV{wqX6T`Z5GB1G~mUKs7M+SzC z{oH>NS%G}c0*}aI1_r*vAk26?e?&q9iy!t)x7$D3zfgF*C13FE6!3!9>qc z&oEhQjyF)vBu^K|5DWjeQ*HSg6nI)^e(`(t*Jb@-K^vx$q+{6`nO#;IoV`{bC%M14 zFTQNip6|L0XU^>u-ODMPuKvWNE3w>HD7%$?@0qCEnhOi|r6+VSUfij6?chp>jdG30 zW+1_70tPtjmtxDqb70BbYty!mn8t6^E5;87n$36lhMd eI+w+eQT91=VeHo5PqqME$KdJe=d#Wzp$Py@K4NS%G}c0*}aI1_r*vAk26?e?&q9iy!t)x7$D3zfgF*C13FE6!3!9>qc z&oEhQjyF)vJWm(L5DWjeQyux53W1!(Z}pSu69FTe-se2O^(HoifNRZS3T^ zG*$nnr}4~vC11Jc*?Yc zV&VUG>OtN^20X5Zm%eei**~q+h|yTZ?rF?1jhg5(5ywWAM=d`tNS%G}c0*}aI1_r*vAk26?e?&q9iy!t)x7$D3zfgF*C13FE6!3!9>qc z&oEhQjyF)v7Ec$)5DWjeQxEbUGT?E&>wS~+M*pFS-naNBIIumqm-s@$)R3=jgwKI-;c)ys+zUePTz&lgD#iX1FW=`M6b6 z@uc}eEqN!oc$20rFW=0QHQASOY2O=f!*2)t89YzU%hqcApL^i5P)xK~y-6g_ALe+(j70e{c36f*7kDVrxYBf4hqi!B{B7GN?sj z@WAH4$O$3@vVKU}^TD=CDTk-i=|cdmwRK6?BwcH*eGD+2 zP9H6$JZW2Voc4h?fs>N%*uDguk#w}RwkK%|_!L+H4ggn%!{Mm~LC<>K_6eYqbQ1U? zBF+KioZn6`#0c9YwfY|czk0CK+?~)@1~TNBjP-8{$Elr^i9tBJ>d3WFt`P< z1kiQePomJGM^)M8r8s zN9XA*^{(FD+uQp^lK1J>eP*}T_U2YAAH}M@w zTauoUv^IYSsn+^oYwhXLXmkXi);gT84Qxb2=_CKz_7B71aCNcM?(Xivob#Q@Wb!Wm zQ>B!(obz9$lt&gZ&StY^;2=;ZlgS$?r4`#(BjN)|E~T8ceG2&8_IJR6*4i>~b74-- zc@uaUxGU+h?bVdhG26e|F2F~UUbX!&uo)4rNc!hf*jCPYlv27C5jS(r71#xS2VRVb zLpwV=56)(@L*w!I#vHe_$mw2$+xz6cDe0o^2W-DCsR4iVy{NwdQgAt!(CbSJCfcJo*|=qi;4l8H-~IFR_h<0Qcb; z-r)(R6ML%;a3kn5y=JY+JPvWK=~%_v+W#n)^V&80c1G;V1AN9AW@Ed9zX|>ry#iUx z2wir*Vhi`3v$CATR^ASl;%h0(UB_MvSCq}~`=6R7#g%l@ZPzx9gE;15Yp3lUh4VkS z9pCfB?%`nt(!vTp)GD>p_EIgGLg$)>^y65$fs15Dp?t8aOgYbfg^j1F@}f59oWjUF zek*$$Xd-WBwo~OM&J<=wVt=hHyMv7iyt(O7{KAiP^F_J3N4Sow`R-m~R1*pOj>o-% Z{sE_RS^{qBODF&U002ovPDHLkV1gS5*=_&; diff --git a/RyzStudio/Windows/ThemedForms/res/settings16_white.png b/RyzStudio/Windows/ThemedForms/res/settings16_white.png deleted file mode 100644 index 7b49593285474a61853ac51a1424b569fdc8e77d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 516 zcmV+f0{i`mP) - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Component Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.components = new System.ComponentModel.Container(); - this.label1 = new System.Windows.Forms.Label(); - this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); - this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); - this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripMenuItem(); - this.topToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.upToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.downToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.bottomToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); - this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripMenuItem(); - this.pictureBox1 = new System.Windows.Forms.PictureBox(); - this.toolStripMenuItem5 = new System.Windows.Forms.ToolStripMenuItem(); - this.contextMenuStrip1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); - this.SuspendLayout(); - // - // label1 - // - this.label1.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.label1.BackColor = System.Drawing.Color.Transparent; - this.label1.ContextMenuStrip = this.contextMenuStrip1; - this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))); - this.label1.Location = new System.Drawing.Point(25, 0); - this.label1.Margin = new System.Windows.Forms.Padding(0); - this.label1.MinimumSize = new System.Drawing.Size(20, 20); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(575, 20); - this.label1.TabIndex = 8; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - this.label1.MouseClick += new System.Windows.Forms.MouseEventHandler(this.panel_MouseClick); - this.label1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.panel_MouseClick); - // - // contextMenuStrip1 - // - this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.toolStripMenuItem2, - this.toolStripMenuItem5, - this.toolStripMenuItem1, - this.toolStripSeparator2, - this.toolStripMenuItem4, - this.toolStripSeparator1, - this.toolStripMenuItem3}); - this.contextMenuStrip1.Name = "contextMenuStrip1"; - this.contextMenuStrip1.Size = new System.Drawing.Size(181, 148); - // - // toolStripMenuItem2 - // - this.toolStripMenuItem2.Name = "toolStripMenuItem2"; - this.toolStripMenuItem2.Size = new System.Drawing.Size(180, 22); - this.toolStripMenuItem2.Text = "&Add Group"; - this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click); - // - // toolStripMenuItem1 - // - this.toolStripMenuItem1.Name = "toolStripMenuItem1"; - this.toolStripMenuItem1.Size = new System.Drawing.Size(180, 22); - this.toolStripMenuItem1.Text = "&Edit"; - this.toolStripMenuItem1.Click += new System.EventHandler(this.toolStripMenuItem1_Click); - // - // toolStripSeparator2 - // - this.toolStripSeparator2.Name = "toolStripSeparator2"; - this.toolStripSeparator2.Size = new System.Drawing.Size(177, 6); - // - // toolStripMenuItem4 - // - this.toolStripMenuItem4.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.topToolStripMenuItem, - this.upToolStripMenuItem, - this.downToolStripMenuItem, - this.bottomToolStripMenuItem}); - this.toolStripMenuItem4.Name = "toolStripMenuItem4"; - this.toolStripMenuItem4.Size = new System.Drawing.Size(180, 22); - this.toolStripMenuItem4.Text = "&Move"; - // - // topToolStripMenuItem - // - this.topToolStripMenuItem.Name = "topToolStripMenuItem"; - this.topToolStripMenuItem.Size = new System.Drawing.Size(114, 22); - this.topToolStripMenuItem.Text = "&Top"; - this.topToolStripMenuItem.Click += new System.EventHandler(this.topToolStripMenuItem_Click); - // - // upToolStripMenuItem - // - this.upToolStripMenuItem.Name = "upToolStripMenuItem"; - this.upToolStripMenuItem.Size = new System.Drawing.Size(114, 22); - this.upToolStripMenuItem.Text = "&Up"; - this.upToolStripMenuItem.Click += new System.EventHandler(this.upToolStripMenuItem_Click); - // - // downToolStripMenuItem - // - this.downToolStripMenuItem.Name = "downToolStripMenuItem"; - this.downToolStripMenuItem.Size = new System.Drawing.Size(114, 22); - this.downToolStripMenuItem.Text = "&Down"; - this.downToolStripMenuItem.Click += new System.EventHandler(this.downToolStripMenuItem_Click); - // - // bottomToolStripMenuItem - // - this.bottomToolStripMenuItem.Name = "bottomToolStripMenuItem"; - this.bottomToolStripMenuItem.Size = new System.Drawing.Size(114, 22); - this.bottomToolStripMenuItem.Text = "&Bottom"; - this.bottomToolStripMenuItem.Click += new System.EventHandler(this.bottomToolStripMenuItem_Click); - // - // toolStripSeparator1 - // - this.toolStripSeparator1.Name = "toolStripSeparator1"; - this.toolStripSeparator1.Size = new System.Drawing.Size(177, 6); - // - // toolStripMenuItem3 - // - this.toolStripMenuItem3.Name = "toolStripMenuItem3"; - this.toolStripMenuItem3.Size = new System.Drawing.Size(180, 22); - this.toolStripMenuItem3.Text = "&Remove"; - this.toolStripMenuItem3.Click += new System.EventHandler(this.toolStripMenuItem3_Click); - // - // pictureBox1 - // - this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left))); - this.pictureBox1.BackColor = System.Drawing.Color.Transparent; - this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.pictureBox1.ContextMenuStrip = this.contextMenuStrip1; - this.pictureBox1.ErrorImage = null; - this.pictureBox1.InitialImage = null; - this.pictureBox1.Location = new System.Drawing.Point(0, 0); - this.pictureBox1.Margin = new System.Windows.Forms.Padding(0); - this.pictureBox1.MaximumSize = new System.Drawing.Size(20, 20); - this.pictureBox1.MinimumSize = new System.Drawing.Size(20, 20); - this.pictureBox1.Name = "pictureBox1"; - this.pictureBox1.Size = new System.Drawing.Size(20, 20); - this.pictureBox1.TabIndex = 7; - this.pictureBox1.TabStop = false; - this.pictureBox1.MouseClick += new System.Windows.Forms.MouseEventHandler(this.panel_MouseClick); - this.pictureBox1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.panel_MouseClick); - // - // toolStripMenuItem5 - // - this.toolStripMenuItem5.Name = "toolStripMenuItem5"; - this.toolStripMenuItem5.Size = new System.Drawing.Size(180, 22); - this.toolStripMenuItem5.Text = "Add &Row"; - this.toolStripMenuItem5.Click += new System.EventHandler(this.toolStripMenuItem5_Click); - // - // TileGroupLabel - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ContextMenuStrip = this.contextMenuStrip1; - this.Controls.Add(this.label1); - this.Controls.Add(this.pictureBox1); - this.MinimumSize = new System.Drawing.Size(100, 20); - this.Name = "TileGroupLabel"; - this.Size = new System.Drawing.Size(600, 20); - this.MouseClick += new System.Windows.Forms.MouseEventHandler(this.panel_MouseClick); - this.contextMenuStrip1.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Label label1; - private System.Windows.Forms.PictureBox pictureBox1; - private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; - private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1; - private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2; - private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem4; - private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem3; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator2; - private System.Windows.Forms.ToolStripMenuItem topToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem upToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem downToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem bottomToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem5; - } -} diff --git a/Windows/Forms/Tile/TileGroupLabel.cs b/Windows/Forms/Tile/TileGroupLabel.cs deleted file mode 100644 index 0566f6e..0000000 --- a/Windows/Forms/Tile/TileGroupLabel.cs +++ /dev/null @@ -1,101 +0,0 @@ -using System.ComponentModel; -using System.Windows.Forms; - -namespace AppLauncher.Windows.Forms -{ - public partial class TileGroupLabel : AUserControl - { - protected bool isChecked = true; - - public TileGroupLabel() : base() - { - InitializeComponent(); - } - - [Category("Appearance"), Browsable(true)] - public string TitleText { get => label1.Text; set => label1.Text = value; } - - [Category("Appearance"), Browsable(true)] - public bool Checked - { - get => isChecked; - set - { - isChecked = value; - - pictureBox1.BackgroundImage = (value) ? Properties.Resources.toggle_right_ea_16 : Properties.Resources.toggle_left_ea_16; - - if (this.TileGroupPanel != null) this.TileGroupPanel.InvalidateContainer(); - } - } - - [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] - public TileLayoutContainer TileGroupPanel { get; set; } = null; - - protected void panel_MouseClick(object sender, MouseEventArgs e) - { - if (e.Button != MouseButtons.Left) - { - return; - } - - this.Checked = !this.Checked; - } - - private void topToolStripMenuItem_Click(object sender, System.EventArgs e) - { - if (this.TileGroupPanel != null) this.TileGroupPanel.MoveTop(); - } - - private void bottomToolStripMenuItem_Click(object sender, System.EventArgs e) - { - if (this.TileGroupPanel != null) this.TileGroupPanel.MoveBottom(); - } - - private void upToolStripMenuItem_Click(object sender, System.EventArgs e) - { - if (this.TileGroupPanel != null) this.TileGroupPanel.MoveUp(); - } - - private void downToolStripMenuItem_Click(object sender, System.EventArgs e) - { - if (this.TileGroupPanel != null) this.TileGroupPanel.MoveDown(); - } - - /// - /// Add group - /// - /// - /// - private void toolStripMenuItem2_Click(object sender, System.EventArgs e) - { - if (this.TileGroupPanel != null) this.TileGroupPanel.AddGroup(); - } - - /// - /// Edit group - /// - /// - /// - private void toolStripMenuItem1_Click(object sender, System.EventArgs e) - { - if (this.TileGroupPanel != null) this.TileGroupPanel.EditGroup(); - } - - /// - /// Remove group - /// - /// - /// - private void toolStripMenuItem3_Click(object sender, System.EventArgs e) - { - if (this.TileGroupPanel != null) this.TileGroupPanel.Remove(); - } - - private void toolStripMenuItem5_Click(object sender, System.EventArgs e) - { - if (this.TileGroupPanel != null) this.TileGroupPanel.AddRow(); - } - - } -} \ No newline at end of file diff --git a/Windows/Forms/Tile/TileGroupLabel.resx b/Windows/Forms/Tile/TileGroupLabel.resx deleted file mode 100644 index ad53752..0000000 --- a/Windows/Forms/Tile/TileGroupLabel.resx +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 17, 17 - - \ No newline at end of file diff --git a/Windows/Forms/Tile/TileLayoutContainer.Designer.cs b/Windows/Forms/Tile/TileLayoutContainer.Designer.cs deleted file mode 100644 index 95290c8..0000000 --- a/Windows/Forms/Tile/TileLayoutContainer.Designer.cs +++ /dev/null @@ -1,208 +0,0 @@ -namespace AppLauncher.Windows.Forms -{ - partial class TileLayoutContainer - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Component Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.components = new System.ComponentModel.Container(); - this.panel1 = new AppLauncher.Windows.Forms.TileLayoutPanel(); - this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); - this.addToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.addListToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.contextMenuStrip2 = new System.Windows.Forms.ContextMenuStrip(this.components); - this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripMenuItem5 = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); - this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripMenuItem(); - this.topToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.upToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.downToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.bottomToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); - this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripMenuItem(); - this.contextMenuStrip1.SuspendLayout(); - this.contextMenuStrip2.SuspendLayout(); - this.SuspendLayout(); - // - // panel1 - // - this.panel1.AllowDrop = true; - this.panel1.AutoScrollMargin = new System.Drawing.Size(0, 0); - this.panel1.AutoScrollMinSize = new System.Drawing.Size(0, 0); - this.panel1.BackColor = System.Drawing.Color.Transparent; - this.panel1.Location = new System.Drawing.Point(0, 23); - this.panel1.Margin = new System.Windows.Forms.Padding(2, 0, 0, 0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(223, 127); - this.panel1.TabIndex = 27; - // - // contextMenuStrip1 - // - this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.addToolStripMenuItem, - this.addListToolStripMenuItem}); - this.contextMenuStrip1.Name = "contextMenuStrip1"; - this.contextMenuStrip1.Size = new System.Drawing.Size(139, 48); - // - // addToolStripMenuItem - // - this.addToolStripMenuItem.Name = "addToolStripMenuItem"; - this.addToolStripMenuItem.Size = new System.Drawing.Size(138, 22); - this.addToolStripMenuItem.Text = "&Add Tile"; - this.addToolStripMenuItem.Click += new System.EventHandler(this.addTileMenuItem_Click); - // - // addListToolStripMenuItem - // - this.addListToolStripMenuItem.Name = "addListToolStripMenuItem"; - this.addListToolStripMenuItem.Size = new System.Drawing.Size(138, 22); - this.addListToolStripMenuItem.Text = "Add &List Tile"; - this.addListToolStripMenuItem.Click += new System.EventHandler(this.addListTileMenuItem_Click); - // - // contextMenuStrip2 - // - this.contextMenuStrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.toolStripMenuItem2, - this.toolStripMenuItem5, - this.toolStripMenuItem1, - this.toolStripSeparator2, - this.toolStripMenuItem4, - this.toolStripSeparator1, - this.toolStripMenuItem3}); - this.contextMenuStrip2.Name = "contextMenuStrip1"; - this.contextMenuStrip2.Size = new System.Drawing.Size(133, 126); - // - // toolStripMenuItem2 - // - this.toolStripMenuItem2.Name = "toolStripMenuItem2"; - this.toolStripMenuItem2.Size = new System.Drawing.Size(132, 22); - this.toolStripMenuItem2.Text = "&Add Group"; - this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click); - // - // toolStripMenuItem5 - // - this.toolStripMenuItem5.Name = "toolStripMenuItem5"; - this.toolStripMenuItem5.Size = new System.Drawing.Size(132, 22); - this.toolStripMenuItem5.Text = "Add &Row"; - this.toolStripMenuItem5.Click += new System.EventHandler(this.toolStripMenuItem5_Click); - // - // toolStripMenuItem1 - // - this.toolStripMenuItem1.Name = "toolStripMenuItem1"; - this.toolStripMenuItem1.Size = new System.Drawing.Size(132, 22); - this.toolStripMenuItem1.Text = "&Edit"; - this.toolStripMenuItem1.Click += new System.EventHandler(this.toolStripMenuItem1_Click); - // - // toolStripSeparator2 - // - this.toolStripSeparator2.Name = "toolStripSeparator2"; - this.toolStripSeparator2.Size = new System.Drawing.Size(129, 6); - // - // toolStripMenuItem4 - // - this.toolStripMenuItem4.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.topToolStripMenuItem, - this.upToolStripMenuItem, - this.downToolStripMenuItem, - this.bottomToolStripMenuItem}); - this.toolStripMenuItem4.Name = "toolStripMenuItem4"; - this.toolStripMenuItem4.Size = new System.Drawing.Size(132, 22); - this.toolStripMenuItem4.Text = "&Move"; - // - // topToolStripMenuItem - // - this.topToolStripMenuItem.Name = "topToolStripMenuItem"; - this.topToolStripMenuItem.Size = new System.Drawing.Size(114, 22); - this.topToolStripMenuItem.Text = "&Top"; - this.topToolStripMenuItem.Click += new System.EventHandler(this.topToolStripMenuItem_Click); - // - // upToolStripMenuItem - // - this.upToolStripMenuItem.Name = "upToolStripMenuItem"; - this.upToolStripMenuItem.Size = new System.Drawing.Size(114, 22); - this.upToolStripMenuItem.Text = "&Up"; - this.upToolStripMenuItem.Click += new System.EventHandler(this.upToolStripMenuItem_Click); - // - // downToolStripMenuItem - // - this.downToolStripMenuItem.Name = "downToolStripMenuItem"; - this.downToolStripMenuItem.Size = new System.Drawing.Size(114, 22); - this.downToolStripMenuItem.Text = "&Down"; - this.downToolStripMenuItem.Click += new System.EventHandler(this.downToolStripMenuItem_Click); - // - // bottomToolStripMenuItem - // - this.bottomToolStripMenuItem.Name = "bottomToolStripMenuItem"; - this.bottomToolStripMenuItem.Size = new System.Drawing.Size(114, 22); - this.bottomToolStripMenuItem.Text = "&Bottom"; - this.bottomToolStripMenuItem.Click += new System.EventHandler(this.bottomToolStripMenuItem_Click); - // - // toolStripSeparator1 - // - this.toolStripSeparator1.Name = "toolStripSeparator1"; - this.toolStripSeparator1.Size = new System.Drawing.Size(129, 6); - // - // toolStripMenuItem3 - // - this.toolStripMenuItem3.Name = "toolStripMenuItem3"; - this.toolStripMenuItem3.Size = new System.Drawing.Size(132, 22); - this.toolStripMenuItem3.Text = "&Remove"; - this.toolStripMenuItem3.Click += new System.EventHandler(this.toolStripMenuItem3_Click); - // - // TileLayoutContainer - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.Transparent; - this.Controls.Add(this.panel1); - this.Name = "TileLayoutContainer"; - this.Size = new System.Drawing.Size(370, 150); - this.contextMenuStrip1.ResumeLayout(false); - this.contextMenuStrip2.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - private TileLayoutPanel panel1; - private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; - private System.Windows.Forms.ToolStripMenuItem addToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem addListToolStripMenuItem; - private System.Windows.Forms.ContextMenuStrip contextMenuStrip2; - private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2; - private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem5; - private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator2; - private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem4; - private System.Windows.Forms.ToolStripMenuItem topToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem upToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem downToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem bottomToolStripMenuItem; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; - private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem3; - } -} diff --git a/Windows/Forms/Tile/TileLayoutContainer.cs b/Windows/Forms/Tile/TileLayoutContainer.cs deleted file mode 100644 index e90c9d5..0000000 --- a/Windows/Forms/Tile/TileLayoutContainer.cs +++ /dev/null @@ -1,362 +0,0 @@ -using AppLauncher.Models; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Drawing; -using System.Threading; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace AppLauncher.Windows.Forms -{ - public partial class TileLayoutContainer : AUserControl - { - protected TileGroupModel groupInfo = null; - - protected readonly int labelHeight = 20; - protected readonly int collapseIncrement = 6; - protected readonly int expandIncrement = 8; - - protected bool isAnimating = false; - protected bool isChecked = true; - - public TileLayoutContainer(TileGroupModel model) : base() - { - InitializeComponent(); - - this.LoadModel(model); - - panel1.Resize += panel1_Resize; - } - - protected override async void OnLoad(EventArgs e) - { - base.OnLoad(e); - - this.Margin = new Padding(0); - this.Padding = new Padding(0, 0, 0, 10); - //this.MaximumSize = new Size(panel1.Width, ExpandedHeight); - //this.MinimumSize = new Size(panel1.Width, label1.Height); - //this.Size = this.MaximumSize; - this.Size = new Size(panel1.Width, this.ExpandedHeight); - } - - protected override void OnPaint(PaintEventArgs e) - { - base.OnPaint(e); - - Graphics g = e.Graphics; - - g.DrawImageUnscaled((isChecked ? Properties.Resources.toggle_right_ea_16 : Properties.Resources.toggle_left_ea_16), 2, 2); - - TextRenderer.DrawText(g, groupInfo?.Title, new Font(this.Font.FontFamily, 8.25F), new Point(25, 4), Color.FromArgb(99, 105, 119)); - - } - - private async void panel1_Resize(object sender, EventArgs e) => await this.InvalidateContainer(); - - public int CollapseHeight => labelHeight + panel1.CollapseHeight; - - public int ExpandedHeight => labelHeight + panel1.ExpandedHeight + this.Padding.Top + this.Padding.Bottom; - - public TileGroupModel Model - { - get - { - TileGroupModel rs = new TileGroupModel() - { - Title = groupInfo.Title, - GridSize = new Size(panel1.GridSize.X, panel1.GridSize.Y), - IsExpanded = isChecked, - IsExclusive = groupInfo.IsExclusive, - Items = panel1.Tiles - }; - - return rs; - } - } - - public FlowLayoutPanel FlowLayoutPanel - { - get - { - if (this.Parent == null) - { - return null; - } - - if (this.Parent.GetType() != typeof(FlowLayoutPanel)) - { - return null; - } - - return this.Parent as FlowLayoutPanel; - } - } - - public async Task Collapse() - { - await Task.Run(() => - { - if (isAnimating) return; - - isAnimating = true; - - while (this.Height > this.CollapseHeight) - { - if (this.InvokeRequired) - { - this.Invoke(new MethodInvoker(() => { - this.Height -= collapseIncrement; - })); - } - else - { - this.Height -= collapseIncrement; - } - - Thread.Sleep(10); - } - - isAnimating = false; - }); - } - - public async Task CollapseNow() - { - await Task.Run(() => - { - if (isAnimating) return; - - isAnimating = true; - - if (this.InvokeRequired) - { - this.Invoke(new MethodInvoker(() => { - this.Height = this.CollapseHeight; - })); - } - else - { - this.Height = this.CollapseHeight; - } - - isAnimating = false; - }); - } - - public async Task Expand() - { - await Task.Run(() => - { - if (isAnimating) return; - - isAnimating = true; - - while (this.Height < this.ExpandedHeight) - { - if (this.InvokeRequired) - { - this.Invoke(new MethodInvoker(() => { - this.Height += expandIncrement; - this.Invalidate(); - })); - } - else - { - this.Height += expandIncrement; - this.Invalidate(); - } - - Thread.Sleep(10); - } - - isAnimating = false; - }); - } - - public async Task InvalidateContainer(bool animate = true) - { - if (isAnimating) - { - return; - } - - if (isChecked) - { - await this.Expand(); - } - else - { - if (animate) - { - await this.Collapse(); - } - else - { - await this.CollapseNow(); - } - } - } - - public void AddGroup() - { - if (this.FlowLayoutPanel == null) - { - return; - } - - this.FlowLayoutPanel.Controls.Add(new TileLayoutContainer(new TileGroupModel() - { - Title = "New Group", - GridSize = new Size(8, 1) - })); - } - - public void AddRow() - { - panel1.SetGridSize(groupInfo.GridSize.Width, (groupInfo.GridSize.Height + 1)); - } - - public void EditGroup() - { - EditGroupForm editForm = new EditGroupForm(this); - editForm.ShowDialog(); - } - - public void LoadModel(TileGroupModel model, bool loadTiles = true) - { - groupInfo = model; - - panel1.SetGridSize(groupInfo.GridSize.Width, groupInfo.GridSize.Height); - this.Width = panel1.Width; - - isChecked = groupInfo.IsExpanded; - - if (loadTiles) - { - panel1.LoadTiles(model.Items); - } - - this.Invalidate(); - } - - public void MoveTop() - { - if (this.FlowLayoutPanel == null) - { - return; - } - - this.FlowLayoutPanel.Controls.SetChildIndex(this, 0); - } - - public void MoveUp() - { - if (this.FlowLayoutPanel == null) - { - return; - } - - int pos = this.FlowLayoutPanel.Controls.GetChildIndex(this); - if (pos <= 0) - { - return; - } - - this.FlowLayoutPanel.Controls.SetChildIndex(this, (pos - 1)); - } - - public void MoveDown() - { - if (this.FlowLayoutPanel == null) - { - return; - } - - int pos = this.FlowLayoutPanel.Controls.GetChildIndex(this); - if (pos >= (this.FlowLayoutPanel.Controls.Count - 1)) - { - return; - } - - this.FlowLayoutPanel.Controls.SetChildIndex(this, (pos + 1)); - } - - public void MoveBottom() - { - if (this.FlowLayoutPanel == null) - { - return; - } - - this.FlowLayoutPanel.Controls.SetChildIndex(this, (this.FlowLayoutPanel.Controls.Count - 1)); - } - - public void Remove() - { - if (this.FlowLayoutPanel == null) - { - return; - } - - this.FlowLayoutPanel.Controls.Remove(this); - } - - private void addTileMenuItem_Click(object sender, EventArgs e) => AddTileForm.ShowDialog(panel1); - - private void addListTileMenuItem_Click(object sender, EventArgs e) => AddListTileForm.ShowDialog(panel1); - - protected override async void OnMouseClick(MouseEventArgs e) - { - base.OnMouseClick(e); - - bool isLabel = ((e.Location.X >= 0) && (e.Location.X <= this.Width) && (e.Location.Y >= 0) && (e.Location.Y <= 20)); - - if (e.Button == MouseButtons.Left) - { - if (isLabel) - { - isChecked = !isChecked; - - this.Invalidate(); - await this.InvalidateContainer(); - } - else - { - - } - } - else if (e.Button == MouseButtons.Right) - { - if (isLabel) - { - contextMenuStrip2.Show(this, e.Location); - } - else - { - contextMenuStrip1.Show(this, e.Location); - } - } - } - - protected override void OnMouseDoubleClick(MouseEventArgs e) => base.OnMouseClick(e); - - private void toolStripMenuItem2_Click(object sender, EventArgs e) => this.AddGroup(); - - private void toolStripMenuItem5_Click(object sender, EventArgs e) => this.AddRow(); - - private void toolStripMenuItem1_Click(object sender, EventArgs e) => this.EditGroup(); - - private void topToolStripMenuItem_Click(object sender, EventArgs e) => this.MoveTop(); - - private void upToolStripMenuItem_Click(object sender, EventArgs e) => this.MoveUp(); - - private void downToolStripMenuItem_Click(object sender, EventArgs e) => this.MoveDown(); - - private void bottomToolStripMenuItem_Click(object sender, EventArgs e) => this.MoveBottom(); - - private void toolStripMenuItem3_Click(object sender, EventArgs e) => this.Remove(); - - } -} diff --git a/Windows/Forms/Tile/TileLayoutContainer.resx b/Windows/Forms/Tile/TileLayoutContainer.resx deleted file mode 100644 index 8baf68f..0000000 --- a/Windows/Forms/Tile/TileLayoutContainer.resx +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 17, 17 - - - 172, 17 - - \ No newline at end of file diff --git a/Windows/Forms/Tile/TileLayoutPanel.cs b/Windows/Forms/Tile/TileLayoutPanel.cs deleted file mode 100644 index d3de5be..0000000 --- a/Windows/Forms/Tile/TileLayoutPanel.cs +++ /dev/null @@ -1,454 +0,0 @@ -using AppLauncher.Models; -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Drawing; -using System.IO; -using System.Linq; -using System.Windows.Forms; - -namespace AppLauncher.Windows.Forms -{ - public class TileLayoutPanel : AUserControl - { - public class Item - { - public TilePanel Tile { get; set; } - public Point Coord { get; set; } = new Point(0, 0); - } - - protected readonly int tileSize = 70; - protected readonly int margin = 3; - - protected int collapseHeight = 0; - protected int expandedHeight = 0; - - protected List items = new List(); - - public TileLayoutPanel() : base() - { - InitializeComponent(); - - this.AllowDrop = true; - this.BackColor = Color.Transparent; - } - - private void InitializeComponent() - { - this.SuspendLayout(); - // - // TileLayoutPanel - // - this.Name = "TileLayoutPanel"; - this.DragDrop += new System.Windows.Forms.DragEventHandler(this.panel_DragDrop); - this.DragOver += new System.Windows.Forms.DragEventHandler(this.panel_DragOver); - this.ResumeLayout(false); - } - - protected override void OnLoad(EventArgs e) - { - base.OnLoad(e); - - OnResize(e); - } - - public Point GridSize - { - get - { - int w = (int)Math.Floor(decimal.Divide(this.Width, this.TileSize)); - int h = (int)Math.Floor(decimal.Divide(this.Height, this.TileSize)); - - return new Point(w, h); - } - } - - public TileLayoutContainer TileContainer - { - get - { - if (this.Parent == null) - { - return null; - } - - if (this.Parent.GetType() != typeof(TileLayoutContainer)) - { - return null; - } - - return (TileLayoutContainer)this.Parent; - } - } - - public int TileSize => (tileSize + margin); - - public int CollapseHeight => collapseHeight; - - public int ExpandedHeight => expandedHeight; - - public List Tiles - { - get - { - List rs = new List(); - foreach (Item item in items) - { - TileModel model = item.Tile.ModelInfo; - model.Position = item.Coord; - - rs.Add(model); - } - - return rs; - } - } - - public void AddTile(TileModel tile) - { - Point gridSize = this.GridSize; - - if (items.Count >= (gridSize.X * gridSize.Y)) - { - this.SetGridSize(gridSize.X, (gridSize.Y + 1)); - } - - Point? newCoord = findLastFreeCoord(); - if (newCoord == null) - { - return; - } - - tile.Position = newCoord.Value; - - TilePanel panel = new TilePanel(); - panel.LoadInfo(tile); - panel.Location = convertCoordToLocation(tile.Position); - - items.Add(new Item() - { - Tile = panel, - Coord = tile.Position - }); - - this.Controls.Add(panel); - } - - public void Clear() - { - this.Controls.Clear(); - } - - public Point GetTilePosition(int posX, int posY) - { - int x = (int)Math.Round(decimal.Divide(posX, this.TileSize)); - int y = (int)Math.Round(decimal.Divide(posY, this.TileSize)); - - if (x < 0) x = 0; - if (y < 0) y = 0; - - return new Point((x * this.TileSize), (y * this.TileSize)); - } - - public void LoadTiles(List tiles) - { - if (tiles == null) - { - return; - } - - if (tiles.Count() <= 0) - { - return; - } - - foreach (TileModel item in tiles) - { - // resolve final grid position - Point? confirmedPosition = resolveCoord(item.Position); - if (confirmedPosition == null) - { - continue; - - } - - // place control - TilePanel panel = new TilePanel(); - panel.LoadInfo(item); - panel.Location = convertCoordToLocation(confirmedPosition.Value); - - items.Add(new Item() - { - Tile = panel, - Coord = confirmedPosition.Value - }); - - this.Controls.Add(panel); - } - } - - public void MoveTile(TilePanel panel, int posX, int posY) - { - Item item = items.Where(x => x.Tile.Equals(panel)).FirstOrDefault(); - if (item == null) - { - return; - } - - Point newPosition = convertLocationToCoord(posX, posY); - if (!isTileInBounds(newPosition)) - { - return; - } - - if (hasTile(newPosition)) - { - Item swapItem = items.Where(x => x.Coord.Equals(newPosition)).FirstOrDefault(); - if (swapItem != null) - { - swapItem.Coord = item.Coord; - swapItem.Tile.Location = convertCoordToLocation(item.Coord); - } - - item.Coord = newPosition; - panel.Location = convertCoordToLocation(newPosition); - } - else - { - item.Coord = newPosition; - panel.Location = convertCoordToLocation(newPosition); - } - } - - public void Remove(TilePanel panel) - { - Item m = items.Where(x => x.Tile.Equals(panel)).FirstOrDefault(); - if (m != null) - { - items.Remove(m); - } - - this.Controls.Remove(panel); - } - - public void SetGridSize(int width, int height) - { - expandedHeight = (this.TileSize * height); - - this.Size = new Size((this.TileSize * width), expandedHeight); - } - - protected Point convertCoordToLocation(Point position) => new Point((position.X * this.TileSize), (position.Y * this.TileSize)); - - protected Point convertLocationToCoord(int posX, int posY) - { - int x = (int)Math.Round(decimal.Divide(posX, this.TileSize)); - int y = (int)Math.Round(decimal.Divide(posY, this.TileSize)); - - if (x < 0) x = 0; - if (y < 0) y = 0; - - return new Point(x, y); - } - - protected Point? findLastFreeCoord() - { - Point gridSize = this.GridSize; - - // none available - if (items.Count >= (gridSize.X * gridSize.Y)) - { - return null; - } - - if (items.Count <= 0) - { - return findFirstFreeCoord(); - } - - // only one available - if (items.Count >= ((gridSize.X * gridSize.Y) - 1)) - { - return findFirstFreeCoord(); - } - - Point? rv = null; - - for (int y = (gridSize.Y - 1); y >= 0; y--) - { - for (int x = (gridSize.X - 1); x >= 0; x--) - { - if (hasTile(new Point(x, y))) - { - if (rv.HasValue) - { - return rv; - } - } - else - { - rv = new Point(x, y); - } - } - } - - return null; - } - - protected Point? findFirstFreeCoord() - { - Point gridSize = this.GridSize; - - for (int y = 0; y < gridSize.Y; y++) - { - for (int x = 0; x < gridSize.X; x++) - { - if (hasTile(new Point(x, y))) - { - continue; - } - - return new Point(x, y); - } - } - - return null; - } - - protected Point? resolveCoord(Point coord) - { - if (!isTileInBounds(coord)) - { - return null; - } - - if (!hasTile(coord)) - { - return coord; - } - - return resolveNextCoord(coord); - } - - protected Point? resolveNextCoord(Point coord) - { - Point gridSize = this.GridSize; - Point newCoord = coord; - - while (true) - { - newCoord.X++; - - if (newCoord.X >= gridSize.X) - { - newCoord.Y++; - newCoord.X = 0; - } - - if (!isTileInBounds(newCoord)) - { - return null; - } - - if (hasTile(newCoord)) - { - continue; - } - - return newCoord; - } - } - - protected bool hasTile(Point position) - { - if (items == null) - { - return false; - } - - if (items.Count <= 0) - { - return false; - } - - return (items.Count(x => x.Coord.Equals(position)) > 0); - } - - protected bool isTileInBounds(Point position) - { - Point gridSize = this.GridSize; - - if (position.X >= gridSize.X) - { - return false; - } - - if (position.Y >= gridSize.Y) - { - return false; - } - - return true; - } - - private void panel_DragOver(object sender, DragEventArgs e) - { - if (e.Data.GetDataPresent(DataFormats.FileDrop)) - { - e.Effect = DragDropEffects.Link; - } - else - { - e.Effect = DragDropEffects.None; - } - } - - private void panel_DragDrop(object sender, DragEventArgs e) - { - string[] fileList = e.Data.GetData(DataFormats.FileDrop) as string[]; - if (fileList == null) - { - return; - } - - if (fileList.Length <= 0) - { - return; - } - - if (string.IsNullOrWhiteSpace(fileList[0])) - { - return; - } - - TileModel model = new TileModel() - { - ProcessFilename = fileList[0], - Title = Path.GetFileName(fileList[0]) - }; - - // exe - if (Path.GetExtension(fileList[0]).Equals(".exe", StringComparison.CurrentCultureIgnoreCase)) - { - if (File.Exists(fileList[0])) - { - try - { - FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(fileList[0]); - if (fvi != null) - { - model.Title = fvi.ProductName; - } - } - catch - { - // do nothing - } - } - } - - this.AddTile(model); - } - - } -} \ No newline at end of file diff --git a/Windows/Forms/Tile/TileLayoutPanel.resx b/Windows/Forms/Tile/TileLayoutPanel.resx deleted file mode 100644 index 1af7de1..0000000 --- a/Windows/Forms/Tile/TileLayoutPanel.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/Windows/Forms/TitlePanel.Designer.cs b/Windows/Forms/TitlePanel.Designer.cs deleted file mode 100644 index 7c12c1f..0000000 --- a/Windows/Forms/TitlePanel.Designer.cs +++ /dev/null @@ -1,90 +0,0 @@ -namespace AppLauncher.Windows.Forms -{ - partial class TitlePanel - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Component Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.pictureBox1 = new System.Windows.Forms.PictureBox(); - this.label1 = new System.Windows.Forms.Label(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); - this.SuspendLayout(); - // - // pictureBox1 - // - this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left))); - this.pictureBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(76)))), ((int)(((byte)(83)))), ((int)(((byte)(93))))); - this.pictureBox1.BackgroundImage = global::AppLauncher.Properties.Resources.grid_ea_24; - this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; - this.pictureBox1.ErrorImage = null; - this.pictureBox1.InitialImage = null; - this.pictureBox1.Location = new System.Drawing.Point(0, 0); - this.pictureBox1.Margin = new System.Windows.Forms.Padding(0); - this.pictureBox1.Name = "pictureBox1"; - this.pictureBox1.Size = new System.Drawing.Size(40, 40); - this.pictureBox1.TabIndex = 5; - this.pictureBox1.TabStop = false; - this.pictureBox1.DoubleClick += new System.EventHandler(this.pictureBox1_DoubleClick); - this.pictureBox1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.pictureBox1_MouseUp); - // - // label1 - // - this.label1.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.label1.BackColor = System.Drawing.Color.Transparent; - this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))); - this.label1.Location = new System.Drawing.Point(40, 0); - this.label1.Margin = new System.Windows.Forms.Padding(0); - this.label1.Name = "label1"; - this.label1.Padding = new System.Windows.Forms.Padding(10, 0, 0, 0); - this.label1.Size = new System.Drawing.Size(657, 40); - this.label1.TabIndex = 6; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // - // TitlePanel - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.Black; - this.Controls.Add(this.label1); - this.Controls.Add(this.pictureBox1); - this.MinimumSize = new System.Drawing.Size(100, 40); - this.Name = "TitlePanel"; - this.Size = new System.Drawing.Size(697, 40); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.PictureBox pictureBox1; - private System.Windows.Forms.Label label1; - } -} diff --git a/Windows/Forms/TitlePanel.cs b/Windows/Forms/TitlePanel.cs deleted file mode 100644 index aadf460..0000000 --- a/Windows/Forms/TitlePanel.cs +++ /dev/null @@ -1,140 +0,0 @@ -using System; -using System.ComponentModel; -using System.Drawing; -using System.Windows.Forms; - -namespace AppLauncher.Windows.Forms -{ - public partial class TitlePanel : UserControl - { - private bool isDragging = false; - private Point windowOffset = new Point(); - - public TitlePanel() - { - InitializeComponent(); - } - - protected override void OnLoad(EventArgs e) - { - base.OnLoad(e); - - this.BackColor = Color.Black; - } - - protected override void OnParentBindingContextChanged(EventArgs e) - { - base.OnParentBindingContextChanged(e); - - if (this.Parent != null) - { - if (this.Parent.GetType() == typeof(MainForm)) - { - pictureBox1.MouseDown += parentForm_MouseDown; - pictureBox1.MouseUp += parentForm_MouseUp; - pictureBox1.MouseMove += parentForm_MouseMove; - label1.MouseDown += parentForm_MouseDown; - label1.MouseUp += parentForm_MouseUp; - label1.MouseMove += parentForm_MouseMove; - } - } - } - - [Category("Appearance"), Browsable(true)] - public string TitleText { get => label1.Text; set => label1.Text = value; } - - [Category("Appearance"), Browsable(true)] - public bool LabelVisible { get => label1.Visible; set => label1.Visible = value; } - - public ContextMenuStrip MainMenu { get; set; } = null; - - public MainForm MainForm - { - get - { - if (this.Parent == null) - { - return null; - } - - if (this.Parent.GetType() != typeof(MainForm)) - { - return null; - } - - return (MainForm)this.Parent; - } - } - - protected void parentForm_MouseDown(object sender, MouseEventArgs e) - { - if (e.Button != MouseButtons.Left) - { - return; - } - - isDragging = true; - windowOffset = e.Location; - } - - protected void parentForm_MouseUp(object sender, MouseEventArgs e) - { - isDragging = false; - } - - protected void parentForm_MouseMove(object sender, MouseEventArgs e) - { - if (isDragging) - { - Point pos = this.PointToScreen(e.Location); - int y = (pos.Y - windowOffset.Y); - int x = (pos.X - windowOffset.X); - - this.Parent.Location = new Point(x, y); - - //int y = Math.Max((pos.Y - windowOffset.Y), Screen.PrimaryScreen.WorkingArea.Y); - //y = Math.Min(y, (Screen.PrimaryScreen.WorkingArea.Y + Screen.PrimaryScreen.WorkingArea.Height) - this.Height); - - //this.Parent.Location = new Point(Screen.PrimaryScreen.WorkingArea.X, y); - } - } - - private void pictureBox1_MouseUp(object sender, MouseEventArgs e) - { - if (e.Button == MouseButtons.Right) - { - if (this.MainMenu != null) - { - this.MainMenu.Show(this.PointToScreen(e.Location)); - } - } - } - - private async void pictureBox1_DoubleClick(object sender, EventArgs e) - { - if (this.MainForm == null) - { - return; - } - - await this.MainForm.ToggleSize(); - } - - //protected Point validateFormLocation(int x, int y) - //{ - // Screen activeScreen = Screen.FromControl(this); - // int maxX = (activeScreen.WorkingArea.X + activeScreen.WorkingArea.Width) - this.Width; - // int maxY = (activeScreen.WorkingArea.Y + activeScreen.WorkingArea.Height) - this.Height; - - // if (x < activeScreen.WorkingArea.X) x = activeScreen.WorkingArea.X; - // if (y < activeScreen.WorkingArea.Y) y = activeScreen.WorkingArea.Y; - // if (x > maxX) x = maxX; - // if (y > maxY) y = maxY; - - // //y = activeScreen.WorkingArea.Y; - - // return new Point(x, y); - //} - - } -} diff --git a/Windows/Forms/TitlePanel.resx b/Windows/Forms/TitlePanel.resx deleted file mode 100644 index 1af7de1..0000000 --- a/Windows/Forms/TitlePanel.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file