summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Wagner <thorsten.wagner.4@gmail.com>2021-03-05 23:38:12 +0100
committerTor Lillqvist <tml@collabora.com>2021-03-06 07:18:07 +0100
commitd8fc89cdfd0043838c4bc2d3b5a50bf5abfc6738 (patch)
tree2eae51e319379d282fbdf59891886466ae80b484
parent7b6c0e63e64eb2ad1e83bd744a0d20f78c7a6b84 (diff)
tdf#138314 Change selected tab text color on macOS Big Sur
Change text color of selected tabs starting with macOS 10.16 (not with macOS 11.0) to ensure compatibilty with macOS SDKs prior to 11 used within LibreOffice build process The version check used in commit 058ad4b900b5e0ee902f3e89ed121c2b5f8c58f1 is amended by this change. Change-Id: I4814e8edd9aa11794a9fb1b1eaa391451bde4487 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112036 Tested-by: Jenkins Reviewed-by: Tor Lillqvist <tml@collabora.com>
-rw-r--r--vcl/osx/salframe.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/osx/salframe.cxx b/vcl/osx/salframe.cxx
index c00a976db96a..650526ad08c6 100644
--- a/vcl/osx/salframe.cxx
+++ b/vcl/osx/salframe.cxx
@@ -1328,7 +1328,7 @@ SAL_WNODEPRECATED_DECLARATIONS_POP
// used for selected tab text. As a workaround the current OS version has to be considered. This code has to be reviewed once
// issue is covered by documentation.
- NSOperatingSystemVersion aOSVersion = { .majorVersion = 11, .minorVersion = 0, .patchVersion = 0 };
+ NSOperatingSystemVersion aOSVersion = { .majorVersion = 10, .minorVersion = 16, .patchVersion = 0 };
if ([NSProcessInfo.processInfo isOperatingSystemAtLeastVersion: aOSVersion])
aStyleSettings.SetTabHighlightTextColor(aSelectedControlTextColor);
else