# The color of menus

**URL:** https://discourse.paraview.org/t/the-color-of-menus/17062
**Category:** Development
**Created:** [August 11, 2025, 9:34am UTC](https://discourse.paraview.org/t/the-color-of-menus/17062 "2025-08-11T09:34:15Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![jeDuck](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/898d66/32.png) [@jeDuck](https://discourse.paraview.org/u/jeDuck)
#### Post date: [August 11, 2025, 9:34am UTC](https://discourse.paraview.org/t/the-color-of-menus/17062/1 "2025-08-11T09:34:15Z")

</div>

Hello! All main menus, such as File, Edit, View, Objects e.t.c. have actions of white color. The actions in Filters and Extractors have gray color, the same as color as the panel with menus. Why are they different? Can I make them all of gray color?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 25, 2025, 11:17am UTC](https://discourse.paraview.org/t/the-color-of-menus/17062/2 "2025-08-25T11:17:31Z")

</div>

Do you mean everything is grayed out ?

Please share a screenshot.

---

<div class="post-metadata">

### Author: ![GregVernon](https://discourse.paraview.org/user_avatar/discourse.paraview.org/gregvernon/32/1494_2.png) [@GregVernon](https://discourse.paraview.org/u/GregVernon)
#### Post date: [August 25, 2025, 5:58pm UTC](https://discourse.paraview.org/t/the-color-of-menus/17062/3 "2025-08-25T17:58:36Z")

</div>

I believe what @jeDuck is referring to is that in 5.13, some of the drop-down menus use different background colors:

For example, the `Sources` menu has a color of `#ffffff`

 ![image](https://discourse.paraview.org/uploads/default/original/3X/a/e/aeb76eb12fd52ca9b955bcfe968ea9db572ec638.png)

While `Filters` menu has a background color of `#f0f0f0`

 ![image](https://discourse.paraview.org/uploads/default/original/3X/b/7/b783cd398da679ab22cb7d9868f86639e1d68c71.png)

I think this has been fixed in 6.0 however?

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [August 25, 2025, 6:59pm UTC](https://discourse.paraview.org/t/the-color-of-menus/17062/4 "2025-08-25T18:59:47Z")

</div>

I replicated this issue. It is in 5.13.1, only windows. Mac and Linux don’t show it. It is fixed in 6.0.0.

---

<div class="post-metadata">

### Author: ![jeDuck](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/898d66/32.png) [@jeDuck](https://discourse.paraview.org/u/jeDuck)
#### Post date: [August 25, 2025, 7:11pm UTC](https://discourse.paraview.org/t/the-color-of-menus/17062/5 "2025-08-25T19:11:38Z")

</div>

I checked it in Paraview 6.0, windows 10, and the menus still have different color:

1. Filters menu, color #f0f0f0  
 ![image](https://discourse.paraview.org/uploads/default/original/3X/b/a/ba63b4ee2fe58d21d463408994d433a70fe36650.png)
2. Sources menu, color #ffffff  
 ![image](https://discourse.paraview.org/uploads/default/original/3X/8/2/822a1fe0be0615e92cc11a23340667c76ed6ac38.png)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 26, 2025, 7:23am UTC](https://discourse.paraview.org/t/the-color-of-menus/17062/6 "2025-08-26T07:23:16Z")

</div>

Hum, one menu is dynamic, the others are not. Is Filters menu different from all other menus ?

FYI @nicolas.vuaille

---

<div class="post-metadata">

### Author: ![nicolas.vuaille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicolas.vuaille/32/5873_2.png) [@nicolas.vuaille](https://discourse.paraview.org/u/nicolas.vuaille)
#### Post date: [August 26, 2025, 9:51am UTC](https://discourse.paraview.org/t/the-color-of-menus/17062/7 "2025-08-26T09:51:59Z")

</div>

Both menu are generated in a very similar way. Also we do not specify any custom color in this code path so I have no idea.

---

<div class="post-metadata">

### Author: ![jeDuck](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/898d66/32.png) [@jeDuck](https://discourse.paraview.org/u/jeDuck)
#### Post date: [August 26, 2025, 3:08pm UTC](https://discourse.paraview.org/t/the-color-of-menus/17062/8 "2025-08-26T15:08:54Z")

</div>

I found the difference. In pqParaViewMenuBuilders the “Filters” and “Extractors” menus call  
menu.setStyle(new pqActiveDisabledStyle)

Those two menus are the only ones that are gray.  
If you comment this line, the menus become white.  
I don’t quite understand what this line does and how to fix that though

---

<div class="post-metadata">

### Author: ![nicolas.vuaille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicolas.vuaille/32/5873_2.png) [@nicolas.vuaille](https://discourse.paraview.org/u/nicolas.vuaille)
#### Post date: [August 27, 2025, 7:33am UTC](https://discourse.paraview.org/t/the-color-of-menus/17062/9 "2025-08-27T07:33:01Z")

</div>

Good catch !

I think I understand the issue, I’ll let you know. Thanks for reporting!

---

<div class="post-metadata">

### Author: ![nicolas.vuaille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicolas.vuaille/32/5873_2.png) [@nicolas.vuaille](https://discourse.paraview.org/u/nicolas.vuaille)
#### Post date: [August 27, 2025, 12:07pm UTC](https://discourse.paraview.org/t/the-color-of-menus/17062/10 "2025-08-27T12:07:04Z")

</div>

@jeDuck which version of Qt are you using when building ParaView?

---

<div class="post-metadata">

### Author: ![jeDuck](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/898d66/32.png) [@jeDuck](https://discourse.paraview.org/u/jeDuck)
#### Post date: [August 27, 2025, 12:15pm UTC](https://discourse.paraview.org/t/the-color-of-menus/17062/11 "2025-08-27T12:15:55Z")

</div>

ParaView 6.0, the screenshots of which I provided earlier, is not a build, I downloaded the binaries.

For my development I use Qt 5.15.2

---

<div class="post-metadata">

### Author: ![nicolas.vuaille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicolas.vuaille/32/5873_2.png) [@nicolas.vuaille](https://discourse.paraview.org/u/nicolas.vuaille)
#### Post date: [August 27, 2025, 1:37pm UTC](https://discourse.paraview.org/t/the-color-of-menus/17062/12 "2025-08-27T13:37:26Z")

</div>

Can you try to remove the style override in the menu builder as follow please?

```auto
diff --git a/Qt/ApplicationComponents/pqParaViewMenuBuilders.cxx b/Qt/ApplicationComponents/pqParaViewMenuBuilders.cxx
index 2e271bfb1d..3f187945d8 100644
--- a/Qt/ApplicationComponents/pqParaViewMenuBuilders.cxx
+++ b/Qt/ApplicationComponents/pqParaViewMenuBuilders.cxx
@@ -124,14 +124,6 @@
 class pqActiveDisabledStyle : public QProxyStyle
 {
 public:
- pqActiveDisabledStyle()
-#if QT_VERSION >= QT_VERSION_CHECK(6, 1, 0)
- : QProxyStyle(QStyleFactory::create(QApplication::style()->name()))
-#else
- : QProxyStyle(QStyleFactory::create("fusion"))
-#endif
- {
- }
 
   ~pqActiveDisabledStyle() override = default;

```
