Add default icon for layout - thx PaulVeld :)

Fix #7899
This commit is contained in:
Nikolaj Olsson 2024-02-11 18:41:04 +01:00
parent dcd411a793
commit b6892bc235
6 changed files with 38 additions and 23 deletions

View File

@ -349,6 +349,7 @@ namespace Nikse.SubtitleEdit.Forms
this.genericTranslateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.genericTranslateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItemUnbreakLines = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItemUnbreakLines = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItemAutoBreakLines = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItemAutoBreakLines = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItemEvenlyDistributeLines = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItemSaveSelectedLines = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItemSaveSelectedLines = new System.Windows.Forms.ToolStripMenuItem();
this.typeEffectToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.typeEffectToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.karaokeEffectToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.karaokeEffectToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@ -576,7 +577,6 @@ namespace Nikse.SubtitleEdit.Forms
this.timerOriginalTextUndo = new System.Windows.Forms.Timer(this.components); this.timerOriginalTextUndo = new System.Windows.Forms.Timer(this.components);
this.contextMenuStripShowVideoControls = new System.Windows.Forms.ContextMenuStrip(this.components); this.contextMenuStripShowVideoControls = new System.Windows.Forms.ContextMenuStrip(this.components);
this.toolStripMenuItemShowVideoControls = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItemShowVideoControls = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItemEvenlyDistributeLines = new System.Windows.Forms.ToolStripMenuItem();
this.statusStrip1.SuspendLayout(); this.statusStrip1.SuspendLayout();
this.toolStrip1.SuspendLayout(); this.toolStrip1.SuspendLayout();
this.menuStrip1.SuspendLayout(); this.menuStrip1.SuspendLayout();
@ -996,10 +996,11 @@ namespace Nikse.SubtitleEdit.Forms
// //
this.toolStripButtonLayout.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.toolStripButtonLayout.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.toolStripButtonLayout.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.toolStripButtonLayout.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
this.toolStripButtonLayout.Image = global::Nikse.SubtitleEdit.Properties.Resources.Layout;
this.toolStripButtonLayout.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.toolStripButtonLayout.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
this.toolStripButtonLayout.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButtonLayout.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButtonLayout.Name = "toolStripButtonLayout"; this.toolStripButtonLayout.Name = "toolStripButtonLayout";
this.toolStripButtonLayout.Size = new System.Drawing.Size(23, 37); this.toolStripButtonLayout.Size = new System.Drawing.Size(36, 37);
this.toolStripButtonLayout.Text = "Show/hide waveform"; this.toolStripButtonLayout.Text = "Show/hide waveform";
this.toolStripButtonLayout.Click += new System.EventHandler(this.ToolStripButtonLayoutChooseClick); this.toolStripButtonLayout.Click += new System.EventHandler(this.ToolStripButtonLayoutChooseClick);
// //
@ -3226,6 +3227,13 @@ namespace Nikse.SubtitleEdit.Forms
this.toolStripMenuItemAutoBreakLines.Text = "Auto balance selected lines..."; this.toolStripMenuItemAutoBreakLines.Text = "Auto balance selected lines...";
this.toolStripMenuItemAutoBreakLines.Click += new System.EventHandler(this.ToolStripMenuItemAutoBreakLinesClick); this.toolStripMenuItemAutoBreakLines.Click += new System.EventHandler(this.ToolStripMenuItemAutoBreakLinesClick);
// //
// toolStripMenuItemEvenlyDistributeLines
//
this.toolStripMenuItemEvenlyDistributeLines.Name = "toolStripMenuItemEvenlyDistributeLines";
this.toolStripMenuItemEvenlyDistributeLines.Size = new System.Drawing.Size(275, 22);
this.toolStripMenuItemEvenlyDistributeLines.Text = "Evenly distribute lines (CPS)...";
this.toolStripMenuItemEvenlyDistributeLines.Click += new System.EventHandler(this.ToolStripMenuItemEvenlyDistributeLinesClick);
//
// toolStripMenuItemSaveSelectedLines // toolStripMenuItemSaveSelectedLines
// //
this.toolStripMenuItemSaveSelectedLines.Name = "toolStripMenuItemSaveSelectedLines"; this.toolStripMenuItemSaveSelectedLines.Name = "toolStripMenuItemSaveSelectedLines";
@ -5847,13 +5855,6 @@ namespace Nikse.SubtitleEdit.Forms
this.toolStripMenuItemShowVideoControls.Text = "Show video controls"; this.toolStripMenuItemShowVideoControls.Text = "Show video controls";
this.toolStripMenuItemShowVideoControls.Click += new System.EventHandler(this.ToolStripMenuItemShowVideoControlsClick); this.toolStripMenuItemShowVideoControls.Click += new System.EventHandler(this.ToolStripMenuItemShowVideoControlsClick);
// //
// toolStripMenuItemEvenlyDistributeLines
//
this.toolStripMenuItemEvenlyDistributeLines.Name = "toolStripMenuItemEvenlyDistributeLines";
this.toolStripMenuItemEvenlyDistributeLines.Size = new System.Drawing.Size(275, 22);
this.toolStripMenuItemEvenlyDistributeLines.Text = "Evenly distribute lines (CPS)...";
this.toolStripMenuItemEvenlyDistributeLines.Click += new System.EventHandler(this.ToolStripMenuItemEvenlyDistributeLinesClick);
//
// Main // Main
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);

View File

@ -730,9 +730,9 @@
<data name="toolStripButtonLockCenter.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="toolStripButtonLockCenter.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACJSURBVEhLYxjioPT6M4aKawVQHvEApAekFydIv/6bofx6 YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACJSURBVEhLYxjioPT6M4aKawVQHvEApAekFydIu/6bofx6
A5RHPADpAenFCbAZXHk1ACi2nqHi6n44BokhA5INrrpiwFBx/T9Q7DxYHILPg8VAcjBAssEgNsgQdACx A5RHPADpAenFCbAZXHk1ACi2nqHi6n44BokhA5INrrpiwFBx/T9Q7DxYHILPg8VAcjBAssEgNsgQdACx
DFXdqMFgMGowlDdqMCUG0yxLgwCowEEugEAFEsWFELGAoME0K+gHP2BgAADj1Bh2gurMTQAAAABJRU5E DFXdqMFgMGowlDdqMCUG0yxLgwCowEEugEAFEsWFELGAoME0K+gHP2BgAABpZBhW3VPvKwAAAABJRU5E
rkJggg== rkJggg==
</value> </value>
</data> </data>

View File

@ -280,6 +280,16 @@ namespace Nikse.SubtitleEdit.Properties {
} }
} }
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap Layout {
get {
object obj = ResourceManager.GetObject("Layout", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary> /// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap. /// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary> /// </summary>

View File

@ -118,15 +118,9 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="L2" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\L2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="L3" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="L3" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\L3.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\L3.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="L1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\L1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="webvtt" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="webvtt" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\webvtt.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\webvtt.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
@ -142,6 +136,9 @@
<data name="Settings" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="Settings" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Icons\Settings.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Icons\Settings.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="L7" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\L7.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="color-picker-small2" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="color-picker-small2" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\color-picker-small2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\color-picker-small2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
@ -154,12 +151,15 @@
<data name="Error" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="Error" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Error.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\Error.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="L8" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="L2" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\L8.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\L2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="bookmark22dark" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="bookmark22dark" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\bookmark22dark.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\bookmark22dark.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="L11" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\L11.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="ebu" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="ebu" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\ebu.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\ebu.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
@ -196,8 +196,11 @@
<data name="SEIcon" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="SEIcon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\SE.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\SE.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="L7" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="L8" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\L7.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\L8.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="L1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\L1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="Help32" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="Help32" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Help32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\Help32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
@ -205,7 +208,7 @@
<data name="Information" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="Information" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Information.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\Information.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="L11" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="Layout" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\L11.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\Layout.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
</root> </root>

BIN
src/ui/Resources/Layout.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -2597,6 +2597,7 @@
<None Include="Resources\L12.png" /> <None Include="Resources\L12.png" />
<None Include="Resources\L10.png" /> <None Include="Resources\L10.png" />
<None Include="Resources\L11.png" /> <None Include="Resources\L11.png" />
<None Include="Resources\Layout.png" />
<Content Include="Resources\TesseractDictionaries.xml"> <Content Include="Resources\TesseractDictionaries.xml">
<SubType>Designer</SubType> <SubType>Designer</SubType>
</Content> </Content>