mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 20:52:44 +01:00
Minor fix for theme
This commit is contained in:
parent
6108f31f66
commit
5d7105557b
@ -318,6 +318,8 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
textBoxListViewText.BackColor = !IsSubtitleLoaded ? SystemColors.ActiveBorder : SystemColors.WindowFrame;
|
||||
textBoxListViewTextOriginal.BackColor = !IsSubtitleLoaded ? SystemColors.ActiveBorder : SystemColors.WindowFrame;
|
||||
timeUpDownStartTime.Theme();
|
||||
timeUpDownVideoPosition.Theme();
|
||||
timeUpDownVideoPositionAdjust.Theme();
|
||||
|
||||
if (Application.RenderWithVisualStyles && !Configuration.Settings.General.UseDarkTheme)
|
||||
{
|
||||
@ -5663,6 +5665,8 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
SubtitleListview1.ForeColor = Configuration.Settings.General.SubtitleFontColor;
|
||||
SubtitleListview1.BackColor = Configuration.Settings.General.SubtitleBackgroundColor;
|
||||
timeUpDownStartTime.Theme();
|
||||
timeUpDownVideoPosition.Theme();
|
||||
timeUpDownVideoPositionAdjust.Theme();
|
||||
|
||||
SaveSubtitleListviewIndices();
|
||||
UiUtil.InitializeSubtitleFont(SubtitleListview1);
|
||||
|
@ -976,19 +976,18 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
return new SolidBrush(SelectedTabColor);
|
||||
}
|
||||
|
||||
bool isHighlighted = _tabRects[index].Contains(_mouseCursor);
|
||||
var isHighlighted = _tabRects[index].Contains(_mouseCursor);
|
||||
return isHighlighted
|
||||
? new SolidBrush(HighlightedTabColor)
|
||||
: new SolidBrush(BackColor);
|
||||
}
|
||||
|
||||
private Pen GetBorderPen() =>
|
||||
new Pen(SystemBrushes.ControlDark, BorderWidth);
|
||||
private static Pen GetBorderPen() => new Pen(SystemBrushes.ControlDark, BorderWidth);
|
||||
}
|
||||
|
||||
private static void SetStyle(Control control, ControlStyles styles, bool value) =>
|
||||
typeof(TabControl).GetMethod("SetStyle", BindingFlags.Instance | BindingFlags.NonPublic)
|
||||
.Invoke(control, new object[] { styles, value });
|
||||
?.Invoke(control, new object[] { styles, value });
|
||||
|
||||
internal static void SetDarkTheme(ToolStripItem item)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user