Add more theme icons - thx jmaraujouy :)

Related to #6921
This commit is contained in:
niksedk 2023-07-02 18:52:04 +02:00
parent c5ed54efa2
commit ca4a27eed1
30 changed files with 30 additions and 15 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

BIN
Icons/Black/WebVttStyle.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -5946,7 +5946,7 @@ namespace Nikse.SubtitleEdit.Forms
return UiUtil.ShowSubtitle(_subtitle, mediaPlayer, format);
}
private static void TryLoadIcon(ToolStripButton button, string iconName)
private static void TryLoadIcon(ToolStripItem button, string iconName)
{
var theme = Configuration.Settings.General.UseDarkTheme ? "DarkTheme" : "DefaultTheme";
if (!string.IsNullOrEmpty(Configuration.Settings.General.ToolbarIconTheme) && !Configuration.Settings.General.ToolbarIconTheme.Equals("Auto", StringComparison.OrdinalIgnoreCase))
@ -5995,6 +5995,13 @@ namespace Nikse.SubtitleEdit.Forms
TryLoadIcon(toolStripButtonToggleWaveform, "WaveformToggle");
TryLoadIcon(toolStripButtonToggleVideo, "VideoToggle");
TryLoadIcon(toolStripButtonSourceView, "SourceView");
TryLoadIcon(toolStripButtonWaveformZoomOut, "WaveformZoomOut");
TryLoadIcon(toolStripButtonWaveformZoomIn, "WaveformZoomIn");
TryLoadIcon(toolStripButtonWaveformPause, "WaveformPause");
TryLoadIcon(toolStripButtonWaveformPlay, "WaveformPlay");
TryLoadIcon(toolStripButtonLockCenter, "WaveformCenter");
TryLoadIcon(toolStripSplitButtonPlayRate, "WaveformPlaybackSpeed");
// IttProperties, WebVttProperties, WebVttStyle, EbuProperties
}
@ -17712,7 +17719,7 @@ namespace Nikse.SubtitleEdit.Forms
{
mediaPlayer.VideoPlayer.PlayRate = 1.0;
InitializePlayRateDropDown();
toolStripSplitButtonPlayRate.Image = imageListPlayRate.Images[0];
//toolStripSplitButtonPlayRate.Image = imageListPlayRate.Images[0];
}
}
else if (audioVisualizer.Focused && audioVisualizer.NewSelectionParagraph != null && e.KeyData == _shortcuts.WaveformAddTextAtHere)
@ -25236,7 +25243,15 @@ namespace Nikse.SubtitleEdit.Forms
if (!playedWithCustomSpeed)
{
playRateDropDownItem.Checked = true;
toolStripSplitButtonPlayRate.Image = Math.Abs(factor - 1) < 0.01 ? imageListPlayRate.Images[0] : imageListPlayRate.Images[1];
if (Math.Abs(factor - 1) < 0.01)
{
}
else
{
toolStripSplitButtonPlayRate.Select();
}
//toolStripSplitButtonPlayRate.Image = Math.Abs(factor - 1) < 0.01 ? imageListPlayRate.Images[0] : imageListPlayRate.Images[1];
}
try

View File

@ -319,6 +319,7 @@
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.checkBoxShowFrameRate = new System.Windows.Forms.CheckBox();
this.groupBoxShowToolBarButtons = new System.Windows.Forms.GroupBox();
this.pictureBoxWebVttStyle = new System.Windows.Forms.PictureBox();
this.pictureBoxEbuProperties = new System.Windows.Forms.PictureBox();
this.pictureBoxWebVttProperties = new System.Windows.Forms.PictureBox();
this.pictureBoxIttProperties = new System.Windows.Forms.PictureBox();
@ -440,7 +441,6 @@
this.labelUpdateFileTypeAssociationsStatus = new System.Windows.Forms.Label();
this.imageListFileTypeAssociations = new System.Windows.Forms.ImageList(this.components);
this.toolTipDialogStylePreview = new System.Windows.Forms.ToolTip(this.components);
this.pictureBoxWebVttStyle = new System.Windows.Forms.PictureBox();
this.panelGeneral.SuspendLayout();
this.groupBoxMiscellaneous.SuspendLayout();
this.groupBoxGeneralRules.SuspendLayout();
@ -486,6 +486,7 @@
this.panelToolBar.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBoxShowToolBarButtons.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxWebVttStyle)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxEbuProperties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxWebVttProperties)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxIttProperties)).BeginInit();
@ -522,7 +523,6 @@
this.groupBoxProxySettings.SuspendLayout();
this.groupBoxProxyAuthentication.SuspendLayout();
this.panelFileTypeAssociations.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxWebVttStyle)).BeginInit();
this.SuspendLayout();
//
// buttonOK
@ -4094,6 +4094,14 @@
this.groupBoxShowToolBarButtons.TabStop = false;
this.groupBoxShowToolBarButtons.Text = "Show toolbar buttons";
//
// pictureBoxWebVttStyle
//
this.pictureBoxWebVttStyle.Location = new System.Drawing.Point(285, 400);
this.pictureBoxWebVttStyle.Name = "pictureBoxWebVttStyle";
this.pictureBoxWebVttStyle.Size = new System.Drawing.Size(32, 32);
this.pictureBoxWebVttStyle.TabIndex = 60;
this.pictureBoxWebVttStyle.TabStop = false;
//
// pictureBoxEbuProperties
//
this.pictureBoxEbuProperties.Location = new System.Drawing.Point(361, 400);
@ -4104,7 +4112,7 @@
//
// pictureBoxWebVttProperties
//
this.pictureBoxWebVttProperties.Location = new System.Drawing.Point(285, 400);
this.pictureBoxWebVttProperties.Location = new System.Drawing.Point(324, 400);
this.pictureBoxWebVttProperties.Name = "pictureBoxWebVttProperties";
this.pictureBoxWebVttProperties.Size = new System.Drawing.Size(32, 32);
this.pictureBoxWebVttProperties.TabIndex = 58;
@ -5284,14 +5292,6 @@
this.toolTipDialogStylePreview.InitialDelay = 500;
this.toolTipDialogStylePreview.ReshowDelay = 100;
//
// pictureBoxWebVttStyle
//
this.pictureBoxWebVttStyle.Location = new System.Drawing.Point(323, 400);
this.pictureBoxWebVttStyle.Name = "pictureBoxWebVttStyle";
this.pictureBoxWebVttStyle.Size = new System.Drawing.Size(32, 32);
this.pictureBoxWebVttStyle.TabIndex = 60;
this.pictureBoxWebVttStyle.TabStop = false;
//
// Settings
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@ -5392,6 +5392,7 @@
this.groupBox2.PerformLayout();
this.groupBoxShowToolBarButtons.ResumeLayout(false);
this.groupBoxShowToolBarButtons.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxWebVttStyle)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxEbuProperties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxWebVttProperties)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxIttProperties)).EndInit();
@ -5436,7 +5437,6 @@
this.groupBoxProxyAuthentication.ResumeLayout(false);
this.groupBoxProxyAuthentication.PerformLayout();
this.panelFileTypeAssociations.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pictureBoxWebVttStyle)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();