From 4d7d8a2d3512a359fa166447dcec3a02c9bd017f Mon Sep 17 00:00:00 2001 From: Matthias Becker Date: Fri, 25 Oct 2024 15:07:16 +0200 Subject: [PATCH] Only set background color on tree if "linesVisible" is false On macOS setting "linesVisible" to true creates an zebra styled pattern on the tree. If we now set the background color via CSS on this tree that pattern would be gone. Setting the background color via CSS on a tree that has "linesVisible" to false does not do any harm. --- bundles/org.eclipse.ui.themes/css/e4_preview_mac.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bundles/org.eclipse.ui.themes/css/e4_preview_mac.css b/bundles/org.eclipse.ui.themes/css/e4_preview_mac.css index b426954c9d4..fe8cb0a1003 100644 --- a/bundles/org.eclipse.ui.themes/css/e4_preview_mac.css +++ b/bundles/org.eclipse.ui.themes/css/e4_preview_mac.css @@ -103,7 +103,6 @@ CTabFolder Canvas { } .View Composite, -.View Composite Tree, .View Composite Label, .View ToolBar, .View Group, @@ -145,6 +144,11 @@ CTabFolder Canvas { swt-tabBackground-color: #ffffff; } + +.View Composite Tree[swt-lines-visible=false]{ + background-color: #f8f8f8; +} + .View Composite PrependingAsteriskFilteredTree, .View PrependingAsteriskFilteredTree Text, .View Group Text,