feat(glass): user-facing Image-fade slider under Settings > Background image
Replaces the dev-only backdrop-fade knob with a real control: when Background image is on (dark theme), a 0-100% 'Image fade' slider appears beneath it and drives --bg-fade live (higher = fainter). Persists to DB + localStorage via the existing theme prefs path (ThemePrefs.bgFade, applyTheme sets the CSS var). Removed --bg-fade from the GlassTuner so the two don't fight over the var.
This commit is contained in:
parent
f9f90cf609
commit
a187b2f475
6 changed files with 25 additions and 1 deletions
|
|
@ -169,6 +169,24 @@ function Appearance({ prefs }: { prefs: PrefsController }) {
|
|||
onChange={(v) => setTheme({ ...theme, bgImage: v })}
|
||||
/>
|
||||
</SettingRow>
|
||||
{theme.mode === "dark" && theme.bgImage && (
|
||||
<div className="pl-1 pb-1">
|
||||
<div className="flex items-center justify-between text-xs text-muted mb-1">
|
||||
<span>{t("settings.appearance.backgroundFade")}</span>
|
||||
<span className="tabular-nums">{theme.bgFade}%</span>
|
||||
</div>
|
||||
<input
|
||||
type="range"
|
||||
min={0}
|
||||
max={100}
|
||||
step={1}
|
||||
value={theme.bgFade}
|
||||
onChange={(e) => setTheme({ ...theme, bgFade: Number(e.target.value) })}
|
||||
aria-label={t("settings.appearance.backgroundFade")}
|
||||
className="w-full accent-accent"
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
<SettingRow label={t("settings.appearance.listView")} hint={t("settings.appearance.listViewHint")}>
|
||||
<Switch
|
||||
label={t("settings.appearance.listView")}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue