Work on disabled and dark theme

This commit is contained in:
niksedk 2023-08-05 08:41:39 +02:00
parent 93f3a29581
commit 978b1534bb
3 changed files with 12 additions and 15 deletions

View File

@ -104,7 +104,7 @@ namespace Nikse.SubtitleEdit.Controls
var rectangle = new Rectangle(0, 0, Width, Height);
using (var font = new Font(Font, FontStyle.Italic))
using (var font = new Font(Font.FontFamily, Font.Size-1, FontStyle.Italic))
{
if (UseCompatibleTextRendering)
{

View File

@ -105,7 +105,7 @@
//
// groupBoxImportText
//
this.groupBoxImportText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
this.groupBoxImportText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBoxImportText.Controls.Add(this.buttonBrowseEncoding);
this.groupBoxImportText.Controls.Add(this.labelEncoding);
@ -136,7 +136,7 @@
// textBoxText
//
this.textBoxText.AllowDrop = true;
this.textBoxText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
this.textBoxText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBoxText.Location = new System.Drawing.Point(6, 91);
this.textBoxText.MaxLength = 0;
@ -152,8 +152,8 @@
// listViewInputFiles
//
this.listViewInputFiles.AllowDrop = true;
this.listViewInputFiles.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
this.listViewInputFiles.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.listViewInputFiles.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeaderFName,
@ -619,8 +619,8 @@
//
// groupBoxImportResult
//
this.groupBoxImportResult.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
this.groupBoxImportResult.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.groupBoxImportResult.Controls.Add(this.SubtitleListview1);
this.groupBoxImportResult.Location = new System.Drawing.Point(12, 428);
@ -717,8 +717,8 @@
//
this.SubtitleListview1.AllowColumnReorder = true;
this.SubtitleListview1.AllowDrop = true;
this.SubtitleListview1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
this.SubtitleListview1.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.SubtitleListview1.ContextMenuStrip = this.contextMenuStripPreview;
this.SubtitleListview1.FirstVisibleIndex = -1;

View File

@ -9912,12 +9912,9 @@ namespace Nikse.SubtitleEdit.Forms
buttonUnBreak.Enabled = false;
buttonAutoBreak.Enabled = false;
numericUpDownLayer.Enabled = false;
if (!Configuration.Settings.General.UseDarkTheme)
{
labelText.Enabled = false;
labelStartTime.Enabled = false;
labelDuration.Enabled = false;
}
labelText.Enabled = false;
labelStartTime.Enabled = false;
labelDuration.Enabled = false;
textBoxListViewText.ContextMenuStrip = null;