# Light mode: Wrong colors for menu entries in dialogs

**URL:** https://resource.dopus.com/t/light-mode-wrong-colors-for-menu-entries-in-dialogs/50225
**Category:** Help & Support
**Created:** [April 10, 2024, 5:44pm UTC](https://resource.dopus.com/t/light-mode-wrong-colors-for-menu-entries-in-dialogs/50225 "2024-04-10T17:44:24Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![lxp](https://resource.dopus.com/user_avatar/resource.dopus.com/lxp/32/33734_2.png) [@lxp](https://resource.dopus.com/u/lxp)
#### Post date: [April 10, 2024, 5:44pm UTC](https://resource.dopus.com/t/light-mode-wrong-colors-for-menu-entries-in-dialogs/50225/1 "2024-04-10T17:44:24Z")

</div>

When selecting entries in a menu from a user dialog with the keyboard the currently active/selected entry gets a different color. This works well in dark mode, but in light mode, the color remains the same and the selection changes cannot be seen.

---

<div class="post-metadata">

### Author: ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)
#### Post date: [April 10, 2024, 9:33pm UTC](https://resource.dopus.com/t/light-mode-wrong-colors-for-menu-entries-in-dialogs/50225/2 "2024-04-10T21:33:26Z")

</div>

The difference there is down to the way the dark and light listview themes are configured by default:

- Light theme defers to whatever Windows does by default, where listview item text is black whether normal, selected, hot, etc.

- Dark theme makes selected item text brighter, so it shows up better against the fairly bright selection background color.

You can change it in both modes via **Preferences / Colors and Fonts / Windows Colors / Listviews / Items**.

But what does look wrong is that there's no focus/selection rectangle around the active item. That might be a bug.

Got some simple code to show a similar UI that we could play with? Is that a custom dialog or one of the Dialog's pre-baked prompts?

---

<div class="post-metadata">

### Author: ![lxp](https://resource.dopus.com/user_avatar/resource.dopus.com/lxp/32/33734_2.png) [@lxp](https://resource.dopus.com/u/lxp)
#### Post date: [April 11, 2024, 5:42am UTC](https://resource.dopus.com/t/light-mode-wrong-colors-for-menu-entries-in-dialogs/50225/3 "2024-04-11T05:42:52Z")

</div>

> [@Leo](#):
>
> dark and light listview themes

Now I know what they are called 🙂

All my settings in _Colors and Fonts_ are stock (except for quick filter background).

I played a bit around with the colors. The setting for _Item text_ has an effect, but the color for _Item frames_ never gets applied.

 ![image](https://resource.dopus.com/uploads/default/original/3X/8/2/82511fd114991e2ce5618829b29e719c66c47bf4.png)

> [@Leo](#):
>
> Got some simple code to show a similar UI that we could play with? Is that a custom dialog or one of the Dialog's pre-baked prompts?

That's a standard dialog from this add-in:

> [@Playground: Using the Evaluator in the Filter Bar](https://resource.dopus.com/t/playground-using-the-evaluator-in-the-filter-bar/49510/22):
>
> Update 2024-03-16 Converted the dropdown to a checkbox dialog. All checked items will be added to the evaluator clause (OR combined). Added two alternative modes of getting shell and custom column values. Now there are the modes A, B, and C. They ca…

The context menu should work on any column with less than 30 unique entries.

---

<div class="post-metadata">

### Author: ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)
#### Post date: [April 12, 2024, 12:31am UTC](https://resource.dopus.com/t/light-mode-wrong-colors-for-menu-entries-in-dialogs/50225/4 "2024-04-12T00:31:40Z")

</div>

Looks like it only goes wrong when launched via the header context menu. If I run it from the FAYT's command mode (`EditQuickFilter HEADERKEY=name`) it's OK.

When it goes wrong, the dialog never enables keyboard focus display. (Managing that is quite tricky sometimes. The way it's turned on and queries in Windows is frankly bizarre.)

We should be able to fix it, when we get a chance to look in detail.

---

<div class="post-metadata">

### Author: ![lxp](https://resource.dopus.com/user_avatar/resource.dopus.com/lxp/32/33734_2.png) [@lxp](https://resource.dopus.com/u/lxp)
#### Post date: [April 12, 2024, 8:39am UTC](https://resource.dopus.com/t/light-mode-wrong-colors-for-menu-entries-in-dialogs/50225/6 "2024-04-12T08:39:01Z")

</div>

> [@Leo](#):
>
> If I run it from the FAYT's command mode it's OK.

Debugging Skill Level: Advanced 👍

> Managing that is quite tricky sometimes. The way it's turned on and queries in Windows is frankly bizarre.

Wow, that bug seemed so minor, like just a typo or missing entry causing it. Apologies for throwing you into another battle with the OS 😉
