Skip to content

Commit eccc88e

Browse files
committed
Fixed theme support for new forms
1 parent 4ec7eb0 commit eccc88e

3 files changed

Lines changed: 51 additions & 29 deletions

File tree

Sonic-06-Mod-Manager/src/Environment3/ProfileCreator.Designer.cs

Lines changed: 29 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sonic-06-Mod-Manager/src/Environment3/ProfileCreator.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
*/
2626

2727
using System;
28+
using System.Drawing;
2829
using System.Windows.Forms;
2930

3031
namespace Unify.Environment3
@@ -35,6 +36,15 @@ public ProfileCreator(ListView modsList, ListView patchesList)
3536
{
3637
InitializeComponent();
3738

39+
// Set theme colours
40+
unifytb_ProfileCreator.ActiveColor =
41+
unifytb_ProfileCreator.HorizontalLineColor =
42+
Properties.Settings.Default.General_AccentColour;
43+
44+
// Set contrast colour
45+
if (Properties.Settings.Default.General_HighContrastText)
46+
unifytb_ProfileCreator.SelectedTextColor = SystemColors.ControlText;
47+
3848
Mods = modsList;
3949
Patches = patchesList;
4050
}

Sonic-06-Mod-Manager/src/Environment3/ProfileSelect.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
using System;
2828
using System.IO;
2929
using System.Linq;
30+
using System.Drawing;
3031
using System.Windows.Forms;
3132
using Unify.Messenger;
3233

@@ -38,6 +39,17 @@ public ProfileSelect()
3839
{
3940
InitializeComponent();
4041

42+
// Set theme colours
43+
unifytb_Profiles.ActiveColor =
44+
unifytb_Profiles.HorizontalLineColor =
45+
unifytb_Info.ActiveColor =
46+
unifytb_Info.HorizontalLineColor =
47+
Properties.Settings.Default.General_AccentColour;
48+
49+
// Set contrast colour
50+
if (Properties.Settings.Default.General_HighContrastText)
51+
unifytb_Profiles.SelectedTextColor = unifytb_Info.SelectedTextColor = SystemColors.ControlText;
52+
4153
// Display the last selected profile
4254
if (!string.IsNullOrEmpty(Properties.Settings.Default.General_Profile))
4355
{

0 commit comments

Comments
 (0)