Skip to content

Commit

Permalink
Frontend: Theme switcher added to the top of the sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
Xian55 committed Dec 26, 2024
1 parent 1712b55 commit 4099503
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 16 deletions.
1 change: 0 additions & 1 deletion Frontend/Pages/BotHeader.razor
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
<div class="d-flex">
<div class="p-2 flex-grow-1 bd-highlight">
Player
<ThemeSwitcher />
</div>
<div class="p-2 bd-highlight">
<div class="align-items-start">
Expand Down
11 changes: 4 additions & 7 deletions Frontend/Pages/GoalsComponent.razor
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,14 @@
<CardHeader>
<div class="d-flex">
<div class="p-2 flex-grow-1 bd-highlight">
Goals
Goals<br/>
@PlayerReader.MinRange()-@PlayerReader.MaxRange()
</div>
<div class="p-2 bd-highlight">
@PlayerReader.MinRange() - @PlayerReader.MaxRange()

@ttk.Time.ToString("F1")

<span>
Net: @PlayerReader.NetworkLatency.ToString()ms |
Npc: @NpcLatency.ToString("0.0")ms |
Bot: @addonReader.AvgUpdateLatency.ToString("0.0")ms
Bot: @addonReader.AvgUpdateLatency.ToString("0.0")ms<br/>
Net: @PlayerReader.NetworkLatency.ToString()ms
</span>
</div>
<div class="p-2 bd-highlight">
Expand Down
1 change: 0 additions & 1 deletion Frontend/Pages/RouteComponent.razor
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
<div class="d-flex">
<div class="p-2 flex-grow-1 bd-highlight">
Route @routeSymbol
<ThemeSwitcher OnThemeChanged="OnThemeChanged" />
</div>

<div class="p-2 bd-highlight">
Expand Down
17 changes: 10 additions & 7 deletions Frontend/Shared/MainLayout.razor
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@

<BlazorBootstrapLayout>
<SidebarSection>
<Sidebar2 Href="/"
@ref="sidebar"
Title="Puppet"
DataProvider="Sidebar2DataProvider"
Width="146"
WidthUnit="Unit.Px">
</Sidebar2>
<div class="grid">
<ThemeSwitcher Class="ms-5" />
<Sidebar2 Href="/"
@ref="sidebar"
Title="Puppet"
DataProvider="Sidebar2DataProvider"
Width="146"
WidthUnit="Unit.Px">
</Sidebar2>
</div>
</SidebarSection>

<ContentSection>
Expand Down

0 comments on commit 4099503

Please sign in to comment.