Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
# Conflicts:
#	UIComposites/HotkeyEditor.Designer.cs
  • Loading branch information
radj307 committed Feb 21, 2022
2 parents 72a176a + e239aba commit 5d60341
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 23 deletions.
3 changes: 3 additions & 0 deletions UIComposites/ColorScheme.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,18 @@ public ColorScheme(DefaultColorBinding defaultColors, List<IColorBinding> colors
{
Theme = colors;
Default = defaultColors;
BorderHighlight = new();
}
public ColorScheme()
{
Theme = new();
Default = new();
BorderHighlight = new();
}

public List<IColorBinding> Theme;
public DefaultColorBinding Default;
public DefaultColorBinding BorderHighlight;

private IColorBinding GetApplicableColor(Control type)
{
Expand Down
6 changes: 4 additions & 2 deletions UIComposites/ColorSchemes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ public partial class ColorScheme
public static readonly ColorScheme LightMode = new()
{
Default = new(Color.Black, Color.WhiteSmoke),
BorderHighlight = new(Color.Black, Color.WhiteSmoke),
Theme = new()
{
new ColorBinding<Panel>(Color.Transparent, Color.WhiteSmoke),
Expand All @@ -21,14 +22,15 @@ public partial class ColorScheme
};
public static readonly ColorScheme DarkMode = new()
{
Default = new(Color.WhiteSmoke, Color.FromArgb(75, 75, 75)),
Default = new(Color.WhiteSmoke, Color.FromArgb(50, 50, 50)),
BorderHighlight = new(Color.WhiteSmoke, Color.Magenta),
Theme = new()
{
new ColorBinding<Panel>(Color.Transparent, Color.FromArgb(60, 60, 60)),
new ColorBinding<GroupBox>(Color.WhiteSmoke, Color.FromArgb(60, 60, 60)),
new ColorBinding<Label>(Color.WhiteSmoke, Color.Transparent),
new ColorBinding<CheckBox>(Color.WhiteSmoke, Color.FromArgb(60, 60, 60)),
new ColorBinding<ComboBox>(Color.WhiteSmoke, Color.FromArgb(75, 75, 75)),
new ColorBinding<ComboBox>(Color.WhiteSmoke, Color.FromArgb(50, 50, 50)),
new ColorBinding<NumericUpDown>(Color.WhiteSmoke, Color.FromArgb(60, 60, 60)),
new ColorBinding<UserControl>(Color.WhiteSmoke, Color.FromArgb(60, 60, 60)),
new ColorBinding<Tab>(Color.WhiteSmoke, Color.FromArgb(60, 60, 60))
Expand Down
15 changes: 10 additions & 5 deletions UIComposites/HotkeyEditor.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 21 additions & 16 deletions UIComposites/SettingsPane.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5d60341

Please sign in to comment.