提交 4cf02b33 编写于 作者: S serge-rider

Color definitions fix


Former-commit-id: 01f2e403
上级 e4c6a22a
......@@ -2039,6 +2039,13 @@
value="255,255,225">
<description>Value editor background</description>
</colorDefinition>
<colorDefinition
label="Сell foreground"
categoryId="org.jkiss.dbeaver.ui.presentation.results"
id="org.jkiss.dbeaver.sql.resultset.color.cell.foreground"
color="COLOR_WIDGET_FOREGROUND">
<description>Modified cell foreground</description>
</colorDefinition>
<colorDefinition
label="Modified cell background"
categoryId="org.jkiss.dbeaver.ui.presentation.results"
......
......@@ -30,6 +30,7 @@ public class ThemeConstants
public static final String COLOR_SQL_RESULT_SET_SELECTION_BACK = RESULTS_PROP_PREFIX + "color.selection.background"; //$NON-NLS-1$
public static final String COLOR_SQL_RESULT_SET_PREVIEW_BACK = RESULTS_PROP_PREFIX + "color.preview.background"; //$NON-NLS-1$
public static final String COLOR_SQL_RESULT_CELL_FORE = RESULTS_PROP_PREFIX + "color.cell.foreground"; //$NON-NLS-1$
public static final String COLOR_SQL_RESULT_CELL_ODD_BACK = RESULTS_PROP_PREFIX + "color.cell.odd.background"; //$NON-NLS-1$
public static final String COLOR_SQL_RESULT_CELL_MODIFIED_BACK = RESULTS_PROP_PREFIX + "color.cell.modified.background"; //$NON-NLS-1$
public static final String COLOR_SQL_RESULT_CELL_NEW_BACK = RESULTS_PROP_PREFIX + "color.cell.new.background"; //$NON-NLS-1$
......
......@@ -165,7 +165,7 @@ public class SpreadsheetPresentation extends AbstractPresentation implements IRe
super.createPresentation(controller, parent);
this.boldFont = UIUtils.makeBoldFont(parent.getFont());
this.foregroundNull = parent.getShell().getDisplay().getSystemColor(SWT.COLOR_GRAY);
this.foregroundNull = parent.getShell().getDisplay().getSystemColor(SWT.COLOR_WIDGET_NORMAL_SHADOW);
{
resultsSash = new SashForm(parent, SWT.HORIZONTAL | SWT.SMOOTH);
......@@ -874,6 +874,7 @@ public class SpreadsheetPresentation extends AbstractPresentation implements IRe
// control.setBackground(previewBack);
// }
}
//this.foregroundDefault = currentTheme.getColorRegistry().get(ThemeConstants.COLOR_SQL_RESULT_CELL_FORE);
this.backgroundAdded = currentTheme.getColorRegistry().get(ThemeConstants.COLOR_SQL_RESULT_CELL_NEW_BACK);
this.backgroundDeleted = currentTheme.getColorRegistry().get(ThemeConstants.COLOR_SQL_RESULT_CELL_DELETED_BACK);
this.backgroundModified = currentTheme.getColorRegistry().get(ThemeConstants.COLOR_SQL_RESULT_CELL_MODIFIED_BACK);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册