Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(ui): render native scrollbars/controls dark in dark theme (Windows) (#3922)

Louis Beaumont2b6fd2fa7fe4
diff --git a/apps/screenpipe-app-tauri/app/globals.css b/apps/screenpipe-app-tauri/app/globals.css
index e735eb184..7d56dc27d 100644
--- a/apps/screenpipe-app-tauri/app/globals.css
+++ b/apps/screenpipe-app-tauri/app/globals.css
@@ -4,6 +4,10 @@
@layer base {
:root {
+ /* Tell the engine the UI is light by default so native scrollbars and form
+ controls render correctly. Overridden by `.dark` below. (#3746) */
+ color-scheme: light;
+
/*
* Screenpipe Brand Style Guide
* Black & White Geometric Minimalism
@@ -117,6 +121,12 @@
}
.dark {
+ /* Match native scrollbars and form controls to the dark UI even when the OS
+ is in light mode. The theme is class-based (`.dark` on <html>), not
+ prefers-color-scheme, so without this the WebView keeps painting a light
+ scrollbar/controls in dark mode (most visible on Windows). (#3746) */
+ color-scheme: dark;
+
/* Base colors - Slightly lifted black */
--background: 0 0% 7%; /* #121212 */
--foreground: 0 0% 100%; /* #FFFFFF */