Skip to content

Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.

a11y: Reduce Transparency makes the bars opaque where backdrop-filter works

Ole Störbrock8eb97f582d02
diff --git a/frontend/src/index.css b/frontend/src/index.css
index c10429c84..f46d4570f 100644
--- a/frontend/src/index.css
+++ b/frontend/src/index.css
@@ -505,6 +505,17 @@ h4.sec{
#timer{background:var(--surface)}
#toast{background:var(--surface-2)}
}
+/* The setting itself, read directly. The @supports fallback above only fires where backdrop-filter
+ is missing; a browser that has it keeps the bars see-through even with Reduce Transparency on.
+ Same opaque fills, on every translucent surface. */
+@media (prefers-reduced-transparency: reduce){
+ #tabbar,#timer,#toast,.conn-bar,.whdr.stick{-webkit-backdrop-filter:none;backdrop-filter:none}
+ #tabbar{background:var(--bg-el)}
+ :root[data-theme="light"] #tabbar{background:#f9f9fb}
+ #timer{background:var(--surface)}
+ #toast{background:var(--surface-2)}
+ .conn-bar,.whdr.stick{background:var(--bg)}
+}
/* ------------------------------------------------------------ week strip -- */
.week{display:flex;justify-content:space-between;gap:4px}