I think the title is quite a good summary of my problem : one of my menu changes of color alone, during the session, without any reason.
At the beginning of each session, he has the right color (light gray : #C2C2C2) and then, he becomes light blue : #8CB2DC.
I don't know why it changes neither when, maybe at the moment I make a change in the style.css file, but I haven't checked.
The color it takes is the button color set in the bespin configuration.
It may be a bug of BE::Shell or Bespin.
If anyone has any idea.
Thanks !
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Altering the style.css causes a repolishment for the entire application, so bespin will also receive ::polish(QWidget*) for that menu.
I can see the problem, it's caused by https://sourceforge.net/p/cloudcity/code/1739/ which was introduced to workaround an issue caused by kmix (which adds a label and just "hopes" for no color problems)
I forgot that the default role for popup menus is button... ;-)
-> fixed by ensuring the roles are Window/Text (what kmix expects) in bespin/r1741
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello !
I think the title is quite a good summary of my problem : one of my menu changes of color alone, during the session, without any reason.
At the beginning of each session, he has the right color (light gray : #C2C2C2) and then, he becomes light blue : #8CB2DC.
I don't know why it changes neither when, maybe at the moment I make a change in the style.css file, but I haven't checked.
The color it takes is the button color set in the bespin configuration.
It may be a bug of BE::Shell or Bespin.
If anyone has any idea.
Thanks !
Can you specify "one of my menus"?
- Is it a menubar or a popup?
- Which one? One of the xml menus?
Can you in doubt make a screenshot of the menu (color is irrelevant)?
(ksnapshot has a delay which you want to use to shoot popup menus ;-)
Can you please attach your style.css?
Sorry I wanted to say it, but I forgot when I created the topic.
This is a Button menu, and more precisely the windowlist menu.
Here is its definition:
My style.css has no reference to that menu, but here it is:
I attached the screenshot of the menu.
Thanks !
Bespin. What color role do you use for the popup menus? Highlight?
No, Window color. And it has this color at the beginning. But sometimes it changes to the Button color.
I've just checked, this happens when I edit the style.css file. Even if I write nothing new (just added a new line).
Altering the style.css causes a repolishment for the entire application, so bespin will also receive ::polish(QWidget*) for that menu.
I can see the problem, it's caused by https://sourceforge.net/p/cloudcity/code/1739/ which was introduced to workaround an issue caused by kmix (which adds a label and just "hopes" for no color problems)
I forgot that the default role for popup menus is button... ;-)
-> fixed by ensuring the roles are Window/Text (what kmix expects) in bespin/r1741
Ok, I updated Bespin, if the bug doesn't happen anymore, I'll tell here.
I keep reporting if I see any other problem. ^^
Thanks !
That's good ! I can ::polish whatever I want, my menu keeps the right color ! Thanks !