vcl/win/gdi/salnativewidgets-luna.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 24aed2348395b234c6c35a504809ea6f5e97f5a1
Author:     Heiko Tietze <[email protected]>
AuthorDate: Mon Sep 29 13:05:16 2025 +0200
Commit:     Heiko Tietze <[email protected]>
CommitDate: Mon Sep 29 15:04:38 2025 +0200

    Resolves tdf#126530 - Improve contrast between active and inactive tabs
    
    Change-Id: I38abce43bb04e85c1540d8bceb97578730d994b7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191617
    Reviewed-by: Heiko Tietze <[email protected]>
    Tested-by: Jenkins

diff --git a/vcl/win/gdi/salnativewidgets-luna.cxx 
b/vcl/win/gdi/salnativewidgets-luna.cxx
index 0f1f9222258d..97110f67c600 100644
--- a/vcl/win/gdi/salnativewidgets-luna.cxx
+++ b/vcl/win/gdi/salnativewidgets-luna.cxx
@@ -1102,12 +1102,16 @@ static bool ImplDrawNativeControl( HDC hDC, HTHEME 
hTheme, RECT rc,
             {
                 case TILES_NORMAL:
                     aColor = 
Application::GetSettings().GetStyleSettings().GetActiveTabColor();
+                    if (aColor.IsDark())
+                        aColor.IncreaseLuminance(30);
+                    else
+                        aColor.DecreaseLuminance(30);
                     break;
                 case TILES_DISABLED:
                     aColor = 
Application::GetSettings().GetStyleSettings().GetInactiveTabColor();
                     break;
                 case TILES_SELECTED:
-                    aColor = 
Application::GetSettings().GetStyleSettings().GetAccentColor();
+                    aColor = 
Application::GetSettings().GetStyleSettings().GetActiveTabColor();
                     break;
                 case TILES_HOT:
                     aColor = 
Application::GetSettings().GetStyleSettings().GetMenuBarRolloverColor();

Reply via email to