Compare commits

...

2 Commits

Author SHA1 Message Date
Chao MENG
db6ca5af36 chore: support dark theme 2022-09-17 19:31:11 +08:00
zyuan-talend
1c919979c2 fix(TUP-35745): Research: Bring a dark mode for Talend Studio. (#5582)
* fix(TUP-35745): Research: Bring a dark mode for Talend Studio as
Experimental.

* fix(TUP-35745): Research: Bring a dark mode for Talend Studio.
2022-09-17 19:30:49 +08:00
24 changed files with 1579 additions and 23 deletions

View File

@@ -0,0 +1,43 @@
// ============================================================================
//
// Copyright (C) 2006-2022 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have received a copy of the agreement
// along with this program; if not, write to Talend SA
// 9 rue Pages 92150 Suresnes, France
//
// ============================================================================
package org.talend.commons.runtime.service;
import org.osgi.framework.BundleContext;
import org.osgi.framework.FrameworkUtil;
import org.osgi.framework.ServiceReference;
import org.talend.commons.exception.ExceptionHandler;
/**
* DOC cmeng class global comment. Detailled comment
*/
public interface ITalendThemeService {
Object getGlobalThemeColor(String cssProp);
String getGlobalThemeProp(String key);
static ITalendThemeService get() {
try {
BundleContext bc = FrameworkUtil.getBundle(ITalendThemeService.class).getBundleContext();
ServiceReference<ITalendThemeService> serviceReference = bc.getServiceReference(ITalendThemeService.class);
if (serviceReference == null) {
return null;
}
return bc.getService(serviceReference);
} catch (Exception e) {
ExceptionHandler.process(e);
}
return null;
}
}

View File

@@ -25,6 +25,7 @@ import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.graphics.Image;
import org.talend.commons.runtime.model.repository.ECDCStatus;
import org.talend.commons.runtime.model.repository.ERepositoryStatus;
import org.talend.commons.runtime.service.ITalendThemeService;
import org.talend.commons.ui.runtime.image.ECoreImage;
import org.talend.commons.ui.runtime.image.EImage;
import org.talend.commons.ui.runtime.image.IImage;
@@ -91,6 +92,8 @@ public class RepositoryLabelProvider extends LabelProvider implements IColorProv
private static boolean refreshProperty = true;
private static ITalendThemeService themeServ;
public RepositoryLabelProvider(IRepositoryView view) {
super();
this.view = view;
@@ -100,6 +103,61 @@ public class RepositoryLabelProvider extends LabelProvider implements IColorProv
return view;
}
private static ITalendThemeService getThemeServ() {
if (themeServ == null) {
themeServ = ITalendThemeService.get();
}
return themeServ;
}
private Color getColor(String prop) {
ITalendThemeService theme = getThemeServ();
if (theme != null) {
return (Color) theme.getGlobalThemeColor(prop);
}
return null;
}
private Color getStableSecondaryEntryColor() {
Color color = getColor("REPO_STABLE_SECONDARY_ENTRY_COLOR");
if (color == null) {
color = STABLE_SECONDARY_ENTRY_COLOR;
}
return color;
}
private Color getStablePrimaryEntryColor() {
Color color = getColor("REPO_STABLE_PRIMARY_ENTRY_COLOR");
if (color == null) {
color = STABLE_PRIMARY_ENTRY_COLOR;
}
return color;
}
private Color getInactiveEntryColor() {
Color color = getColor("REPO_INACTIVE_ENTRY_COLOR");
if (color == null) {
color = INACTIVE_ENTRY_COLOR;
}
return color;
}
private Color getLockedEntryColor() {
Color color = getColor("REPO_LOCKED_ENTRY");
if (color == null) {
color = LOCKED_ENTRY;
}
return color;
}
private Color getMergedReferencedItemsColor() {
Color color = getColor("REPO_MERGED_REFERENCED_ITEMS_COLOR");
if (color == null) {
color = MERGED_REFERENCED_ITEMS_COLOR;
}
return color;
}
public String getText(IRepositoryViewObject object) {
StringBuffer string = new StringBuffer();
string.append(object.getLabel());
@@ -482,23 +540,23 @@ public class RepositoryLabelProvider extends LabelProvider implements IColorProv
RepositoryNode node = (RepositoryNode) element;
switch (node.getType()) {
case REFERENCED_PROJECT:
return STABLE_PRIMARY_ENTRY_COLOR;
return getStablePrimaryEntryColor();
case STABLE_SYSTEM_FOLDER:
if (node.getLabel().equals(ERepositoryObjectType.SNIPPETS.toString())) {
return INACTIVE_ENTRY_COLOR;
return getInactiveEntryColor();
}
if (node.getContentType() == ERepositoryObjectType.METADATA) {
return STABLE_PRIMARY_ENTRY_COLOR;
return getStablePrimaryEntryColor();
}
case SYSTEM_FOLDER:
if (node.getContentType() == ERepositoryObjectType.PROCESS) {
return STABLE_PRIMARY_ENTRY_COLOR;
return getStablePrimaryEntryColor();
}
return STABLE_SECONDARY_ENTRY_COLOR;
return getStableSecondaryEntryColor();
default:
ERepositoryStatus repositoryStatus = node.getObject().getRepositoryStatus();
if (repositoryStatus == ERepositoryStatus.LOCK_BY_OTHER) {
return LOCKED_ENTRY;
return getLockedEntryColor();
} else {
if (PluginChecker.isRefProjectLoaded()) {
IReferencedProjectService service = (IReferencedProjectService) GlobalServiceRegister.getDefault()
@@ -510,7 +568,7 @@ public class RepositoryLabelProvider extends LabelProvider implements IColorProv
.getCurrentProject().getEmfProject();
String projectLabel = object.getProjectLabel();
if (!mainProject.getLabel().equals(projectLabel)) {
return MERGED_REFERENCED_ITEMS_COLOR;
return getMergedReferencedItemsColor();
}
}
}

View File

@@ -34,6 +34,7 @@ import org.eclipse.swt.widgets.ToolBar;
import org.eclipse.swt.widgets.ToolItem;
import org.eclipse.ui.forms.IFormColors;
import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory;
import org.talend.commons.runtime.service.ITalendThemeService;
import org.talend.commons.ui.runtime.image.EImage;
import org.talend.commons.ui.runtime.image.ImageProvider;
import org.talend.core.GlobalServiceRegister;
@@ -73,6 +74,8 @@ public class TalendTabbedPropertyTitle extends Composite implements ITalendTabbe
private TalendTabbedPropertyColorHelper colorHelper;
private static ITalendThemeService theme;
/**
* Constructor for TabbedPropertyTitle.
*
@@ -173,10 +176,10 @@ public class TalendTabbedPropertyTitle extends Composite implements ITalendTabbe
helpComp.setVisible(false);
if (colorHelper.getTitleBackground() == null) {
label.setBackground(new Color[] { factory.getColors().getColor(IFormColors.H_GRADIENT_END),
factory.getColors().getColor(IFormColors.H_GRADIENT_START) }, new int[] { 100 }, true);
titleLabelComp.setBackground(factory.getColors().getColor(IFormColors.H_GRADIENT_START));
helpComp.setBackground(factory.getColors().getColor(IFormColors.H_GRADIENT_START));
label.setBackground(new Color[] { getStartColor(),
getEndColor() }, new int[] { 100 }, true);
titleLabelComp.setBackground(getEndColor());
helpComp.setBackground(getEndColor());
} else {
label.setBackground(colorHelper.getTitleBackground());
titleLabelComp.setBackground(colorHelper.getTitleBackground());
@@ -184,23 +187,54 @@ public class TalendTabbedPropertyTitle extends Composite implements ITalendTabbe
}
}
private static ITalendThemeService getTheme() {
if (theme == null) {
theme = ITalendThemeService.get();
}
return theme;
}
private Color getColor(String prop) {
ITalendThemeService themeServ = getTheme();
if (themeServ == null) {
return null;
}
return (Color) themeServ.getGlobalThemeColor(prop);
}
private Color getStartColor() {
Color color = getColor("TAB_START_COLOR");
if (color == null) {
color = factory.getColors().getColor(IFormColors.H_GRADIENT_END);
}
return color;
}
private Color getEndColor() {
Color color = getColor("TAB_END_COLOR");
if (color == null) {
color = factory.getColors().getColor(IFormColors.H_GRADIENT_START);
}
return color;
}
/**
* @param e
*/
protected void drawTitleBackground(PaintEvent e) {
Rectangle bounds = getClientArea();
if (colorHelper.getTitleBackground() == null) {
label.setBackground(new Color[] { factory.getColors().getColor(IFormColors.H_GRADIENT_END),
factory.getColors().getColor(IFormColors.H_GRADIENT_START) }, new int[] { 100 }, true);
titleLabelComp.setBackground(factory.getColors().getColor(IFormColors.H_GRADIENT_START));
helpComp.setBackground(factory.getColors().getColor(IFormColors.H_GRADIENT_START));
label.setBackground(new Color[] { getStartColor(),
getEndColor() }, new int[] { 100 }, true);
titleLabelComp.setBackground(getEndColor());
helpComp.setBackground(getEndColor());
} else {
label.setBackground(colorHelper.getTitleBackground());
titleLabelComp.setBackground(colorHelper.getTitleBackground());
helpComp.setBackground(colorHelper.getTitleBackground());
}
Color bg = factory.getColors().getColor(IFormColors.H_GRADIENT_END);
Color gbg = factory.getColors().getColor(IFormColors.H_GRADIENT_START);
Color bg = getStartColor();
Color gbg = getEndColor();
GC gc = e.gc;
gc.setForeground(bg);
gc.setBackground(gbg);

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>

View File

@@ -19,6 +19,7 @@ Require-Bundle: org.eclipse.ui,
org.eclipse.e4.ui.model.workbench,
org.eclipse.e4.ui.css.swt.theme,
org.eclipse.osgi.services
Service-Component: OSGI-INF/core.xml
Bundle-ActivationPolicy: lazy
Export-Package: org.talend.themes.core.elements.constants,
org.talend.themes.core.elements.interfaces,

View File

@@ -0,0 +1,7 @@
<?xml version="1.0"?>
<component name="TalendThemeService">
<implementation class="org.talend.themes.core.TalendThemeService"/>
<service>
<provide interface="org.talend.commons.runtime.service.ITalendThemeService"/>
</service>
</component>

View File

@@ -3,4 +3,5 @@ output.. = bin/
bin.includes = META-INF/,\
.,\
plugin.xml,\
build.properties
build.properties,\
OSGI-INF/

View File

@@ -0,0 +1,91 @@
// ============================================================================
//
// Copyright (C) 2006-2022 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have received a copy of the agreement
// along with this program; if not, write to Talend SA
// 9 rue Pages 92150 Suresnes, France
//
// ============================================================================
package org.talend.themes.core;
import org.eclipse.e4.ui.css.core.engine.CSSEngine;
import org.eclipse.e4.ui.css.swt.dom.WidgetElement;
import org.eclipse.e4.ui.css.swt.theme.IThemeEngine;
import org.eclipse.e4.ui.css.swt.theme.IThemeManager;
import org.eclipse.jface.resource.ColorRegistry;
import org.eclipse.jface.resource.JFaceResources;
import org.eclipse.swt.graphics.RGB;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceReference;
import org.talend.commons.exception.ExceptionHandler;
import org.talend.commons.runtime.service.ITalendThemeService;
import org.w3c.dom.css.CSSStyleDeclaration;
import org.w3c.dom.css.CSSValue;
/**
* DOC cmeng class global comment. Detailled comment
*/
public class TalendThemeService implements ITalendThemeService {
private IThemeEngine themeEngine;
@Override
public Object getGlobalThemeColor(String cssProp) {
Shell shell = Display.getDefault().getActiveShell();
CSSValue cssValue = getCssValue(shell, cssProp);
if (cssValue == null) {
return null;
}
String key = cssValue.getCssText();
ColorRegistry colorRegistry = JFaceResources.getColorRegistry();
if (!colorRegistry.hasValueFor(key)) {
CSSEngine cssEngin = WidgetElement.getEngine(shell);
try {
RGB rgb = (RGB) cssEngin.convert(cssValue, RGB.class, Display.getDefault());
colorRegistry.put(key, rgb);
} catch (Exception e) {
ExceptionHandler.process(e);
}
}
return colorRegistry.get(key);
}
@Override
public String getGlobalThemeProp(String key) {
Shell shell = Display.getDefault().getActiveShell();
CSSValue cssValue = getCssValue(shell, key);
if (cssValue == null) {
return null;
}
return cssValue.getCssText();
}
private IThemeEngine getThemeEngine() {
if (themeEngine == null) {
BundleContext context = TalendThemesCorePlugin.getDefault().getBundle().getBundleContext();
ServiceReference ref = context.getServiceReference(IThemeManager.class.getName());
IThemeManager mgr = (IThemeManager) context.getService(ref);
themeEngine = mgr.getEngineForDisplay(Display.getDefault());
}
return themeEngine;
}
private CSSValue getCssValue(Object element, String property) {
IThemeEngine engine = getThemeEngine();
if (engine == null) {
return null;
}
CSSStyleDeclaration style = engine.getStyle(element);
if (style == null) {
return null;
}
return style.getPropertyCSSValue(property);
}
}

View File

@@ -10,4 +10,7 @@ Require-Bundle: org.eclipse.ui,
org.eclipse.e4.ui.css.swt,
org.eclipse.e4.ui.css.swt.theme
Bundle-ActivationPolicy: lazy
Bundle-Localization: plugin
Bundle-Vendor: .Talend SA.
Eclipse-BundleShape: dir
Automatic-Module-Name: org.talend.themes.css.talend

View File

@@ -3,4 +3,5 @@ output.. = bin/
bin.includes = META-INF/,\
.,\
themes/,\
plugin.xml
plugin.xml,\
plugin.properties

View File

@@ -0,0 +1,32 @@
theme.default=Talend default theme
theme.dark=Talend experimental dark theme
#New theme element definitions
DARK_BACKGROUND=Dark Background Color
DARK_FOREGROUND=Dark Foreground Color
INACTIVE_UNSELECTED_TABS_COLOR_START=Inactive, unselected part color begin
INACTIVE_UNSELECTED_TABS_COLOR_START=Inactive, unselected part color begin
INACTIVE_UNSELECTED_TABS_COLOR_END=Inactive, unselected part color end
INACTIVE_TAB_TEXT_COLOR=Inactive part text color
INACTIVE_TAB_OUTER_KEYLINE_COLOR=Inactive part outer keyline color
INACTIVE_TAB_INNER_KEYLINE_COLOR=Inactive part inner keyline color
INACTIVE_TAB_OUTLINE_COLOR=Inactive part outline color
ACTIVE_UNSELECTED_TABS_COLOR_START=Active, unselected part color begin
ACTIVE_UNSELECTED_TABS_COLOR_END=Active, unselected part color end
ACTIVE_TAB_TEXT_COLOR=Active part text color
ACTIVE_TAB_OUTER_KEYLINE_COLOR=Active part outer keyline color
ACTIVE_TAB_INNER_KEYLINE_COLOR=Active part inner keyline color
ACTIVE_TAB_OUTLINE_COLOR=Active part outline color
INACTIVE_TAB_BG_START=Inactive, selected part background begin
INACTIVE_TAB_BG_END=Inactive, selected part background end
INACTIVE_TAB_UNSELECTED_TEXT_COLOR=Inactive, unselected part foreground
INACTIVE_TAB_SELECTED_TEXT_COLOR=Inactive, selected part foreground
ACTIVE_TAB_BG_START=Active, selected part background begin
ACTIVE_TAB_BG_END=Active, selected part background end
ACTIVE_TAB_UNSELECTED_TEXT_COLOR=Active, unselected part foreground
ACTIVE_TAB_SELECTED_TEXT_COLOR=Active, selected part foreground
ACTIVE_NOFOCUS_TAB_TEXT_COLOR=Active (no focus), selected part text color
ACTIVE_NOFOCUS_TAB_BG_START=Active (no focus), selected part background begin
ACTIVE_NOFOCUS_TAB_BG_END=Active (no focus), selected part background end
ACTIVE_NOFOCUS_TAB_SELECTED_TEXT_COLOR=Active (no focus), selected part foreground
LINK_COLOR=Link color

View File

@@ -7,9 +7,39 @@
<theme
basestylesheeturi="themes/default/css/default.css"
id="org.talend.themes.css.talend.default"
label="Talend default theme">
label="%theme.default">
<!-- please see: TalendThemeConstants.TALEND_DEFAULT_THEME_ID -->
</theme>
<theme
basestylesheeturi="themes/dark/e4-dark_linux.css"
id="org.eclipse.e4.ui.css.theme.e4_dark"
label="%theme.dark"
os="linux">
</theme>
<theme
basestylesheeturi="themes/dark/e4-dark_win.css"
id="org.eclipse.e4.ui.css.theme.e4_dark"
label="%theme.dark"
os="win32">
</theme>
<theme
basestylesheeturi="themes/dark/e4-dark_mac.css"
id="org.eclipse.e4.ui.css.theme.e4_dark"
label="%theme.dark"
os="macosx">
</theme>
<theme
basestylesheeturi="themes/dark/e4-dark_mac1013.css"
id="org.eclipse.e4.ui.css.theme.e4_dark"
label="%theme.dark"
os="macosx"
os_version="10.11,10.12,10.13">
</theme>
<stylesheet
uri="themes/dark/dark/e4-dark_preferencestyle.css">
<themeid
refid="org.eclipse.e4.ui.css.theme.e4_dark"></themeid>
</stylesheet>
</extension>
</plugin>

View File

@@ -0,0 +1,24 @@
/*******************************************************************************
* Copyright (c) 2020 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
.MTrimmedWindow.topLevel {
margin-top: 0px;
margin-bottom: 0px;
margin-left: 0px;
margin-right: 0px;
}
.MPartStack Tree, .MPartStack Table {
font-family: '#org-eclipse-ui-workbench-TREE_TABLE_FONT';
}

View File

@@ -0,0 +1,25 @@
/*******************************************************************************
* Copyright (c) 2019 vogella GmbH and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Lars Vogel - initial API and implementation
*******************************************************************************/
/* ################################ CSS related to drag and drop ########################## */
.DragFeedback {
background-color: COLOR-WIDGET-NORMAL-SHADOW;
}
.ModifiedDragFeedback {
background-color: #4176AF;
}

View File

@@ -0,0 +1,358 @@
/*******************************************************************************
* Copyright (c) 2010, 2015 Andrea Guarinoni and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Andrea Guarinoni <andrea.guarinoni.dev@outlook.com> - initial API and implementation
* Stefan Winkler <stefan@winklerweb.net> - Bug 434189, 430848
* Simon Scholz <simon.scholz@vogella.com> - Bug 431635
* Fabio Zadrozny <fabiofz@gmail.com> - Bug 465148, 465711
* Lars Vogel <Lars.Vogel@vogella.com> Bug 463652,466275
*******************************************************************************/
/*******************************************************************************
* The following bugs are referred to in this style sheet
* 2.) Bug 419377 - Setting a property to 'inherit' is not supported
* 3.) Bug 430051 - Regression for CTabRendering when drawing bottom tabs
*******************************************************************************/
/* ############################## Global Styles ############################## */
Shell {
background-color:'#org-eclipse-ui-workbench-DARK_BACKGROUND';
color:'#org-eclipse-ui-workbench-DARK_FOREGROUND';
REPO_STABLE_SECONDARY_ENTRY_COLOR: #afafaf;
REPO_STABLE_PRIMARY_ENTRY_COLOR: #ffffff;
REPO_INACTIVE_ENTRY_COLOR: #8a8a8a;
REPO_LOCKED_ENTRY: #6b0000;
REPO_MERGED_REFERENCED_ITEMS_COLOR: #afafaf;
TAB_START_COLOR: #1b3c4f;
TAB_END_COLOR: #565656;
DESIGNER_COLOR_A: #000000;
DESIGNER_COLOR_B: #4f4f4f;
DESIGNER_COLOR_ALPHA: 95;
}
.TalendTabbedPropertyList{
background-color: black;
border-visible: true;
color:black;
_t-widget-normal-shadow-color:black;
_t-widget-dark-shadow-color:black;
_t-list-background-color: #ffffff;
_t-widget-vertical-line-color: #E3E3E3;
}
.TalendTabbedPropertyTitle{
border-visible: false;
_t-title-foreground-color:black;
_t-title-background-color:black;
_t-title-bottom-foreground-keyline1-color:black;
_t-title-bottom-foreground-keyline2-color:black;
}
Composite, ScrolledComposite, ExpandableComposite, Canvas, TabFolder, CLabel, Label,
CoolBar, Sash, Group, RefactoringLocationControl, ChangeParametersControl, Link, FilteredTree,
ProxyEntriesComposite, NonProxyHostsComposite, DelayedFilterCheckboxTree,
Splitter, ScrolledPageContent, ViewForm, LaunchConfigurationFilteredTree,
ContainerSelectionGroup, BrowseCatalogItem, EncodingSettings,
ProgressMonitorPart, DocCommentOwnerComposite, NewServerComposite,
NewManualServerComposite, ServerTypeComposite, FigureCanvas,
DependenciesComposite, ListEditorComposite, WrappedPageBook,
CompareStructureViewerSwitchingPane, CompareContentViewerSwitchingPane,
QualifiedNameComponent, RefactoringStatusViewer,
MessageLine,
Button /* SWT-BUG: checkbox inner label font color is not accessible */,
Composite > *,
Composite > * > *,
Group > StyledText {
background-color:'#org-eclipse-ui-workbench-DARK_BACKGROUND';
color:'#org-eclipse-ui-workbench-DARK_FOREGROUND';
}
/* ############################## Toolbar ############################## */
/* Ensure that the labels in the tabfolder gets updated
See Bug 552780
*/
TabFolder > *,
CTabFolder > *,
TabFolder > Composite > *, /* Composite > CommitSearchPage$... */
CTabFolder > Composite > *, /* Composite > CommitSearchPage$... */
TabFolder > Composite > * > * { /* [style~='SWT.NO_BACKGROUND'] <- generate E4 non-sense bugs in apparently not related other rules Composite > ContentMergeViewer$... > TextMergeViewer$... */
color:'#org-eclipse-ui-workbench-DARK_FOREGROUND';
}
/* Toolbar should inherit the colors of its container to avoid drawing artifacts*/
ToolBar {
background-color:inherit;
}
Combo,
List,
Text,
Spinner,
CCombo {
background-color:'#org-eclipse-ui-workbench-DARK_BACKGROUND';
color:'#org-eclipse-ui-workbench-DARK_FOREGROUND';
}
Composite > StyledText,
Shell [style~='SWT.DROP_DOWN'] > StyledText, /* for eg. folded code popup (but it's ignored) */
SashForm > StyledText {
/* Fix StyledText inside a SashForm */
background-color:'#org-eclipse-ui-workbench-DARK_BACKGROUND';
color:'#org-eclipse-ui-workbench-DARK_FOREGROUND';
}
Text[style~='SWT.SEARCH'],
Text[style~='SWT.SEARCH'] + Label /* SWT-BUG: adjacent sibling selector is ignored (CSS2.1) */ {
/* search boxes */
background-color: #333;
color: #F4F7F7;
}
Text[style~='SWT.READ_ONLY'] {
background-color: '#org-eclipse-ui-workbench-DARK_BACKGROUND';
color: #bbbbbb;
}
Shell Tree, Shell Table, Shell List {
background-color: #2F2F2F;
}
DatePicker,
DatePicker > Text,
ScheduleDatePicker,
ScheduleDatePicker > Text {
background-color:'#org-eclipse-ui-workbench-DARK_BACKGROUND';
color:'#org-eclipse-ui-workbench-DARK_FOREGROUND';
}
ScrolledFormText,
FormText {
background-color:'#org-eclipse-ui-workbench-DARK_BACKGROUND';
color:'#org-eclipse-ui-workbench-DARK_FOREGROUND';
}
Table,
Tree,
RegistryFilteredTree {
background-color:inherit;
color:'#org-eclipse-ui-workbench-DARK_FOREGROUND';
}
Hyperlink,
ImageHyperlink {
background-color: inherit;
color: #6fc5ee;
}
ViewerPane,
DrillDownComposite {
background-color: #232323;
color: #CCC;
}
ProgressInfoItem,
ProgressInfoItem > *,
CompareViewerPane,
CompareViewerPane > * {
background-color: inherit;
color: '#org-eclipse-ui-workbench-DARK_FOREGROUND';
}
ProgressIndicator {
background-color: #777;
color: '#org-eclipse-ui-workbench-DARK_FOREGROUND';
}
DiscoveryItem,
DiscoveryItem Label,
DiscoveryItem Composite {
background-color: #383C3E;
color: #dddddd;
}
DiscoveryItem StyledText {
background-color: #383C3E;
color: #aaaaaa;
}
DiscoveryItem Link {
background-color: #383C3E;
color: #8B9498;
}
CatalogSwitcher,
CatalogSwitcher > ScrolledComposite > Composite > Composite /* ignored because hard-coded */,
CategoryItem {
background-color: '#org-eclipse-ui-workbench-DARK_BACKGROUND';
color: #dddddd;
}
GradientCanvas,
GradientCanvas > Label {
background-color: #3f4447;
color: #9ac9d8;
}
GradientCanvas {
/* SWT-BUG workaround: GradientCanvas background-color is ignored */
background: #3f4447;
}
CategoryItem > GradientCanvas,
CategoryItem > GradientCanvas > Label {
/* SWT-BUG workaround: a style for background is not applied on GradientCanvas (CSS engine repaint issue) */
background-color: #fafafa;
color: #333;
}
CategoryItem > GradientCanvas {
/* SWT-BUG workaround: a style for background is not applied on GradientCanvas (CSS engine repaint issue) */
background: #fafafa;
background-image: #333;
}
WebSite {
background-color: #41464A;
color: #dddddd;
}
Form,
FormHeading {
background-color: #505F70;
color: #9AC9D8;
}
Form {
/* Bug 465148: Additional styling for the Form */
text-background-color: #505F70;
tb-toggle-hover-color: #313538;
tb-toggle-color: #313538;
h-hover-full-color: #313538;
h-hover-light-color: #313538;
h-bottom-keyline-2-color: #313538;
h-bottom-keyline-1-color: #313538;
/* We also have to force the background mode (the
* Label/ToolBar in the heading should inherit it).
*/
swt-background-mode: 'force';
}
Section {
background-color: #4F5355;
color: #AEBED0;
background-color-titlebar: #4F5355;
background-color-gradient-titlebar: #4F5355;
border-color-titlebar: #4F5355;
swt-titlebar-color: #cccccc;
tb-toggle-hover-color: #F4F7F7;
tb-toggle-color: #F4F7F7;
}
Table,
Tree {
swt-header-color: #CCC;
swt-header-background-color: #383D3F;
}
Twistie {
color: #E8E4DF;
}
.MPartSashContainer {
background-color: '#org-eclipse-ui-workbench-DARK_BACKGROUND';
color: #EEEEEE;
}
HeapStatus {
background-color: #4F5355;
color: #EEEEEE;
}
PageSiteComposite, PageSiteComposite > CImageLabel {
color: #EEEEEE;
}
PageSiteComposite > PropertyTable {
background-color: #333;
color: #EEEEEE;
}
PageSiteComposite > PropertyTable:disabled {
/* SWT-BUG: event is triggered but styles for PropertyTable are hard-coded */
background-color: #444;
color: #EEEEEE;
}
/* See Bug 430848: We need to override the theme of the Eclipse splash screen, because
* otherwise the splash screen would be partly switched to the dark theme during startup,
* which does not look very nice.
*/
Label#org-eclipse-ui-splash-progressText {
background-color: inherit; /* transparent */
color: #9c9696; /* see property startupForegroundColor in the product */
}
Label#org-eclipse-ui-buildid-text {
background-color: inherit; /* transparent */
}
ProgressIndicator#org-eclipse-ui-splash-progressIndicator {
background-color: #e1e1e1;
}
Link {
swt-link-foreground-color: '#org-eclipse-ui-workbench-LINK_COLOR'
}
ExpandableComposite {
swt-titlebar-color: #cccccc;
tb-toggle-hover-color: #F4F7F7;
tb-toggle-color: #F4F7F7;
}
TabbedPropertyTitle > CLabel{
color: #9AC9D8;
}
TabbedPropertyTitle {
swt-backgroundGradientStart-color: #505F70;
swt-backgroundGradientEnd-color: #505F70;
swt-backgroundBottomKeyline1-color: #505F70;
swt-backgroundBottomKeyline2-color: #505F70;
}
TabbedPropertyList {
swt-tabNormalShadow-color : '#org-eclipse-ui-workbench-INACTIVE_TAB_OUTLINE_COLOR'; /* color of shadow lines around the tabs */
swt-tabDarkShadow-color : '#org-eclipse-ui-workbench-ACTIVE_NOFOCUS_TAB_SELECTED_TEXT_COLOR'; /* line color of the tiny scroll triangle (at top / at bottom) */
swt-tabAreaBackground-color : '#org-eclipse-ui-workbench-DARK_BACKGROUND'; /*same as canvas*/
swt-tabBackground-color : '#org-eclipse-ui-workbench-ACTIVE_NOFOCUS_TAB_BG_START';
color : '#org-eclipse-ui-workbench-ACTIVE_NOFOCUS_TAB_SELECTED_TEXT_COLOR'; /* text color in the tab / tab area */
}
.TalendPaletteCls {
tPalette-collapsed-forground-color: #515658;
tPalette-collapsed-background-color: #515658;
tPalette-mouseOver-forground-color1:#cccccc;
tPalette-mouseOver-forground-color2:#cccccc;
tPalette-mouseOver-forground-color3:#cccccc;
tPalette-mouseOver-background-color1:#3c8ad2;
tPalette-mouseOver-background-color2:#3c8ad2;
tPalette-mouseOver-background-color3:#3c8ad2; /* */
tPalette-expanded-background-color: black;
/* tPalette-expanded-background-color:#0069d9; /* background color when level is selected */
tPalette-collapse-topBorder-forground-lineColor1:'#org-eclipse-ui-workbench-DARK_BACKGROUND'; /* top border */
tPalette-collapse-topBorder-forground-lineColor2: #2F2F2F; /* top border */
tPalette-collapse-expanded-forground-lineColor: #2F2F2F; /* bottom border */
tPalette-collapse-notExpanded-forground-lineColor: #2F2F2F; /* bottom border */
tPalette-scroll-pane-list-border:0 0 0 0;
tPalette-scroll-pane-border:0 0 0 0;
tPalette-color-increment:10; /* color increment in palette depth */
tPalette-x-offset:17;
tPalette-entryEditPart-entry-color-inheritFromParent:true;
tPalette-searchButton-background-color:'#org-eclipse-ui-workbench-DARK_BACKGROUND';
}

View File

@@ -0,0 +1,212 @@
/*******************************************************************************
* Copyright (c) 2010, 2014 Andrea Guarinoni and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
* Andrea Guarinoni - initial API and implementation
*******************************************************************************/
/* ColorDefinitions for the dark theme for the Eclipse IDE
*
* ThemeExtensions and ColorDefinition are mapped to the Colors and Fonts preference
* dialog in the IDE
*/
ThemesExtension { color-definition:
'#org-eclipse-ui-workbench-DARK_BACKGROUND',
'#org-eclipse-ui-workbench-DARK_FOREGROUND',
'#org-eclipse-ui-workbench-INACTIVE_UNSELECTED_TABS_COLOR_START',
'#org-eclipse-ui-workbench-INACTIVE_UNSELECTED_TABS_COLOR_END',
'#org-eclipse-ui-workbench-INACTIVE_TAB_BG_START',
'#org-eclipse-ui-workbench-INACTIVE_TAB_BG_END',
'#org-eclipse-ui-workbench-INACTIVE_TAB_OUTER_KEYLINE_COLOR',
'#org-eclipse-ui-workbench-INACTIVE_TAB_INNER_KEYLINE_COLOR',
'#org-eclipse-ui-workbench-INACTIVE_TAB_OUTLINE_COLOR',
'#org-eclipse-ui-workbench-INACTIVE_TAB_TEXT_COLOR',
'#org-eclipse-ui-workbench-INACTIVE_TAB_UNSELECTED_TEXT_COLOR',
'#org-eclipse-ui-workbench-INACTIVE_TAB_SELECTED_TEXT_COLOR',
'#org-eclipse-ui-workbench-ACTIVE_UNSELECTED_TABS_COLOR_START',
'#org-eclipse-ui-workbench-ACTIVE_UNSELECTED_TABS_COLOR_END',
'#org-eclipse-ui-workbench-ACTIVE_TAB_BG_START',
'#org-eclipse-ui-workbench-ACTIVE_TAB_BG_END',
'#org-eclipse-ui-workbench-ACTIVE_TAB_OUTER_KEYLINE_COLOR',
'#org-eclipse-ui-workbench-ACTIVE_TAB_INNER_KEYLINE_COLOR',
'#org-eclipse-ui-workbench-ACTIVE_TAB_OUTLINE_COLOR',
'#org-eclipse-ui-workbench-ACTIVE_TAB_TEXT_COLOR',
'#org-eclipse-ui-workbench-ACTIVE_TAB_UNSELECTED_TEXT_COLOR',
'#org-eclipse-ui-workbench-ACTIVE_TAB_SELECTED_TEXT_COLOR',
'#org-eclipse-ui-workbench-ACTIVE_NOFOCUS_TAB_BG_START',
'#org-eclipse-ui-workbench-ACTIVE_NOFOCUS_TAB_BG_END',
'#org-eclipse-ui-workbench-ACTIVE_NOFOCUS_TAB_TEXT_COLOR',
'#org-eclipse-ui-workbench-ACTIVE_NOFOCUS_TAB_SELECTED_TEXT_COLOR',
'#org-eclipse-ui-workbench-LINK_COLOR';
}
ColorDefinition#org-eclipse-ui-workbench-DARK_BACKGROUND {
color: #515658;
category: '#org-eclipse-ui-presentation-default';
label: url('platform:/plugin/org.talend.themes.css.talend?message=DARK_BACKGROUND');
}
ColorDefinition#org-eclipse-ui-workbench-DARK_FOREGROUND {
color: #eeeeee;
category: '#org-eclipse-ui-presentation-default';
label: url('platform:/plugin/org.talend.themes.css.talend?message=DARK_FOREGROUND');
}
ColorDefinition#org-eclipse-ui-workbench-INACTIVE_UNSELECTED_TABS_COLOR_START {
color: #515658;
category: '#org-eclipse-ui-presentation-default';
label: url('platform:/plugin/org.talend.themes.css.talend?message=INACTIVE_UNSELECTED_TABS_COLOR_START');
}
ColorDefinition#org-eclipse-ui-workbench-INACTIVE_UNSELECTED_TABS_COLOR_END {
color: #464649;
category: '#org-eclipse-ui-presentation-default';
label: url('platform:/plugin/org.talend.themes.css.talend?message=INACTIVE_UNSELECTED_TABS_COLOR_END');
}
ColorDefinition#org-eclipse-ui-workbench-INACTIVE_TAB_BG_START {
color: #3B4042;
category: '#org-eclipse-ui-presentation-default';
label: url('platform:/plugin/org.talend.themes.css.talend?message=INACTIVE_TAB_BG_START');
}
ColorDefinition#org-eclipse-ui-workbench-INACTIVE_TAB_BG_END {
color: #313538;
category: '#org-eclipse-ui-presentation-default';
label: url('platform:/plugin/org.talend.themes.css.talend?message=INACTIVE_TAB_BG_END');
}
ColorDefinition#org-eclipse-ui-workbench-INACTIVE_TAB_OUTER_KEYLINE_COLOR {
color: #515658;
category: '#org-eclipse-ui-presentation-default';
label: url('platform:/plugin/org.talend.themes.css.talend?message=INACTIVE_TAB_OUTER_KEYLINE_COLOR');
}
ColorDefinition#org-eclipse-ui-workbench-INACTIVE_TAB_INNER_KEYLINE_COLOR {
color: #515658;
category: '#org-eclipse-ui-presentation-default';
label: url('platform:/plugin/org.talend.themes.css.talend?message=INACTIVE_TAB_INNER_KEYLINE_COLOR');
}
ColorDefinition#org-eclipse-ui-workbench-INACTIVE_TAB_OUTLINE_COLOR {
color: #3B4042;
category: '#org-eclipse-ui-presentation-default';
label: url('platform:/plugin/org.talend.themes.css.talend?message=INACTIVE_TAB_OUTLINE_COLOR');
}
ColorDefinition#org-eclipse-ui-workbench-INACTIVE_TAB_TEXT_COLOR {
color: #BBBBBB;
category: '#org-eclipse-ui-presentation-default';
label: url('platform:/plugin/org.talend.themes.css.talend?message=INACTIVE_TAB_TEXT_COLOR');
}
ColorDefinition#org-eclipse-ui-workbench-INACTIVE_TAB_UNSELECTED_TEXT_COLOR {
color: #BBBBBB;
category: '#org-eclipse-ui-presentation-default';
label: url('platform:/plugin/org.talend.themes.css.talend?message=INACTIVE_TAB_UNSELECTED_TEXT_COLOR');
}
ColorDefinition#org-eclipse-ui-workbench-INACTIVE_TAB_SELECTED_TEXT_COLOR {
color: #FFFFFF;
category: '#org-eclipse-ui-presentation-default';
label: url('platform:/plugin/org.talend.themes.css.talend?message=INACTIVE_TAB_SELECTED_TEXT_COLOR');
}
ColorDefinition#org-eclipse-ui-workbench-ACTIVE_UNSELECTED_TABS_COLOR_START {
color: #494A4D;
category: '#org-eclipse-ui-presentation-default';
label: url('platform:/plugin/org.talend.themes.css.talend?message=ACTIVE_UNSELECTED_TABS_COLOR_START');
}
ColorDefinition#org-eclipse-ui-workbench-ACTIVE_UNSELECTED_TABS_COLOR_END {
color: #404043;
category: '#org-eclipse-ui-presentation-default';
label: url('platform:/plugin/org.talend.themes.css.talend?message=ACTIVE_UNSELECTED_TABS_COLOR_END');
}
ColorDefinition#org-eclipse-ui-workbench-ACTIVE_TAB_BG_START {
color: #2B2C2D;
category: '#org-eclipse-ui-presentation-default';
label: url('platform:/plugin/org.talend.themes.css.talend?message=ACTIVE_TAB_BG_START');
}
ColorDefinition#org-eclipse-ui-workbench-ACTIVE_TAB_BG_END {
color: #292929;
category: '#org-eclipse-ui-presentation-default';
label: url('platform:/plugin/org.talend.themes.css.talend?message=ACTIVE_TAB_BG_END');
}
ColorDefinition#org-eclipse-ui-workbench-ACTIVE_TAB_OUTER_KEYLINE_COLOR {
color: #4B4C4F;
category: '#org-eclipse-ui-presentation-default';
label: url('platform:/plugin/org.talend.themes.css.talend?message=ACTIVE_TAB_OUTER_KEYLINE_COLOR');
}
ColorDefinition#org-eclipse-ui-workbench-ACTIVE_TAB_INNER_KEYLINE_COLOR {
color: #4B4C4F;
category: '#org-eclipse-ui-presentation-default';
label: url('platform:/plugin/org.talend.themes.css.talend?message=ACTIVE_TAB_INNER_KEYLINE_COLOR');
}
ColorDefinition#org-eclipse-ui-workbench-ACTIVE_TAB_OUTLINE_COLOR {
color: #4B4C4F;
category: '#org-eclipse-ui-presentation-default';
label: url('platform:/plugin/org.talend.themes.css.talend?message=ACTIVE_TAB_OUTLINE_COLOR');
}
ColorDefinition#org-eclipse-ui-workbench-ACTIVE_TAB_TEXT_COLOR {
color: #DDDDDD;
category: '#org-eclipse-ui-presentation-default';
label: url('platform:/plugin/org.talend.themes.css.talend?message=ACTIVE_TAB_TEXT_COLOR');
}
ColorDefinition#org-eclipse-ui-workbench-ACTIVE_TAB_UNSELECTED_TEXT_COLOR {
color: #DDDDDD;
category: '#org-eclipse-ui-presentation-default';
label: url('platform:/plugin/org.talend.themes.css.talend?message=ACTIVE_TAB_UNSELECTED_TEXT_COLOR');
}
ColorDefinition#org-eclipse-ui-workbench-ACTIVE_TAB_SELECTED_TEXT_COLOR {
color: #f7f8f8;
category: '#org-eclipse-ui-presentation-default';
label: url('platform:/plugin/org.talend.themes.css.talend?message=ACTIVE_TAB_SELECTED_TEXT_COLOR');
}
ColorDefinition#org-eclipse-ui-workbench-ACTIVE_NOFOCUS_TAB_BG_START {
color: #2B2C2D;
category: '#org-eclipse-ui-presentation-default';
label: url('platform:/plugin/org.talend.themes.css.talend?message=ACTIVE_NOFOCUS_TAB_BG_START');
}
ColorDefinition#org-eclipse-ui-workbench-ACTIVE_NOFOCUS_TAB_BG_END {
color: #292929;
category: '#org-eclipse-ui-presentation-default';
label: url('platform:/plugin/org.talend.themes.css.talend?message=ACTIVE_NOFOCUS_TAB_BG_END');
}
ColorDefinition#org-eclipse-ui-workbench-ACTIVE_NOFOCUS_TAB_TEXT_COLOR {
color: #CCCCCC;
category: '#org-eclipse-ui-presentation-default';
label: url('platform:/plugin/org.talend.themes.css.talend?message=ACTIVE_NOFOCUS_TAB_TEXT_COLOR');
}
ColorDefinition#org-eclipse-ui-workbench-ACTIVE_NOFOCUS_TAB_SELECTED_TEXT_COLOR {
color: #CCCCCC;
category: '#org-eclipse-ui-presentation-default';
label: url('platform:/plugin/org.talend.themes.css.talend?message=ACTIVE_NOFOCUS_TAB_SELECTED_TEXT_COLOR');
}
ColorDefinition#org-eclipse-ui-workbench-LINK_COLOR {
color: #6FC5EE;
category: '#org-eclipse-ui-presentation-default';
label: url('platform:/plugin/org.talend.themes.css.talend?message=LINK_COLOR');
}

View File

@@ -0,0 +1,141 @@
/*******************************************************************************
* Copyright (c) 2010, 2014 Andrea Guarinoni and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Andrea Guarinoni <andrea.guarinoni.dev@outlook.com> - initial API and implementation
* Lars Vogel - initial API and implementation
*******************************************************************************/
/* ################################ CSS for .MParts ########################## */
.MPart {
font-family: '#org-eclipse-ui-workbench-TAB_TEXT_FONT';
background-color: #292929;
color: #DDDDDD;
}
.MPart.busy {
font-style: italic;
}
.MPart.highlighted {
font-weight: bold;
}
.MPart Composite,
.MPart Composite > *,
.MPart Composite > * > *,
.MPart Label,
.MPart ScrolledForm,
.MPart Form,
.MPart Section,
.MPart FormText,
.MPart Link,
.MPart Sash,
.MPart Button,
.MPart Group,
.MPart SashForm,
.MPart Tree,
.MPart FilteredTree,
.MPart RegistryFilteredTree,
.MPart PageSiteComposite,
.MPart DependenciesComposite,
.MPart Text[style~='SWT.READ_ONLY'],
.MPart FigureCanvas,
.MPart ListEditorComposite,
.MPart ScrolledComposite,
.Mpart ScrolledComposite ProgressInfoItem,
.MPart Form ScrolledPageBook,
.MPart DependenciesComposite > SashForm > Section > * { /* Section > DependenciesComposite$... */
background-color: #2F2F2F;
color: #AAAAAA;
}
.MPart Section > Label {
background-color: #2F2F2F;
color: #ABCEDA;
}
.MPart Table,
.MPart Browser,
.Mpart OleFrame,
.MPart ViewForm,
.MPart ViewForm > CLabel,
.MPart PageBook > Label,
.MPart PageBook > SashForm {
background-color: #313538;
color: #CCC;
}
.MPart Section Tree {
background-color: #383A3B;
color: #DDDDDD;
}
.MPart DatePicker,
.MPart DatePicker > Text,
.MPart ScheduleDatePicker,
.MPart ScheduleDatePicker > Text,
.MPart CCombo,
.MPart Spinner,
.MPart Composite > StyledText,
.MPart PageBook > SashForm Label,
.MPart SashForm > Text[style~='SWT.BORDER'] {
background-color: #3f4447;
color: #BBBBBB;
}
.MPart FormHeading,
.MPart FormHeading > TitleRegion,
.MPart FormHeading > TitleRegion > Label,
.MPart FormHeading > TitleRegion > StyledText {
background-color: #505f70;
color: #9ac9d8;
}
.MPart FormHeading,
.MPart FormHeading > TitleRegion {
swt-background-mode: none;
}
.MPart FormHeading > CLabel {
background-color: #505f70;
color: #E98787;
}
/* ------------------------------------------------------------- */
#org-eclipse-jdt-ui-SourceView StyledText,
#org-eclipse-wst-jsdt-ui-SourceView StyledText {
background-color: #252525;
}
/* ------------------------------------------------------------- */
#org-eclipse-ui-console-ConsoleView .MPart > Composite,
#org-eclipse-ui-console-ConsoleView .MPart StyledText,
#org-eclipse-ui-console-ConsoleView .MPart PageBook Label {
background-color: #2F2F2F;
color: #CCCCCC;
}
/* ------------------------------------------------------------- */
#org-eclipse-e4-ui-compatibility-editor Canvas {
background-color: inherit;
}
#org-eclipse-e4-ui-compatibility-editor LayoutCanvas {
background-color: #252525;
color: #CCCCCC;
}

View File

@@ -0,0 +1,76 @@
/*******************************************************************************
* Copyright (c) 2014, 2015 Lars Vogel and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Lars Vogel <Lars.Vogel@gmail.com> - initial API and implementation
* Andrea Guarinoni - intial color schema definition
* Lars Vogel <Lars.Vogel@vogella.com> - Ongoing maintenance
*******************************************************************************/
/* ############################## Eclipse UI properties ############################## */
IEclipsePreferences#org-eclipse-ui-editors:org-talend-themes-css-talend { /* pseudo attribute added to allow contributions without replacing this node, see Bug 466075 */
preferences:
'AbstractTextEditor.Color.Background.SystemDefault=false'
'AbstractTextEditor.Color.SelectionForeground.SystemDefault=false'
'AbstractTextEditor.Color.SelectionBackground.SystemDefault=false'
'AbstractTextEditor.Color.Background=47,47,47'
'AbstractTextEditor.Color.Foreground.SystemDefault=false'
'AbstractTextEditor.Color.SelectionBackground=33,66,131'
'AbstractTextEditor.Color.SelectionForeground=147,161,161'
'AbstractTextEditor.Color.Foreground=204,204,204'
'AbstractTextEditor.Color.FindScope=30,120,155'
'asOccurencesIndicationColor=72,72,72'
'breakpointIndicationColor=51,119,193'
'currentIPColor=90,90,90'
'currentLineColor=55,55,55'
'deletionIndicationColor=224,226,228'
'filteredSearchResultIndicationColor=27,98,145'
'hyperlinkColor=102,175,249'
'hyperlinkColor.SystemDefault=false'
'infoIndicationColor=86,194,170'
'lineNumberColor=119,145,154'
'linked.slave.color=66,156,255'
'matchingTagIndicationColor=72,72,72'
'occurrenceIndicationColor=27,98,145'
'overrideIndicatorColor=78,120,117'
'printMarginColor=81,86,88'
'searchResultHighlighting=false'
'searchResultIndication=true'
'searchResultIndicationColor=94,94,94'
'searchResultTextStyle=BOX'
'secondaryIPColor=90,90,90'
'spellingIndicationColor=253,170,211'
'writeOccurrenceIndicationColor=27,98,145'
}
IEclipsePreferences#org-eclipse-ui-workbench:org-talend-themes-css-talend { /* pseudo attribute added to allow contributions without replacing this node, see Bug 466075 */
preferences:
'ACTIVE_HYPERLINK_COLOR=138,201,242'
'CONFLICTING_COLOR=240,15,66'
'CONTENT_ASSIST_BACKGROUND_COLOR=52,57,61'
'CONTENT_ASSIST_FOREGROUND_COLOR=238,238,238'
'org.eclipse.ui.workbench.INFORMATION_BACKGROUND=81,86,88'
'org.eclipse.ui.workbench.INFORMATION_FOREGROUND=238,238,238'
'org.eclipse.ui.workbench.HOVER_BACKGROUND=52,57,61'
'org.eclipse.ui.workbench.HOVER_FOREGROUND=238,238,238'
'ERROR_COLOR=247,68,117'
'HYPERLINK_COLOR=111,197,238'
'INCOMING_COLOR=31,179,235'
'OUTGOING_COLOR=238,238,238'
'RESOLVED_COLOR=108,210,17'
'EDITION_COLOR=238,238,238'
'org.eclipse.search.ui.match.highlight=206,92,0'
'org.eclipse.ui.editors.rangeIndicatorColor=27,118,153'
'org.eclipse.jface.REVISION_NEWEST_COLOR=75,44,3'
'org.eclipse.jface.REVISION_OLDEST_COLOR=154,113,61'
}

View File

@@ -0,0 +1,97 @@
/*******************************************************************************
* Copyright (c) 2018 Andrea Guarinoni and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Andrea Guarinoni <andrea.guarinoni.dev@outlook.com> - initial API and implementation
* Lars Vogel - initial API and implementation
*******************************************************************************/
/* ################################ CSS for Tabs ########################## */
#org-eclipse-ui-editorss {
swt-tab-height: 8px;
}
.MPartStack {
font-family: '#org-eclipse-ui-workbench-TAB_TEXT_FONT';
swt-tab-renderer: url('bundleclass://org.eclipse.e4.ui.workbench.renderers.swt/org.eclipse.e4.ui.workbench.renderers.swt.CTabRendering');
swt-shadow-visible: false;
}
CTabFolder {
/* Set the styles for the inner tabs: */
color: '#org-eclipse-ui-workbench-INACTIVE_TAB_TEXT_COLOR';
swt-tab-renderer: url('bundleclass://org.eclipse.e4.ui.workbench.renderers.swt/org.eclipse.e4.ui.workbench.renderers.swt.CTabRendering');
swt-tab-outline: '#org-eclipse-ui-workbench-ACTIVE_TAB_OUTLINE_COLOR'; /* border color for selected tab */
swt-outer-keyline-color: '#org-eclipse-ui-workbench-ACTIVE_TAB_OUTER_KEYLINE_COLOR'; /* border color for whole tabs container */
swt-unselected-tabs-color: '#org-eclipse-ui-workbench-ACTIVE_UNSELECTED_TABS_COLOR_START' '#org-eclipse-ui-workbench-ACTIVE_UNSELECTED_TABS_COLOR_END' 100% 100%; /* title background for unselected tab */
swt-selected-tab-fill: '#org-eclipse-ui-workbench-ACTIVE_TAB_BG_END'; /* title background for selected tab */
swt-shadow-visible: false;
swt-unselected-hot-tab-color-background: #161616; /* Bug 465711 */
swt-selected-tab-highlight: none;
}
CTabFolder[style~='SWT.DOWN'][style~='SWT.BOTTOM'] {
/* Set the styles for the bottom inner tabs (Bug 430051): */
swt-tab-renderer: url('bundleclass://org.eclipse.e4.ui.workbench.renderers.swt/org.eclipse.e4.ui.workbench.renderers.swt.CTabRendering');
swt-unselected-hot-tab-color-background: #161616; /* Bug 465711 */
swt-selected-tab-highlight: #316c9b;
swt-selected-highlight-top: false;
}
CTabFolder.active {
swt-selected-tab-highlight: #316c9b;
swt-selected-highlight-top: false;
}
CTabItem,
CTabItem CLabel {
background-color: '#org-eclipse-ui-workbench-ACTIVE_TAB_BG_END'; /* HACK for background of CTabFolder inner Toolbars */
color: '#org-eclipse-ui-workbench-INACTIVE_TAB_UNSELECTED_TEXT_COLOR';
}
CTabItem:selected,
CTabItem:selected CLabel {
color: '#org-eclipse-ui-workbench-INACTIVE_TAB_SELECTED_TEXT_COLOR';
}
.MPartStack.active > CTabItem,
.MPartStack.active > CTabItem CLabel {
background-color: '#org-eclipse-ui-workbench-ACTIVE_TAB_BG_END'; /* HACK for background of CTabFolder inner Toolbars */
color: '#org-eclipse-ui-workbench-ACTIVE_TAB_UNSELECTED_TEXT_COLOR';
}
.MPartStack.active > CTabItem:selected,
.MPartStack.active > CTabItem:selected CLabel {
color: '#org-eclipse-ui-workbench-ACTIVE_TAB_SELECTED_TEXT_COLOR';
}
.MPartStack.active.noFocus > CTabItem:selected {
color: '#org-eclipse-ui-workbench-ACTIVE_NOFOCUS_TAB_SELECTED_TEXT_COLOR';
}
CTabFolder > Composite#ToolbarComposite {
background-color: '#org-eclipse-ui-workbench-ACTIVE_TAB_BG_END'; /* HACK for background of CTabFolder inner Toolbars */
}
CTabFolder.MArea CTabItem,
CTabFolder.MArea CTabItem CLabel {
background-color: '#org-eclipse-ui-workbench-DARK_BACKGROUND'; /* Disable HACK for background of CTabFolder inner Toolbars */
}
CTabItem.busy {
color: #888888;
}
CTabFolder.MArea .MPartStack,CTabFolder.MArea .MPartStack.active {
swt-shadow-visible: false;
}

View File

@@ -0,0 +1,47 @@
/*******************************************************************************
* Copyright (c) 2010, 2014 Andrea Guarinoni and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Andrea Guarinoni <andrea.guarinoni.dev@outlook.com> - initial API and implementation
* Lars Vogel - initial API and implementation
*******************************************************************************/
@import url("platform:/plugin/org.talend.themes.css.talend/themes/dark/common/e4_globalstyle.css");
@import url("platform:/plugin/org.talend.themes.css.talend/themes/dark/dark/e4-dark_ide_colorextensions.css");
@import url("platform:/plugin/org.talend.themes.css.talend/themes/dark/dark/e4-dark_globalstyle.css"); /* Remove this to have ONLY the main IDE shell dark */
@import url("platform:/plugin/org.talend.themes.css.talend/themes/dark/dark/e4-dark_partstyle.css");
@import url("platform:/plugin/org.talend.themes.css.talend/themes/dark/dark/e4-dark_tabstyle.css");
@import url("platform:/plugin/org.talend.themes.css.talend/themes/dark/dark/e4-dark-drag-styling.css");
CTabFolder Canvas {
background-color: #2F2F2F;
color: #CCC;
}
CTabFolder Scale {
background-color: inherit;
}
.MPartStack.active CTabFolder Canvas {
background-color: #262626;
color: #CCC;
}
/* #################### Bottom Status Bar ######################## */
StatusLine,
ImageBasedFrame,
#org-eclipse-ui-StatusLine,
#org-eclipse-ui-StatusLine CLabel,
#org-eclipse-ui-ProgressBar,
#org-eclipse-ui-ProgressBar Canvas {
color:'#org-eclipse-ui-workbench-DARK_FOREGROUND';
}

View File

@@ -0,0 +1,55 @@
/*******************************************************************************
* Copyright (c) 2010, 2019 Andrea Guarinoni and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Andrea Guarinoni <andrea.guarinoni.dev@outlook.com> - initial API and implementation
*******************************************************************************/
@import url("platform:/plugin/org.talend.themes.css.talend/themes/dark/common/e4_globalstyle.css");
@import url("platform:/plugin/org.talend.themes.css.talend/themes/dark/dark/e4-dark_ide_colorextensions.css");
@import url("platform:/plugin/org.talend.themes.css.talend/themes/dark/dark/e4-dark_globalstyle.css"); /* Remove this to have ONLY the main IDE shell dark */
@import url("platform:/plugin/org.talend.themes.css.talend/themes/dark/dark/e4-dark_partstyle.css");
@import url("platform:/plugin/org.talend.themes.css.talend/themes/dark/dark/e4-dark_tabstyle.css");
@import url("platform:/plugin/org.talend.themes.css.talend/themes/dark/dark/e4-dark-drag-styling.css");
.MPartStack.active CTabFolder Canvas {
background-color: #262626;
color: #CCC;
}
/* #################### Bottom Status Bar ######################## */
StatusLine,
ImageBasedFrame,
#org-eclipse-ui-StatusLine,
#org-eclipse-ui-StatusLine CLabel,
#org-eclipse-ui-ProgressBar,
#org-eclipse-ui-ProgressBar Canvas {
color:'#org-eclipse-ui-workbench-DARK_FOREGROUND';
}
/* ###################### Global Styles ########################## */
/* Use unset to set the foreground/background color to null */
Table[swt-lines-visible=true] {
background-color: unset;
}
Tree[swt-lines-visible=true] {
background-color: unset;
}
Button {
background-color: unset;
color: unset;
}

View File

@@ -0,0 +1,80 @@
/*******************************************************************************
* Copyright (c) 2010, 2014 Andrea Guarinoni and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Andrea Guarinoni <andrea.guarinoni.dev@outlook.com> - initial API and implementation
*******************************************************************************/
@import url("platform:/plugin/org.talend.themes.css.talend/themes/dark/common/e4_globalstyle.css");
@import url("platform:/plugin/org.talend.themes.css.talend/themes/dark/dark/e4-dark_ide_colorextensions.css");
@import url("platform:/plugin/org.talend.themes.css.talend/themes/dark/dark/e4-dark_globalstyle.css"); /* Remove this to have ONLY the main IDE shell dark */
@import url("platform:/plugin/org.talend.themes.css.talend/themes/dark/dark/e4-dark_partstyle.css");
@import url("platform:/plugin/org.talend.themes.css.talend/themes/dark/dark/e4-dark_tabstyle.css");
@import url("platform:/plugin/org.talend.themes.css.talend/themes/dark/dark/e4-dark-drag-styling.css");
CTabFolder Canvas {
background-color: #2F2F2F;
color: #CCC;
}
.MPartStack.active CTabFolder Canvas {
background-color: #262626;
color: #CCC;
}
/* #################### Bottom Status Bar ######################## */
StatusLine,
ImageBasedFrame,
#org-eclipse-ui-StatusLine,
#org-eclipse-ui-StatusLine CLabel,
#org-eclipse-ui-ProgressBar,
#org-eclipse-ui-ProgressBar Canvas {
color:'#org-eclipse-ui-workbench-DARK_FOREGROUND';
}
/* ###################### Global Styles ########################## */
TabFolder {
/* background-color is not applied to the whole button,
but text color is changed, so it appear light on light */
background-color: '#org-eclipse-ui-workbench-DARK_BACKGROUND';
color: #222;
}
Button {
/* background-color is not applied to the whole button,
but text color is changed, so it appear light on light */
background-color: #2F2F2F;
color: #CCCCCC;
}
Button[style~='SWT.CHECK'] {
/* currently, Button object isn't consistent (eg. also a checkbox is seen as Button) */
/* so, css rules applied to Button have to be overridden for non-Button matches */
background-color: '#org-eclipse-ui-workbench-DARK_BACKGROUND';
color: #ddd;
}
Button[style~='SWT.RADIO'] {
/* currently, Button object isn't consistent (eg. also a checkbox is seen as Button) */
/* so, css rules applied to Button have to be overridden for non-Button matches */
background-color: '#org-eclipse-ui-workbench-DARK_BACKGROUND';
color: #ddd;
}
Combo {
background-color: #949DA5;
color: #222; /* background of drop-drown list is hard-coded to white */
}
Combo:selected {
background-color: #41464A;
color: #FFF;
}

View File

@@ -0,0 +1,120 @@
@import url("platform:/plugin/org.talend.themes.css.talend/themes/dark/common/e4_globalstyle.css");
@import url("platform:/plugin/org.talend.themes.css.talend/themes/dark/dark/e4-dark_ide_colorextensions.css");
@import url("platform:/plugin/org.talend.themes.css.talend/themes/dark/dark/e4-dark_globalstyle.css"); /* Remove this to have ONLY the main IDE shell dark */
@import url("platform:/plugin/org.talend.themes.css.talend/themes/dark/dark/e4-dark_partstyle.css");
@import url("platform:/plugin/org.talend.themes.css.talend/themes/dark/dark/e4-dark_tabstyle.css");
@import url("platform:/plugin/org.talend.themes.css.talend/themes/dark/dark/e4-dark-drag-styling.css");
CTabFolder Canvas {
background-color: #2F2F2F;
color: #CCC;
}
CTabFolder Scale {
background-color: inherit;
}
.MPartStack.active CTabFolder Canvas {
background-color: #262626;
color: #CCC;
}
.MPartStack.active Table {
background-color: #2F2F2F;
color: #CCC;
}
Tree, Table {
swt-lines-visible: false;
}
/* ##################### Bottom Status Bar ####################### */
StatusLine,
ImageBasedFrame,
#org-eclipse-ui-StatusLine,
#org-eclipse-ui-StatusLine CLabel,
#org-eclipse-ui-ProgressBar,
#org-eclipse-ui-ProgressBar Canvas {
color:'#org-eclipse-ui-workbench-DARK_FOREGROUND';
}
/* ####################### CSS for .MParts ####################### */
.MPart Form Section,
.MPart Form Label,
.MPart Form FormText,
.MPartStack .MPart Form MasterDetailsBlock-MDSashForm,
.MPartStack .MPart Form SashForm,
.MPartStack .MPart Form Sash,
.MPart Form Button[style~='SWT.CHECK'],
.MPart Form Button[style~='SWT.RADIO'],
.MPartStack.active .MPart Form Section,
.MPartStack.active .MPart Form Label,
.MPartStack.active .MPart Form FormText,
.MPartStack.active .MPart Form MasterDetailsBlock-MDSashForm,
.MPartStack.active .MPart Form SashForm,
.MPartStack.active .MPart Form Sash,
.MPartStack.active .MPart Form Button[style~='SWT.CHECK'],
.MPartStack.active .MPart Form Button[style~='SWT.RADIO']
{
background-color: inherit;
color: #f4f7f7;
}
/* Make the content of the Form brighter because the color of
the font of some widgets is hard-coded to be black on Window */
.MPart Form,
.MPart Form Link,
.MPart Form Button,
.MPart Form Group,
.MPart Form ScrolledPageBook,
.MPart Form DependenciesComposite,
.MPart Form ListEditorComposite,
.MPart Form Text[style~='SWT.READ_ONLY'],
.MPart Form DependenciesComposite > SashForm > Section > *, /* Section > DependenciesComposite$... */
.MPartStack.active .MPart Form,
.MPartStack.active .MPart Form Link,
.MPartStack.active .MPart Form Button,
.MPartStack.active .MPart Form Group,
.MPartStack.active .MPart Form ScrolledPageBook,
.MPartStack.active .MPart Form DependenciesComposite,
.MPartStack.active .MPart Form ListEditorComposite,
.MPartStack.active .MPart Form Text[style~='SWT.READ_ONLY'],
.MPartStack.active .MPart Form DependenciesComposite > SashForm > Section > * { /* Section > DependenciesComposite$... */
background-color: #4f5355;
color: #f4f7f7;
}
#org-eclipse-help-ui-HelpView Form,
#org-eclipse-help-ui-HelpView Form Sash,
#org-eclipse-help-ui-HelpView Form Label,
#org-eclipse-help-ui-HelpView Form Section,
#org-eclipse-help-ui-HelpView Form FormText,
#org-eclipse-help-ui-HelpView Form Button,
#org-eclipse-help-ui-HelpView Form Group,
#org-eclipse-help-ui-HelpView Form ScrolledPageBook,
#org-eclipse-help-ui-HelpView Form Text[style~='SWT.READ_ONLY'] {
background-color: #2F2F2F;
color: #CCCCCC;
}
.MPartStack.active #org-eclipse-help-ui-HelpView Form,
.MPartStack.active #org-eclipse-help-ui-HelpView Form Sash,
.MPartStack.active #org-eclipse-help-ui-HelpView Form Label,
.MPartStack.active #org-eclipse-help-ui-HelpView Form Section,
.MPartStack.active #org-eclipse-help-ui-HelpView Form FormText,
.MPartStack.active #org-eclipse-help-ui-HelpView Form Button,
.MPartStack.active #org-eclipse-help-ui-HelpView Form Group,
.MPartStack.active #org-eclipse-help-ui-HelpView Form ScrolledPageBook,
.MPartStack.active #org-eclipse-help-ui-HelpView Form Text[style~='SWT.READ_ONLY'] {
background-color: #262626;
color: #BBBBBB;
}
.MPart Form Section Tree,
.MPartStack.active .MPart Form Section Tree {
background-color: #313538;
color: #DDDDDD;
}

View File

@@ -9,6 +9,14 @@
font-family: '#org-eclipse-ui-workbench-TAB_TEXT_FONT';
}
Shell {
REPO_STABLE_SECONDARY_ENTRY_COLOR: #646464;
REPO_STABLE_PRIMARY_ENTRY_COLOR: #000000;
REPO_INACTIVE_ENTRY_COLOR: #c8c8c8;
REPO_LOCKED_ENTRY: #c80000;
REPO_MERGED_REFERENCED_ITEMS_COLOR: #787878;
}
/**************************************************
* Global Color Setting
**************************************************/
@@ -648,7 +656,10 @@ CTabFolder.org-talend-rcp-abstractMultiPageEditor-footer CTabItem:selected {
.TalendStagingView StyledText {
background-color: COLOR-LIST-BACKGROUND;
}
Table {
background-color: #ff0000;
swt-header-color: #00ff00;
}
/**************************************************
* Palette
**************************************************/
@@ -657,7 +668,7 @@ CTabFolder.org-talend-rcp-abstractMultiPageEditor-footer CTabItem:selected {
tPalette-collapsed-background-color:white;
tPalette-mouseOver-forground-color1:#ADADAD;
tPalette-mouseOver-forground-color2:#ADADAD;
tPalette-mouseOver-forground-color3:#ADADAD;
tPalette-mouseOver-forground-color3:black;
tPalette-mouseOver-background-color1:#ADADAD;
tPalette-mouseOver-background-color2:#ADADAD;
tPalette-mouseOver-background-color3:#ADADAD; /* */
@@ -678,6 +689,15 @@ CTabFolder.org-talend-rcp-abstractMultiPageEditor-footer CTabItem:selected {
tPalette-searchButton-image:url('./default/pics/studio_6.0-repo-search.png');
}
/* Repository tree */
.TalendRepositoryLabel {
STABLE_SECONDARY_ENTRY_COLOR: #646464;
STABLE_PRIMARY_ENTRY_COLOR: #000000;
INACTIVE_ENTRY_COLOR: #C8C8C8;
LOCKED_ENTRY: #C80000;
MERGED_REFERENCED_ITEMS_COLOR: #787878;
}
/**************************************************
* User Color and Font Changes
**************************************************/