vcl/qt5/QtCustomStyle.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 94c80cc59abc50cc2721bb054c235b56dd02c545
Author:     Heiko Tietze <[email protected]>
AuthorDate: Fri Dec 5 16:06:03 2025 +0100
Commit:     Heiko Tietze <[email protected]>
CommitDate: Wed Dec 10 07:38:30 2025 +0100

    Related tdf#165225 - Correct theme color for disabled menu items on Qt
    
    Change-Id: I1f130354933c10b8919e5743ab3e97adfa80324f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195096
    Tested-by: Jenkins
    Reviewed-by: Heiko Tietze <[email protected]>
    (cherry picked from commit a4ff4bcc4d7432af65a17e489ebf5f88a06d74d7)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195301

diff --git a/vcl/qt5/QtCustomStyle.cxx b/vcl/qt5/QtCustomStyle.cxx
index 06948147d037..cb10d83bc174 100644
--- a/vcl/qt5/QtCustomStyle.cxx
+++ b/vcl/qt5/QtCustomStyle.cxx
@@ -111,6 +111,8 @@ QPalette QtCustomStyle::GetMenuPalette()
                   toQColor(aThemeColors.GetDisabledTextColor()));
     aPal.setColor(QPalette::ButtonText, 
toQColor(aThemeColors.GetMenuTextColor()));
     aPal.setColor(QPalette::WindowText, 
toQColor(aThemeColors.GetMenuTextColor()));
+    aPal.setColor(QPalette::Disabled, QPalette::WindowText,
+                  toQColor(aThemeColors.GetDisabledTextColor()));
     aPal.setColor(QPalette::Button, toQColor(aThemeColors.GetButtonColor()));
     aPal.setColor(QPalette::Disabled, QPalette::ButtonText,
                   toQColor(aThemeColors.GetDisabledTextColor()));

Reply via email to