[GH-ISSUE #5538] [BUG]: Desktop App (Windows)> Native title bar stays white in dark mode, breaking visual consistency #5156

Closed
opened 2026-06-05 14:52:21 -04:00 by yindo · 1 comment
Owner

Originally created by @Nehal-aditya on GitHub (Apr 26, 2026).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5538

How are you running AnythingLLM?

AnythingLLM desktop app

What happened?

[BUG] Desktop App (Windows): Native title bar stays white in dark mode, breaking visual consistency

Labels: bug, UI / UX, windows, dark-mode


🖥️ How are you running AnythingLLM?

AnythingLLM Desktop App (Windows)


🐛 What happened?

On Windows 10 and Windows 11, the native OS title bar (the window chrome strip at the top, including the minimize, maximize, and close buttons) remains white / light-colored even when the AnythingLLM Desktop app is running in dark mode. The rest of the app UI renders correctly in dark, but the title bar is a stark white, making the window look broken and inconsistent. The app may also briefly flash a white splash screen on launch before the UI loads.


🔁 Steps to Reproduce

  1. Install and launch the AnythingLLM Desktop app on Windows 10 or Windows 11.
  2. Ensure the app is using its dark theme (the default out-of-the-box).
  3. Observe the title bar at the top of the window.

Expected Behavior

The native Windows title bar should render dark — matching the rest of the dark UI — just as apps like VS Code, Discord, and Obsidian do on Windows. The transition between title bar and app body should be seamless with no jarring color contrast.


Actual Behavior

The title bar stays white (system default), starkly contrasting the dark app body. The minimize / maximize / close buttons also render on a light background. The overall window looks visually inconsistent and unpolished on Windows.


🖥️ Environment

  • OS: Windows 10 / Windows 11
  • App version: v1.12.0
  • App theme: Dark (default)

📝 Additional Context

This is a known Windows behavior: the OS defaults the native title bar to light mode unless the application explicitly opts in to dark title bar rendering. AnythingLLM Desktop does not currently appear to signal this preference to Windows, so the title bar stays white regardless of the app's own theme.

Two previously closed issues touched on related dark mode problems with the desktop app on Windows — sharing them here as background, not as duplicates, since those were different symptoms:

  • #4346 (closed — "needs info / can't replicate") — "presumption of dark mode breaks visuals" — the app assuming system dark mode when the OS wasn't in it. The title bar issue here is the opposite case: the app UI is correctly dark but the OS title bar doesn't follow.
  • #4991 (closed — feature request) — "Dedicated Dark Theme option" — the app reverting to light mode when the Windows system theme changed. A related area but a distinct issue.

Note for maintainers: Since the desktop app's internal framework isn't documented in this repo, I'm not prescribing a specific fix. But community inspection of the distributed app (e.g. issue #5046) suggests the desktop is Electron-based with a dist-electron/main/index.js entry point. If that's the case, setting nativeTheme.themeSource = 'dark' in the main process, or using the Windows DWM API (DWMWA_USE_IMMERSIVE_DARK_MODE), would resolve this. Happy to dig deeper if helpful.


📎 Screenshots

Image

Are there known steps to reproduce?

No response

LLM Provider & Model (if applicable)

No response

Embedder Provider & Model (if applicable)

No response

Originally created by @Nehal-aditya on GitHub (Apr 26, 2026). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5538 ### How are you running AnythingLLM? AnythingLLM desktop app ### What happened? ## [BUG] Desktop App (Windows): Native title bar stays white in dark mode, breaking visual consistency **Labels:** `bug`, `UI / UX`, `windows`, `dark-mode` --- ### 🖥️ How are you running AnythingLLM? AnythingLLM Desktop App (Windows) --- ### 🐛 What happened? On Windows 10 and Windows 11, the native OS title bar (the window chrome strip at the top, including the minimize, maximize, and close buttons) remains **white / light-colored** even when the AnythingLLM Desktop app is running in dark mode. The rest of the app UI renders correctly in dark, but the title bar is a stark white, making the window look broken and inconsistent. The app may also briefly flash a white splash screen on launch before the UI loads. --- ### 🔁 Steps to Reproduce 1. Install and launch the AnythingLLM Desktop app on Windows 10 or Windows 11. 2. Ensure the app is using its dark theme (the default out-of-the-box). 3. Observe the title bar at the top of the window. --- ### ✅ Expected Behavior The native Windows title bar should render dark — matching the rest of the dark UI — just as apps like VS Code, Discord, and Obsidian do on Windows. The transition between title bar and app body should be seamless with no jarring color contrast. --- ### ❌ Actual Behavior The title bar stays white (system default), starkly contrasting the dark app body. The minimize / maximize / close buttons also render on a light background. The overall window looks visually inconsistent and unpolished on Windows. --- ### 🖥️ Environment - **OS:** Windows 10 / Windows 11 - **App version:** v1.12.0 - **App theme:** Dark (default) --- ### 📝 Additional Context This is a known Windows behavior: the OS defaults the native title bar to light mode unless the application explicitly opts in to dark title bar rendering. AnythingLLM Desktop does not currently appear to signal this preference to Windows, so the title bar stays white regardless of the app's own theme. Two previously closed issues touched on related dark mode problems with the desktop app on Windows — sharing them here as background, not as duplicates, since those were different symptoms: - **#4346** *(closed — "needs info / can't replicate")* — "presumption of dark mode breaks visuals" — the app assuming system dark mode when the OS wasn't in it. The title bar issue here is the *opposite* case: the app UI is correctly dark but the OS title bar doesn't follow. - **#4991** *(closed — feature request)* — "Dedicated Dark Theme option" — the app reverting to light mode when the Windows system theme changed. A related area but a distinct issue. > **Note for maintainers:** Since the desktop app's internal framework isn't documented in this repo, I'm not prescribing a specific fix. But community inspection of the distributed app (e.g. issue #5046) suggests the desktop is Electron-based with a `dist-electron/main/index.js` entry point. If that's the case, setting `nativeTheme.themeSource = 'dark'` in the main process, or using the Windows DWM API (`DWMWA_USE_IMMERSIVE_DARK_MODE`), would resolve this. Happy to dig deeper if helpful. --- ### 📎 Screenshots <img width="1920" height="1020" alt="Image" src="https://github.com/user-attachments/assets/0ff5ac90-c16a-41ef-9e21-c3541cee3874" /> ### Are there known steps to reproduce? _No response_ ### LLM Provider & Model (if applicable) _No response_ ### Embedder Provider & Model (if applicable) _No response_
yindo added the possible bug label 2026-06-05 14:52:21 -04:00
yindo closed this issue 2026-06-05 14:52:21 -04:00
Author
Owner

@timothycarambat commented on GitHub (Apr 28, 2026):

This only appears if you put the app in Dark (not System) mode in the UI, but the system is in light mode. IMO this is moving to wontfix as system elements should indeed honor the system theme.

<!-- gh-comment-id:4337757786 --> @timothycarambat commented on GitHub (Apr 28, 2026): This **only** appears if you put the app in `Dark` (not System) mode in the UI, but the system is in light mode. IMO this is moving to wontfix as system elements should indeed honor the system theme.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#5156