Skip to content

Commit

Permalink
Added MainWindowFont Theme Setting
Browse files Browse the repository at this point in the history
  • Loading branch information
sorpdev committed May 12, 2024
1 parent 0f96099 commit 268ebaa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ShareX.HelpersLib/ShareXTheme.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ public Color DarkBackgroundColor

private Color textColor;

public Font MainWindowFont { get; set; } = new Font("Segoe UI", 9.75f);

[Editor(typeof(MyColorEditor), typeof(UITypeEditor)), TypeConverter(typeof(MyColorConverter))]
public Color TextColor
{
Expand Down
1 change: 1 addition & 0 deletions ShareX/Forms/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,7 @@ public void UpdateTheme()
ShareXResources.ApplyCustomThemeToContextMenuStrip(cmsTaskInfo);
ttMain.BackColor = ShareXResources.Theme.BackgroundColor;
ttMain.ForeColor = ShareXResources.Theme.TextColor;
lvUploads.Font = ShareXResources.Theme.MainWindowFont;
lvUploads.BackColor = ShareXResources.Theme.BackgroundColor;
lvUploads.ForeColor = ShareXResources.Theme.TextColor;
scMain.SplitterColor = ShareXResources.Theme.BackgroundColor;
Expand Down

0 comments on commit 268ebaa

Please sign in to comment.