Skip to content

Commit 05a0e33

Browse files
committed
CHanged application theme
1 parent 3c41557 commit 05a0e33

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

WebFrontend/App.razor

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
11
<Router AppAssembly="@typeof(Program).Assembly" PreferExactMatches="@true">
22
<Found Context="routeData">
3-
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)"/>
4-
<MatPortalHost/>
5-
<MatToastContainer />
3+
<MatThemeProvider Theme="appTheme">
4+
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)"/>
5+
<MatPortalHost/>
6+
<MatToastContainer/>
7+
</MatThemeProvider>
68
</Found>
79
<NotFound>
810
<LayoutView Layout="@typeof(MainLayout)">
911
<p>Sorry, there's nothing at this address.</p>
1012
</LayoutView>
1113
</NotFound>
1214
</Router>
15+
16+
17+
@code
18+
{
19+
MatTheme appTheme = new()
20+
{
21+
Primary = MatThemeColors.BlueGrey._500.Value
22+
};
23+
}

0 commit comments

Comments
 (0)