# Title bar is not black when using Dark Mode on Windows

**URL:** <https://forums.ankiweb.net/t/title-bar-is-not-black-when-using-dark-mode-on-windows/46614>\
**Category:** Suggestions\
**Created:** [June 30, 2024, 1:27pm UTC](https://forums.ankiweb.net/t/title-bar-is-not-black-when-using-dark-mode-on-windows/46614 "2024-06-30T13:27:05Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![qubist-pixel](https://avatars.discourse-cdn.com/v4/letter/q/58956e/32.png) [@qubist-pixel](https://forums.ankiweb.net/u/qubist-pixel)\
**Post date:** [June 30, 2024, 1:27pm UTC](https://forums.ankiweb.net/t/title-bar-is-not-black-when-using-dark-mode-on-windows/46614/1 "2024-06-30T13:27:05Z")

</div>

The title bar is not black when using Anki in dark mode on Windows 11.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/a/0/a0fc97c2dca750182c26f87a9ed02bc9c370a88e.png)

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [June 30, 2024, 4:07pm UTC](https://forums.ankiweb.net/t/title-bar-is-not-black-when-using-dark-mode-on-windows/46614/2 "2024-06-30T16:07:52Z")

</div>

What’s your version information (from Help \> About \> Copy debug info)?

For me (version info below) – Yes, you’re right for an unfocused window, but for the focused window it appears to be fine.

It looks like it’s doing the identical color switching as on Light Theme – focused window has gray bar, unfocused window has white bar. For Dark Theme, the unfocused window title bar should either not change (still gray), or should get a darker color.

[Preferences \> Theme \> Dark]

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/0/a/0a3173c2b234209bc7e69ada682bface65a142d1.png)

[Preferences \> Theme \> Light]

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/8/b/8bc214fd89d383ab95d476444f23cf0ada4f7cd8.png)

Version info –  
Anki 24.06.2 (33a92379) (ao)  
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1  
Platform: Windows-10-10.0.22621

---

<div class="post-metadata">

**Author:** ![qubist-pixel](https://avatars.discourse-cdn.com/v4/letter/q/58956e/32.png) [@qubist-pixel](https://forums.ankiweb.net/u/qubist-pixel)\
**Post date:** [July 2, 2024, 2:57pm UTC](https://forums.ankiweb.net/t/title-bar-is-not-black-when-using-dark-mode-on-windows/46614/3 "2024-07-02T14:57:29Z")

</div>

```auto
Anki 24.06.2 (33a92379) (ao)
Python 3.9.18 Qt 5.15.2 PyQt 5.15.5
Platform: Windows-10-10.0.22621

```

For me, it’s white whether the window is focused or not. Perhaps due to qt5 ?

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [July 2, 2024, 4:12pm UTC](https://forums.ankiweb.net/t/title-bar-is-not-black-when-using-dark-mode-on-windows/46614/4 "2024-07-02T16:12:00Z")

</div>

Definitely could be a Qt difference. Thanks for posting that. It will help the devs figure out what can be fixed!

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [July 3, 2024, 3:50pm UTC](https://forums.ankiweb.net/t/title-bar-is-not-black-when-using-dark-mode-on-windows/46614/5 "2024-07-03T15:50:28Z")

</div>

If it’s a Qt5-only issue, this is not something that is going to get fixed, as Qt5 is no longer being updated by its developers.

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [July 3, 2024, 4:12pm UTC](https://forums.ankiweb.net/t/title-bar-is-not-black-when-using-dark-mode-on-windows/46614/6 "2024-07-03T16:12:20Z")

</div>

Even in Qt6 though – the title bar of the _unfocused_ window changes to white despite the Dark theme. Is that unfixable as well?

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [July 3, 2024, 4:25pm UTC](https://forums.ankiweb.net/t/title-bar-is-not-black-when-using-dark-mode-on-windows/46614/7 "2024-07-03T16:25:13Z")

</div>

There might be hope for Qt6, but it’s not something I’ve looked into I’m afraid.

---

<div class="post-metadata">

**Author:** ![vaibhav](https://avatars.discourse-cdn.com/v4/letter/v/c68b51/32.png) [@vaibhav](https://forums.ankiweb.net/u/vaibhav)\
**Post date:** [July 3, 2024, 4:42pm UTC](https://forums.ankiweb.net/t/title-bar-is-not-black-when-using-dark-mode-on-windows/46614/8 "2024-07-03T16:42:58Z")

</div>

> [@Danika\_Dakika](#):
>
> Even in Qt6 though – the title bar of the _unfocused_ window changes to white despite the Dark theme.

Can’t reproduce in Anki 24.06.3 running on Windows 11.

---

<div class="post-metadata">

**Author:** ![jcznk](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/jcznk/32/15215_2.png) [@jcznk](https://forums.ankiweb.net/u/jcznk)\
**Post date:** [July 4, 2024, 3:28am UTC](https://forums.ankiweb.net/t/title-bar-is-not-black-when-using-dark-mode-on-windows/46614/9 "2024-07-04T03:28:54Z")

</div>

On my Windows 10 computer, using Anki 24.06.3 qt6, I can change Anki’s title bar to black by setting the computer’s system theme to dark.

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [July 4, 2024, 9:04am UTC](https://forums.ankiweb.net/t/title-bar-is-not-black-when-using-dark-mode-on-windows/46614/10 "2024-07-04T09:04:44Z")

</div>

I’m not a regular Windows user, and don’t know what’s considered normal here.

@abdo, if you think Anki’s doing something wrong here and feel like digging into it, it would be appreciated. 🙂

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [July 4, 2024, 4:41pm UTC](https://forums.ankiweb.net/t/title-bar-is-not-black-when-using-dark-mode-on-windows/46614/11 "2024-07-04T16:41:43Z")

</div>

@qubist-pixel @vaibhav @jcznk  
There are a couple more variables here that could also account for why we’re seeing different things. For each of you –

1. Do you have the Anki theme set to `Dark` or `Follow System`?
2. Do you have the Windows mode [Settings \> Personalization \> Colors] set to `Dark` or `Light` (or `Custom`)?

* * *

On mine [Windows 11] –

1. Anki theme \> `Dark`
2. Mode is `Custom`, so it’s broken out into 2 settings – default Windows mode \> `Dark` – default app mode \> `Light`

---

<div class="post-metadata">

**Author:** ![vaibhav](https://avatars.discourse-cdn.com/v4/letter/v/c68b51/32.png) [@vaibhav](https://forums.ankiweb.net/u/vaibhav)\
**Post date:** [July 4, 2024, 5:03pm UTC](https://forums.ankiweb.net/t/title-bar-is-not-black-when-using-dark-mode-on-windows/46614/12 "2024-07-04T17:03:58Z")

</div>

On mine [Windows 11] –

- Anki theme: `Follow System`
- Windows color mode: `Dark`

---

<div class="post-metadata">

**Author:** ![jcznk](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/jcznk/32/15215_2.png) [@jcznk](https://forums.ankiweb.net/u/jcznk)\
**Post date:** [July 4, 2024, 10:52pm UTC](https://forums.ankiweb.net/t/title-bar-is-not-black-when-using-dark-mode-on-windows/46614/13 "2024-07-04T22:52:03Z")

</div>

Windows 10, Anki 24.06.3, qt6

1. Anki theme: either Dark or Follow System
2. Windows color mode: Dark

---

<div class="post-metadata">

**Author:** ![qubist-pixel](https://avatars.discourse-cdn.com/v4/letter/q/58956e/32.png) [@qubist-pixel](https://forums.ankiweb.net/u/qubist-pixel)\
**Post date:** [July 6, 2024, 2:41pm UTC](https://forums.ankiweb.net/t/title-bar-is-not-black-when-using-dark-mode-on-windows/46614/14 "2024-07-06T14:41:18Z")

</div>

@Danika_Dakika  
Anki Theme : Follow System  
Windows : Dark

@dae : I tried the qt6 build and it does not have this issue. But @Danika_Dakika has set the app mode to `Light` in Windows and `Dark` Theme in Anki. Unfocused Anki windows have light title bar which is abnormal behaviour.

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [July 15, 2024, 3:50am UTC](https://forums.ankiweb.net/t/title-bar-is-not-black-when-using-dark-mode-on-windows/46614/15 "2024-07-15T03:50:58Z")

</div>

@abdo Before you spend any time on this –

Since the initial issue is Qt5 – it is probably not fixable, yeah?

The separate Qt6 issue that I stumbled into is that when Windows is set to use a “Default App Mode” of Light – Anki being set to Dark Theme does not override that for the title bar of the unfocused windows.

![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/8/6/86b046cbd915da383dcadde088af12fcdd1c49f7.png)

If that’s as bad as life gets for me – I’m doing fine. So don’t put effort into this one on my account. 😅

---

<div class="post-metadata">

**Author:** ![abdo](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/abdo/32/654_2.png) [@abdo](https://forums.ankiweb.net/u/abdo)\
**Post date:** [July 15, 2024, 7:55am UTC](https://forums.ankiweb.net/t/title-bar-is-not-black-when-using-dark-mode-on-windows/46614/16 "2024-07-15T07:55:37Z")

</div>

> [@Danika\_Dakika](#):
>
> The separate Qt6 issue that I stumbled into is that when Windows is set to use a “Default App Mode” of Light – Anki being set to Dark Theme does not override that for the title bar of the unfocused windows.

I can reproduce this. Fixing it apparently requires registry hacks: [Title bar always white on windows 10 · Issue #834 · equalsraf/neovim-qt · GitHub](https://github.com/equalsraf/neovim-qt/issues/834)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [August 14, 2024, 7:56am UTC](https://forums.ankiweb.net/t/title-bar-is-not-black-when-using-dark-mode-on-windows/46614/17 "2024-08-14T07:56:25Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
