提交 8ec77bbb 编写于 作者: S Serge Rider

Transaction monitor styles fix (dark theme)


Former-commit-id: 11d1d336
上级 8bf82c5b
...@@ -49,6 +49,7 @@ import org.jkiss.dbeaver.model.runtime.DefaultProgressMonitor; ...@@ -49,6 +49,7 @@ import org.jkiss.dbeaver.model.runtime.DefaultProgressMonitor;
import org.jkiss.dbeaver.runtime.qm.DefaultExecutionHandler; import org.jkiss.dbeaver.runtime.qm.DefaultExecutionHandler;
import org.jkiss.dbeaver.ui.AbstractPartListener; import org.jkiss.dbeaver.ui.AbstractPartListener;
import org.jkiss.dbeaver.ui.IActionConstants; import org.jkiss.dbeaver.ui.IActionConstants;
import org.jkiss.dbeaver.ui.UIStyles;
import org.jkiss.dbeaver.ui.UIUtils; import org.jkiss.dbeaver.ui.UIUtils;
import org.jkiss.dbeaver.ui.controls.querylog.QueryLogViewer; import org.jkiss.dbeaver.ui.controls.querylog.QueryLogViewer;
...@@ -163,6 +164,7 @@ public class TransactionMonitorToolbar { ...@@ -163,6 +164,7 @@ public class TransactionMonitorToolbar {
ColorRegistry colorRegistry = workbenchWindow.getWorkbench().getThemeManager().getCurrentTheme().getColorRegistry(); ColorRegistry colorRegistry = workbenchWindow.getWorkbench().getThemeManager().getCurrentTheme().getColorRegistry();
Color colorTransaction = colorRegistry.get(QueryLogViewer.COLOR_TRANSACTION);
Color colorReverted = colorRegistry.get(QueryLogViewer.COLOR_REVERTED); Color colorReverted = colorRegistry.get(QueryLogViewer.COLOR_REVERTED);
Color colorCommitted = colorRegistry.get(QueryLogViewer.COLOR_UNCOMMITTED); Color colorCommitted = colorRegistry.get(QueryLogViewer.COLOR_UNCOMMITTED);
final RGB COLOR_FULL = colorReverted == null ? getDisplay().getSystemColor(SWT.COLOR_DARK_YELLOW).getRGB() : colorReverted.getRGB(); final RGB COLOR_FULL = colorReverted == null ? getDisplay().getSystemColor(SWT.COLOR_DARK_YELLOW).getRGB() : colorReverted.getRGB();
...@@ -171,9 +173,9 @@ public class TransactionMonitorToolbar { ...@@ -171,9 +173,9 @@ public class TransactionMonitorToolbar {
final int updateCount = txnState == null ? 0 : txnState.getUpdateCount(); final int updateCount = txnState == null ? 0 : txnState.getUpdateCount();
if (txnState == null || !txnState.isTransactionMode()) { if (txnState == null || !txnState.isTransactionMode()) {
bg = getDisplay().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND); bg = UIStyles.getDefaultTextBackground();
} else if (updateCount == 0) { } else if (updateCount == 0) {
bg = getDisplay().getSystemColor(SWT.COLOR_WHITE); bg = colorTransaction;
} else { } else {
// Use gradient depending on update count // Use gradient depending on update count
ISharedTextColors sharedColors = UIUtils.getSharedTextColors(); ISharedTextColors sharedColors = UIUtils.getSharedTextColors();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册