-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.razor
130 lines (121 loc) · 4.34 KB
/
App.razor
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<Fluxor.Blazor.Web.StoreInitializer />
<RadzenDialog />
<MBAnchor />
<CascadingAuthenticationState>
<CascadingValue Value="themes.Dark" Name="Theme">
<Router AppAssembly="typeof(Program).Assembly">
<Found Context="routeData">
<RouteView RouteData="routeData" DefaultLayout="typeof(MainLayout)" />
</Found>
<NotFound>
<MainLayout></MainLayout>
</NotFound>
</Router>
</CascadingValue>
</CascadingAuthenticationState>
@code{
Themes themes = new Themes
{
Dark = new Theme
{
SideBarOptions = new SideBarOptions
{
Color = "#818896",
BackgroundColor = "rgb(33, 37, 41)",
ActiveColor = "#030303",
ActiveBackgroundColor = "#707070",
HoverColor = "#030303",
HoverBackgroundColor = "#949494"
},
BackgroundOptions = new BackgroundOptions
{
Modal = "#363636"
},
ColorOptions = new ColorOptions
{
Body= "#444444",
Modal = "#DFDFDF"
}
}
};
//private Theme currentTheme = themes.Dark;
//public void OnThemeChanged(ThemeType type)
//{
// currentTheme = type switch
// {
// ThemeType.Dark => themes.Dark,
// ThemeType.Light => themes.Light,
// _ => themes.Dark
// };
//}
//private Theme theme = new Theme
//{
// IsRounded = true,
// BarOptions = new ThemeBarOptions()
// {
// HorizontalHeight = "64px",
// LightColors = new ThemeBarColorOptions
// {
// BackgroundColor = "#DFDFDF",
// Color = "#030303"
// },
// DarkColors = new ThemeBarColorOptions
// {
// Color = "#DFDFDF",
// BackgroundColor = "#363636",
// ItemColorOptions = new ThemeBarItemColorOptions
// {
// ActiveColor = "#030303",
// ActiveBackgroundColor = "#707070",
// HoverColor = "#030303",
// HoverBackgroundColor = "#949494"
// }
// }
// },
// BreakpointOptions = new ThemeBreakpointOptions
// {
// },
// //ColorOptions = new ThemeColorOptions
// //{
// // Primary = "#030303",
// // //Secondary = "#A65529",
// // //Success = "#23C02E",
// // //Info = "#9BD8FE",
// // //Warning = "#F8B86C",
// // //Danger = "#F95741",
// // //Light = "#F0F0F0",
// // //Dark = "#535353",
// //},
// BackgroundOptions = new ThemeBackgroundOptions
// {
// Primary = "#363636",
// Body = "#252526",
// Dark = "#252526",
// },
// TextColorOptions = new ThemeTextColorOptions
// {
// Body = "#DCDABD"
// },
// //ButtonOptions = new ThemeButtonOptions { },
// //DropdownOptions = new ThemeDropdownOptions { },
// InputOptions = new ThemeInputOptions
// {
// CheckColor = "#0288D1",
// },
// //CardOptions = new ThemeCardOptions { },
// //ModalOptions = new ThemeModalOptions { },
// //TabsOptions = new ThemeTabsOptions { },
// //ProgressOptions = new ThemeProgressOptions { },
// //AlertOptions = new ThemeAlertOptions { },
// //BreadcrumbOptions = new ThemeBreadcrumbOptions { },
// //BadgeOptions = new ThemeBadgeOptions { },
// //PaginationOptions = new ThemePaginationOptions { },
// TooltipOptions = new ThemeTooltipOptions
// {
// BackgroundColor = "#22c8ce",
// BackgroundOpacity = .7f,
// Color = "#ff0000",
// },
// IsGradient = true
//};
}