File: aui-dock-art-use-system-color.patch

package info (click to toggle)
wxwidgets3.0 3.0.5.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 120,464 kB
  • sloc: cpp: 896,633; makefile: 52,303; ansic: 21,971; sh: 5,713; python: 2,940; xml: 1,534; perl: 264; javascript: 33
file content (28 lines) | stat: -rw-r--r-- 1,186 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From aae96a430609bacfa546f0a872cf1a94e8a0b073 Mon Sep 17 00:00:00 2001
From: mimi89999 <michel@lebihan.pl>
Date: Sat, 11 Jul 2020 11:22:43 +0200
Subject: [PATCH] Change AUI dock art to use system caption text color

Backport part of https://github.com/wxWidgets/wxWidgets/pull/1791, see
697bd07441 (Change AUI to use system caption text color on all
platforms, 2020-04-13).

Closes https://github.com/wxWidgets/wxWidgets/pull/1946
---
 docs/changes.txt    | 1 +
 src/aui/dockart.cpp | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/aui/dockart.cpp b/src/aui/dockart.cpp
index c7a22ab2d6a..ae8f574ac90 100644
--- a/src/aui/dockart.cpp
+++ b/src/aui/dockart.cpp
@@ -183,7 +183,7 @@ wxAuiDefaultDockArt::wxAuiDefaultDockArt()
     m_activeCaptionTextColour = wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHTTEXT);
     m_inactiveCaptionColour = darker1Colour;
     m_inactiveCaptionGradientColour = baseColour.ChangeLightness(97);
-    m_inactiveCaptionTextColour = *wxBLACK;
+    m_inactiveCaptionTextColour = wxSystemSettings::GetColour(wxSYS_COLOUR_INACTIVECAPTIONTEXT);
 
     m_sashBrush = wxBrush(baseColour);
     m_backgroundBrush = wxBrush(baseColour);