feat(readability): add scalable text and responsive high-contrast layouts (U13)

This commit is contained in:
2026-11-02 19:33:50 +01:00
parent 45fe327840
commit 9f8c4b7af1
8 changed files with 80 additions and 4 deletions
@@ -1,9 +1,21 @@
using Microsoft.JSInterop;
using System.Reflection;
namespace Duempelkas.App.Components.Layout;
public partial class MainLayout
{
private int fontScale = 100;
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender)
{
var value = await JS.InvokeAsync<int>("duempelkasReading.get");
fontScale = value is 125 or 150 or 200 ? value : 100;
StateHasChanged();
}
}
private async Task ApplyTextScale() => await JS.InvokeVoidAsync("duempelkasReading.set", fontScale);
#region Fields
private bool showAboutDialog;