mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 04:33:04 +01:00
Try to fix #5574 - thx OmrSi :)
Avoid being dependent on the order of stuff in the auto-generated main designer file
This commit is contained in:
parent
9ecc6e636b
commit
464a8dd07c
@ -106,7 +106,9 @@ namespace Nikse.SubtitleEdit.Controls
|
||||
|
||||
try
|
||||
{
|
||||
textBox.Font = gs.SubtitleTextBoxFontBold ? new Font(gs.SubtitleFontName, gs.SubtitleTextBoxFontSize, FontStyle.Bold) : new Font(gs.SubtitleFontName, gs.SubtitleTextBoxFontSize);
|
||||
var f = gs.SubtitleTextBoxFontBold ? new Font(gs.SubtitleFontName, gs.SubtitleTextBoxFontSize, FontStyle.Bold) : new Font(gs.SubtitleFontName, gs.SubtitleTextBoxFontSize);
|
||||
TextBoxFont = f;
|
||||
textBox.Font = f;
|
||||
textBox.ForeColor = gs.SubtitleFontColor;
|
||||
textBox.BackColor = gs.SubtitleBackgroundColor;
|
||||
}
|
||||
|
@ -268,6 +268,8 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
UiUtil.FixLargeFonts(tabControlModes, buttonAutoBreak);
|
||||
UiUtil.FixLargeFonts(groupBoxEdit, buttonAutoBreak);
|
||||
UiUtil.InitializeSubtitleFont(textBoxSource);
|
||||
UiUtil.InitializeSubtitleFont(textBoxListViewText);
|
||||
UiUtil.InitializeSubtitleFont(textBoxListViewTextOriginal);
|
||||
UiUtil.InitializeSubtitleFont(SubtitleListview1);
|
||||
|
||||
using (var graphics = CreateGraphics())
|
||||
|
@ -504,7 +504,11 @@ namespace Nikse.SubtitleEdit.Logic
|
||||
control.Font = new Font(gs.SubtitleFontName, gs.SubtitleListViewFontSize);
|
||||
}
|
||||
}
|
||||
else if (control is SETextBox || control is TextBox)
|
||||
else if (control is SETextBox seTextBox)
|
||||
{
|
||||
seTextBox.UpdateFontAndColors(seTextBox);
|
||||
}
|
||||
else if (control is TextBox)
|
||||
{
|
||||
if (gs.SubtitleTextBoxFontBold)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user