-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix issues with new UI, add color profiles, add sdr brightness for AMD
- Loading branch information
Showing
95 changed files
with
12,267 additions
and
10,143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
@using ColorControl.Shared.Contracts | ||
@using ColorControl.Shared.Services | ||
@using ColorControl.Shared.Common | ||
@using ColorControl.Shared.Contracts | ||
@using ColorControl.UI.Services | ||
@using ColorControl.UI.Components.Pages.Generic | ||
@using Microsoft.AspNetCore.Components.Server.ProtectedBrowserStorage | ||
|
||
@inject AppState AppState | ||
@inject RpcUiClientService ClientService; | ||
@inject NavigationManager _navigationManager; | ||
@inject RpcUiClientService _rpcClientService | ||
@inject NavigationManager _navigationManager | ||
@inject NotificationService _notificationService | ||
@inject ProtectedSessionStorage _sessionStorage | ||
|
||
@implements IDisposable | ||
@attribute [StreamRendering] | ||
|
||
|
@@ -15,28 +22,33 @@ | |
<base href="/" /> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous"> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css"> | ||
<link rel="stylesheet" href="app.css" /> | ||
<link rel="stylesheet" href="ColorControl.UI.styles.css" /> | ||
<link rel="icon" type="image/png" href="favicon.png" /> | ||
|
||
<HeadOutlet /> | ||
</head> | ||
|
||
<body> | ||
<Routes /> | ||
<script src="_framework/blazor.web.js"></script> | ||
<NotificationsComponent></NotificationsComponent> | ||
</body> | ||
|
||
</html> | ||
@code { | ||
private Config? Config; | ||
|
||
protected override async Task OnInitializedAsync() | ||
{ | ||
var config = await ClientService.CallAsync<Config>("OptionsService", "GetConfig"); | ||
Config ??= await _rpcClientService.CallAsync<Config>("OptionsService", "GetConfig"); | ||
|
||
var newTheme = config.UseDarkMode ? "dark" : "light"; | ||
var newTheme = Config?.UseDarkMode == true ? "dark" : "light"; | ||
|
||
if (newTheme != AppState.SelectedTheme) | ||
{ | ||
AppState.SelectedTheme = config.UseDarkMode ? "dark" : "light"; | ||
AppState.SelectedTheme = Config?.UseDarkMode == true ? "dark" : "light"; | ||
_navigationManager.Refresh(); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.