37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
#nullable enable
|
|
namespace Spark.Settings {
|
|
using mbts.spark;
|
|
|
|
using System.Composition;
|
|
|
|
class UserSettingsTheme {
|
|
public UserSettingsTheme() {
|
|
name = string.Empty;
|
|
value = new();
|
|
}
|
|
|
|
public UserSettingsTheme(string name, UserSettings value) {
|
|
this.name = name;
|
|
this.value = value;
|
|
}
|
|
|
|
public string name { get; }
|
|
public UserSettings value { get; }
|
|
}
|
|
|
|
class ExportedThemes {
|
|
[Export]
|
|
public UserSettingsTheme light_theme =>
|
|
new("Light", UserSettings.factory_defaults);
|
|
|
|
[Export]
|
|
public UserSettingsTheme dark_theme =>
|
|
new("Dark", UserSettings.factory_defaults.with(
|
|
market_view: bts.shell.market_view.MarketViewSettings.dark_theme_grid_settings,
|
|
time_and_sales: bts.shell.time_and_sales.TimeAndSalesSettings.dark_theme_grid_settings,
|
|
fills: bts.shell.fills.FillsSettings.dark_theme_grid_settings,
|
|
synthetic_management: bts.shell.SyntheticManagementSettings.dark_theme_grid_settings,
|
|
ladder: LadderSettings.dark_theme));
|
|
}
|
|
}
|