提交 477305b5 编写于 作者: S Serge Rider

#7316 Connection type edit dialog: set correct color in color picker

上级 ccfeb3ca
......@@ -267,6 +267,8 @@ public class PrefPageConnectionTypes extends AbstractPrefPage implements IWorkbe
final Color connectionTypeColor = UIUtils.getConnectionTypeColor(connectionType);
if (connectionTypeColor != null) {
colorPicker.setColorValue(connectionTypeColor.getRGB());
} else {
colorPicker.setColorValue(colorPicker.getButton().getBackground().getRGB());
}
typeName.setText(connectionType.getName());
......@@ -333,7 +335,7 @@ public class PrefPageConnectionTypes extends AbstractPrefPage implements IWorkbe
//item.setBackground(0, connectionColor);
item.setBackground(1, connectionColor);
if (connectionColor != null) {
colorPicker.setColorValue(connectionColor.getRGB());
//colorPicker.setColorValue(connectionColor.getRGB());
}
}
item.setData(connectionType);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册