add reader amoled mode; improve reader mode ui;

This commit is contained in:
Fabian Freund
2026-06-21 10:28:38 +02:00
parent 2060275c0e
commit 3f6f20d61d
18 changed files with 1265 additions and 38 deletions
@@ -1571,6 +1571,12 @@ abstract class GeckoEngineSettingsApi {
/// in place). This should only be requested for an explicit user toggle, not
/// during startup/replication restore, to avoid clobbering per-tab overrides.
void setGlobalDesktopMode(bool enable, bool applyToExistingTabs);
/// Sets whether the reader view dark color scheme should be rendered as pure
/// black (AMOLED). Mirrors WebLibre's "pure black" theme setting into
/// Mozilla's reader view extension. Persisted in SharedPreferences so a
/// cold-started reader view resolves the right value before Flutter runs.
void setReaderViewPureBlack(bool enabled);
}
@HostApi()