Breeze Dark/Light dynamic switching

Igor Mironchik igor.mironchik at gmail.com
Tue Jul 14 13:36:23 BST 2026


On Saturday, 11 July 2026 08:46:04 Moscow Standard Time you wrote:
> Hello.
> 
> Maybe anybody will know... In Plasma environment dynamic switching Breeze
> from Dark to Light and vice versa in my application changes everything
> correctly with exception of QMenuBar. It remains with old style till
> reopening of the application. But I'd like to have everything perfect...
> Interesting note - switching from Light to Dark remains QMenuBar in Light
> colors, switching back from Dark to Light makes QMenuBar dark. All menus
> (popups) change palette correctly, all perfect, the problem is only in the
> QMenuBar visual look.
> 
> Maybe anybody know how to workaround it?
> 
> Thank you.

If somebody is interested why this happened - the solution was to remove these 
3 lines from main() function

app.setOrganizationName(QStringLiteral("Author"));
app.setOrganizationDomain(QStringLiteral("a.com"));
app.setApplicationName(QStringLiteral("Application"));

Where app is a QApplication. For some reasons setting these things leads to 
issues in UI style on dynamic switching under KDE Plasma with Breeze.





More information about the kde-devel mailing list