Improve preview background for dark theme

This commit is contained in:
Nikolaj Olsson 2020-12-18 22:37:40 +01:00
parent d9845b5dc4
commit 6db272c437
4 changed files with 4 additions and 1 deletions

View File

@ -2116,7 +2116,7 @@ can edit in same subtitle file (collaboration)</Information>
<HtmlColor>Html color</HtmlColor>
<AssaColor>ASSA color</AssaColor>
<DarkTheme>Dark theme</DarkTheme>
<DarkThemeEnabled>Dark theme enabled</DarkThemeEnabled>
<DarkThemeEnabled>Use dark theme</DarkThemeEnabled>
<UpdateShortcut>Update</UpdateShortcut>
<FoucsSetVideoPosition>Focus set video position</FoucsSetVideoPosition>
<ToggleDockUndockOfVideoControls>Toggle dock/undock of video controls</ToggleDockUndockOfVideoControls>

View File

@ -113,6 +113,7 @@ namespace Nikse.SubtitleEdit.Forms.Options
labelStatus.Text = string.Empty;
_rulesProfiles = new List<RulesProfile>(Configuration.Settings.General.Profiles);
var gs = Configuration.Settings.General;
_backgroundImageDark = Configuration.Settings.General.UseDarkTheme;
checkBoxToolbarNew.Checked = gs.ShowToolbarNew;
checkBoxToolbarOpen.Checked = gs.ShowToolbarOpen;

View File

@ -47,6 +47,7 @@ namespace Nikse.SubtitleEdit.Forms.Styles
_header = subtitle.Header;
_format = format;
_isSubStationAlpha = _format.Name == SubStationAlpha.NameOfFormat;
_backgroundImageDark = Configuration.Settings.General.UseDarkTheme;
if (_header != null && _header.Contains("http://www.w3.org/ns/ttml"))
{

View File

@ -30,6 +30,7 @@ namespace Nikse.SubtitleEdit.Forms.Styles
comboBoxCollision.SelectedIndex = 0;
_header = subtitle.Header;
_isSubStationAlpha = format.Name == SubStationAlpha.NameOfFormat;
_backgroundImageDark = Configuration.Settings.General.UseDarkTheme;
if (_header == null || !_header.Contains("style:", StringComparison.OrdinalIgnoreCase))
{
ResetHeader();