Skip to content

Commit

Permalink
Idk
Browse files Browse the repository at this point in the history
  • Loading branch information
phasephasephase committed Jan 8, 2024
1 parent 811dc27 commit 24b098c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion JiayiLauncher/Settings/JiayiSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ public bool UseBackgroundImage
{
get => _themeState.ThemeStyles.GetProperty(":root", "--background-image")?.Value != "none";
set => _themeState.UpdateTheme("--background-image", value ? "url('')" : "none");

}

[JsonIgnore]
Expand Down
2 changes: 1 addition & 1 deletion JiayiLauncher/Shared/ThemeController.razor
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

var theme = CssBuilder.FromFile(themeStyles);
theme.UpdateProperty(":root", new CssProperty("--background-image",
$"url('{JiayiSettings.Instance.BackgroundImageUrl}')"));
JiayiSettings.Instance.UseBackgroundImage ? $"url('{JiayiSettings.Instance.BackgroundImageUrl}')" : "none"));

await base.OnInitializedAsync();
}
Expand Down

0 comments on commit 24b098c

Please sign in to comment.