From 63a0561c522428c822938f2142e8e409699a6a0e Mon Sep 17 00:00:00 2001 From: Madhumitha M V Date: Tue, 13 Aug 2024 16:10:47 +0530 Subject: [PATCH] Change to font colors in selected/unselected tabs in views and editor Selected tabs in Views and Editor now has #000000 color code Unselected tabs in Views and Editor now has #3b3b3b color code This change has been done to improve the contrast between font color and background of selected tabs --- .../css/e4_default_gtk.css | 16 ++++++--------- .../css/e4_default_mac.css | 20 ++++++++----------- .../css/e4_default_win.css | 16 ++++++--------- 3 files changed, 20 insertions(+), 32 deletions(-) diff --git a/bundles/org.eclipse.ui.themes/css/e4_default_gtk.css b/bundles/org.eclipse.ui.themes/css/e4_default_gtk.css index 156b26601d9..168d91f8122 100644 --- a/bundles/org.eclipse.ui.themes/css/e4_default_gtk.css +++ b/bundles/org.eclipse.ui.themes/css/e4_default_gtk.css @@ -91,14 +91,6 @@ ColorDefinition#org-eclipse-ui-workbench-ACTIVE_NOFOCUS_TAB_TEXT_COLOR { color: #3b3b3b; } -ColorDefinition#org-eclipse-ui-workbench-ACTIVE_TAB_TEXT_COLOR { - color: #3b3b3b; -} - -ColorDefinition#org-eclipse-ui-workbench-INACTIVE_TAB_TEXT_COLOR { - color: #3b3b3b; -} - .MTrimmedWindow { background-color: #F6F5F4; } @@ -198,15 +190,19 @@ CTabFolder Canvas { swt-selected-highlight-top: false; } +CTabItem{ + background-color: #3b3b3b; +} + /* text color and background color of unselected tabs in editor*/ #org-eclipse-ui-editorss CTabItem{ - color: '#6A6A6A'; + color: '#3b3b3b'; background-color: '#f8f8f8'; } /*text color and background color of selected tab in editor */ #org-eclipse-ui-editorss CTabItem:selected{ - color: '#3b3b3b'; + color: '#org-eclipse-ui-workbench-ACTIVE_TAB_TEXT_COLOR'; background-color: '#FFFFFF'; } diff --git a/bundles/org.eclipse.ui.themes/css/e4_default_mac.css b/bundles/org.eclipse.ui.themes/css/e4_default_mac.css index db703680deb..e4d767dfce5 100644 --- a/bundles/org.eclipse.ui.themes/css/e4_default_mac.css +++ b/bundles/org.eclipse.ui.themes/css/e4_default_mac.css @@ -74,15 +74,7 @@ ColorDefinition#org-eclipse-ui-workbench-ACTIVE_NOFOCUS_TAB_BG_END { } ColorDefinition#org-eclipse-ui-workbench-ACTIVE_NOFOCUS_TAB_TEXT_COLOR { - color: #404040; -} - -ColorDefinition#org-eclipse-ui-workbench-ACTIVE_TAB_TEXT_COLOR { - color: #404040; -} - -ColorDefinition#org-eclipse-ui-workbench-INACTIVE_TAB_TEXT_COLOR { - color: #404040; + color: #3b3b3b; } .MTrimmedWindow { @@ -168,15 +160,19 @@ CTabFolder Canvas { swt-selected-highlight-top: false; } -/* text color of unselected tabs in editor*/ +CTabItem { + color: #3b3b3b; +} + +/* text color and background color of unselected tabs in editor*/ #org-eclipse-ui-editorss CTabItem{ - color: '#6A6A6A'; + color: '#3b3b3b'; background-color: '#f8f8f8'; } /*text color and background color of selected tab in editor */ #org-eclipse-ui-editorss CTabItem:selected{ - color: '#3b3b3b'; + color: '#org-eclipse-ui-workbench-ACTIVE_TAB_TEXT_COLOR'; background-color: '#FFFFFF'; } diff --git a/bundles/org.eclipse.ui.themes/css/e4_default_win.css b/bundles/org.eclipse.ui.themes/css/e4_default_win.css index 716abc820e8..8a6a68103bd 100644 --- a/bundles/org.eclipse.ui.themes/css/e4_default_win.css +++ b/bundles/org.eclipse.ui.themes/css/e4_default_win.css @@ -78,14 +78,6 @@ ColorDefinition#org-eclipse-ui-workbench-ACTIVE_NOFOCUS_TAB_TEXT_COLOR { color: #3b3b3b; } -ColorDefinition#org-eclipse-ui-workbench-ACTIVE_TAB_TEXT_COLOR { - color: #3b3b3b; -} - -ColorDefinition#org-eclipse-ui-workbench-INACTIVE_TAB_TEXT_COLOR { - color: #3b3b3b; -} - .MPartStack { swt-simple: true; } @@ -173,15 +165,19 @@ CTabFolder Canvas { swt-selected-highlight-top: false; } +CTabItem { + color: #3b3b3b; +} + /* text color and background color of unselected tabs in editor*/ #org-eclipse-ui-editorss CTabItem{ - color: '#6A6A6A'; + color: #3b3b3b; background-color: '#f8f8f8'; } /*text color and background color of selected tab in editor */ #org-eclipse-ui-editorss CTabItem:selected{ - color: '#3b3b3b'; + color: '#org-eclipse-ui-workbench-ACTIVE_TAB_TEXT_COLOR'; background-color: '#FFFFFF'; }