Use proper snap highlight colors for different themes
This commit is contained in:
parent
f4b4e3ccc0
commit
1ee09f2850
@ -68,6 +68,7 @@ public class FinPointFigure extends AbstractScaleFigure {
|
||||
private static Color finPointGridMinorLineColor;
|
||||
private static Color finPointPointColor;
|
||||
private static Color finPointSelectedPointColor;
|
||||
private static Color finPointSnapHighlightColor;
|
||||
|
||||
static {
|
||||
initColors();
|
||||
@ -94,6 +95,7 @@ public class FinPointFigure extends AbstractScaleFigure {
|
||||
finPointGridMinorLineColor = GUIUtil.getUITheme().getFinPointGridMinorLineColor();
|
||||
finPointPointColor = GUIUtil.getUITheme().getFinPointPointColor();
|
||||
finPointSelectedPointColor = GUIUtil.getUITheme().getFinPointSelectedPointColor();
|
||||
finPointSnapHighlightColor = GUIUtil.getUITheme().getFinPointSnapHighlightColor();
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -277,7 +279,7 @@ public class FinPointFigure extends AbstractScaleFigure {
|
||||
|
||||
final float highlightWidth_m = (float) (LINE_WIDTH_HIGHLIGHT_PIXELS / scale );
|
||||
g2.setStroke(new BasicStroke(highlightWidth_m));
|
||||
g2.setColor(Color.RED);
|
||||
g2.setColor(finPointSnapHighlightColor);
|
||||
g2.draw(new Line2D.Double(start.x, start.y, end.x, end.y));
|
||||
}
|
||||
|
||||
|
@ -93,6 +93,7 @@ public class UITheme {
|
||||
Color getFinPointPointColor();
|
||||
Color getFinPointSelectedPointColor();
|
||||
Color getFinPointBodyLineColor();
|
||||
Color getFinPointSnapHighlightColor();
|
||||
|
||||
Icon getMassOverrideIcon();
|
||||
Icon getMassOverrideSubcomponentIcon();
|
||||
@ -404,6 +405,11 @@ public class UITheme {
|
||||
return Color.BLACK;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Color getFinPointSnapHighlightColor() {
|
||||
return Color.RED;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Icon getMassOverrideIcon() {
|
||||
return Icons.MASS_OVERRIDE_LIGHT;
|
||||
@ -805,6 +811,11 @@ public class UITheme {
|
||||
return Color.WHITE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Color getFinPointSnapHighlightColor() {
|
||||
return new Color(255, 58, 58, 255);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Icon getMassOverrideIcon() {
|
||||
return Icons.MASS_OVERRIDE_DARK;
|
||||
@ -1206,6 +1217,11 @@ public class UITheme {
|
||||
return Color.WHITE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Color getFinPointSnapHighlightColor() {
|
||||
return new Color(241, 77, 77, 255);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Icon getMassOverrideIcon() {
|
||||
return Icons.MASS_OVERRIDE_DARK;
|
||||
@ -1626,6 +1642,11 @@ public class UITheme {
|
||||
return getCurrentTheme().getFinPointBodyLineColor();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Color getFinPointSnapHighlightColor() {
|
||||
return getCurrentTheme().getFinPointBodyLineColor();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Icon getMassOverrideIcon() {
|
||||
return getCurrentTheme().getMassOverrideIcon();
|
||||
|
Loading…
x
Reference in New Issue
Block a user