mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
Sync pin color on chips
This commit is contained in:
+1
-1
@@ -61,7 +61,7 @@ public class TactileMicroSwitch extends AbstractLabeledComponent<String> {
|
||||
|
||||
public static Color BODY_COLOR = Color.lightGray;
|
||||
public static Color BORDER_COLOR = Color.gray.darker();
|
||||
public static Color PIN_COLOR = Color.decode("#00B2EE");
|
||||
public static Color PIN_COLOR = METAL_COLOR;
|
||||
public static Color PIN_BORDER_COLOR = PIN_COLOR.darker();
|
||||
public static Color INDENT_COLOR = Color.gray.darker();
|
||||
public static Color LABEL_COLOR = Color.white;
|
||||
|
||||
+9
@@ -97,6 +97,15 @@ public abstract class AbstractTransistorPackage extends AbstractLabeledComponent
|
||||
case JFET_SGD:
|
||||
case MOSFET_SGD:
|
||||
return 2 - index;
|
||||
case BJT_BCE:
|
||||
switch (index) {
|
||||
case 0: return 1;
|
||||
case 1: return 0;
|
||||
case 2: return 2;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return index;
|
||||
|
||||
@@ -93,7 +93,7 @@ public class BridgeRectifier extends AbstractLabeledComponent<String> {
|
||||
|
||||
public static Color BODY_COLOR = Color.gray;
|
||||
public static Color BORDER_COLOR = Color.gray.darker();
|
||||
public static Color PIN_COLOR = Color.decode("#00B2EE");
|
||||
public static Color PIN_COLOR = METAL_COLOR;
|
||||
public static Color PIN_BORDER_COLOR = PIN_COLOR.darker();
|
||||
public static Color LABEL_COLOR = Color.white;
|
||||
public static int EDGE_RADIUS = 6;
|
||||
|
||||
@@ -64,7 +64,7 @@ public class DIL_IC extends AbstractLabeledComponent<String> {
|
||||
|
||||
public static Color BODY_COLOR = Color.gray;
|
||||
public static Color BORDER_COLOR = Color.gray.darker();
|
||||
public static Color PIN_COLOR = Color.decode("#00B2EE");
|
||||
public static Color PIN_COLOR = METAL_COLOR;
|
||||
public static Color PIN_BORDER_COLOR = PIN_COLOR.darker();
|
||||
public static Color INDENT_COLOR = Color.gray.darker();
|
||||
public static Color LABEL_COLOR = Color.white;
|
||||
|
||||
Reference in New Issue
Block a user