Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTill Brychcy2020-04-09 06:30:30 +0000
committerTill Brychcy2020-04-09 06:31:54 +0000
commit1ba521bdb50158078b35a1f415c06c8fcd0419e5 (patch)
tree10215a57dc6dd6bcefb2752eb42c0a177854eb4c /bundles
parent0b919689b3456d3dba9514a08d8e97a55f61cca2 (diff)
downloadeclipse.platform.swt-1ba521bdb50158078b35a1f415c06c8fcd0419e5.tar.gz
eclipse.platform.swt-1ba521bdb50158078b35a1f415c06c8fcd0419e5.tar.xz
eclipse.platform.swt-1ba521bdb50158078b35a1f415c06c8fcd0419e5.zip
Revert "Bug 561932 - [Dark][Mac] Toolbar items look (almost) the same
when selected" This reverts commit 0b919689b3456d3dba9514a08d8e97a55f61cca2. Reverting because of milestone week. Will resubmit after 4.16M1 is done. Change-Id: I6d58de32dd0b274e0f43daf419aa5f41abd8d0a8
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ToolItem.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ToolItem.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ToolItem.java
index 652788b69c..51c75b221a 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ToolItem.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/ToolItem.java
@@ -483,11 +483,8 @@ void drawWidget (long id, NSGraphicsContext context, NSRect rect) {
if (drawSelected) {
NSRect bounds = view.bounds();
context.saveGraphicsState();
- boolean isDark = OS.isAppDarkAppearance();
- float fillColor = isDark ? 0.9f : 0.1f;
- float strokeColor = isDark ? 0.8f : 0.2f;
- NSColor.colorWithDeviceRed(fillColor, fillColor, fillColor, 0.1f).setFill();
- NSColor.colorWithDeviceRed(strokeColor, strokeColor, strokeColor, 0.2f).setStroke();
+ NSColor.colorWithDeviceRed(0.1f, 0.1f, 0.1f, 0.1f).setFill();
+ NSColor.colorWithDeviceRed(0.2f, 0.2f, 0.2f, 0.2f).setStroke();
NSBezierPath.fillRect(bounds);
bounds.x += 0.5f;
bounds.y += 0.5f;

Back to the top