added icons for #2

initial ui functions for #3
This commit is contained in:
Manuel Kamper 2023-08-10 08:31:09 +02:00
parent fc361f6921
commit 4d29cb3340
8 changed files with 51 additions and 4 deletions

View File

@ -500,7 +500,7 @@
// buttonRandAlle
//
this.buttonRandAlle.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.buttonRandAlle.BackgroundImage = global::Mk0.Software.ImageSorter.Properties.Resources.border_2_left_icon;
this.buttonRandAlle.BackgroundImage = global::Mk0.Software.ImageSorter.Properties.Resources.border_2_all_icon;
this.buttonRandAlle.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.buttonRandAlle.FlatAppearance.BorderColor = System.Drawing.Color.Silver;
this.buttonRandAlle.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
@ -515,7 +515,7 @@
// buttonRandObenUnten
//
this.buttonRandObenUnten.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.buttonRandObenUnten.BackgroundImage = global::Mk0.Software.ImageSorter.Properties.Resources.border_2_left_icon;
this.buttonRandObenUnten.BackgroundImage = global::Mk0.Software.ImageSorter.Properties.Resources.border_2_topbottom_icon;
this.buttonRandObenUnten.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.buttonRandObenUnten.FlatAppearance.BorderColor = System.Drawing.Color.Silver;
this.buttonRandObenUnten.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
@ -530,7 +530,7 @@
// buttonRandLinksRechts
//
this.buttonRandLinksRechts.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.buttonRandLinksRechts.BackgroundImage = global::Mk0.Software.ImageSorter.Properties.Resources.border_2_left_icon;
this.buttonRandLinksRechts.BackgroundImage = global::Mk0.Software.ImageSorter.Properties.Resources.border_2_leftright_icon;
this.buttonRandLinksRechts.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.buttonRandLinksRechts.FlatAppearance.BorderColor = System.Drawing.Color.Silver;
this.buttonRandLinksRechts.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
@ -802,7 +802,6 @@
this.buttonPreview.Size = new System.Drawing.Size(23, 23);
this.buttonPreview.TabIndex = 19;
this.buttonPreview.UseVisualStyleBackColor = true;
this.buttonPreview.Visible = false;
this.buttonPreview.Click += new System.EventHandler(this.ButtonPreview_Click);
//
// panelPreview

View File

@ -1459,6 +1459,11 @@ namespace Mk0.Software.ImageSorter
catch (Exception)
{
}
if (panelPreview.Visible)
{
ShowPreviewImages();
}
}
/// <summary>
@ -1989,6 +1994,7 @@ namespace Mk0.Software.ImageSorter
private void ShowPreviewImages()
{
panelPreview.Controls.Clear();
int panelWidthAvailable = panelPreview.Width - 11; //verfügbare breite abzüglich ränder links+rechts
int previewImageWidth = 80; //breite eines preview-bildes
int previewImageAbstand = 11; //abstand zwischen preview-bildern

View File

@ -187,6 +187,9 @@
</ItemGroup>
<ItemGroup>
<Content Include="Mk0.Software.OnlineUpdater.dll" />
<None Include="Resources\border-2-topbottom-icon.png" />
<None Include="Resources\border-2-leftright-icon.png" />
<None Include="Resources\border-2-all-icon.png" />
<Content Include="Resources\heic.ico" />
<Content Include="Resources\webp.ico" />
<None Include="Resources\transform-rotate-270-icon.png" />

View File

@ -110,6 +110,16 @@ namespace Mk0.Software.ImageSorter.Properties {
}
}
/// <summary>
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap border_2_all_icon {
get {
object obj = ResourceManager.GetObject("border_2_all_icon", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
/// </summary>
@ -130,6 +140,16 @@ namespace Mk0.Software.ImageSorter.Properties {
}
}
/// <summary>
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap border_2_leftright_icon {
get {
object obj = ResourceManager.GetObject("border_2_leftright_icon", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
/// </summary>
@ -150,6 +170,16 @@ namespace Mk0.Software.ImageSorter.Properties {
}
}
/// <summary>
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap border_2_topbottom_icon {
get {
object obj = ResourceManager.GetObject("border_2_topbottom_icon", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
/// </summary>

View File

@ -241,4 +241,13 @@
<data name="webp" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\webp.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="border_2_leftright_icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\border-2-leftright-icon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="border_2_topbottom_icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\border-2-topbottom-icon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="border_2_all_icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\border-2-all-icon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB