Skip to content

Commit

Permalink
Update palette for non-Widgets applications
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-fedin committed Oct 2, 2024
1 parent 567bec5 commit a173acc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/qt6ct-qtplugin/qt6ctplatformtheme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ void Qt6CTPlatformTheme::applySettings()

QGuiApplication::setFont(m_generalFont); //apply font

if(m_update && m_usePalette)
QGuiApplication::setPalette(m_palette ? *m_palette : *QGenericUnixTheme::palette(QPlatformTheme::SystemPalette));

#ifdef QT_WIDGETS_LIB
if(hasWidgets())
{
Expand Down

0 comments on commit a173acc

Please sign in to comment.