Skip to content

Commit 59896d2

Browse files
authored
fix: fix the colors of the angle picker dropdown (#179)
1 parent dbb79ea commit 59896d2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/css.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -694,9 +694,7 @@ const styles = `
694694
}
695695
696696
.blocklyAngleCircle {
697-
stroke: var(--colour-motion-tertiary);
698697
stroke-width: 1;
699-
fill: var(--colour-motion-secondary);
700698
}
701699
702700
.blocklyAngleCenterPoint {

src/fields/field_angle.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ class FieldAngle extends Blockly.FieldNumber {
158158
cx: this.HALF,
159159
cy: this.HALF,
160160
r: this.RADIUS,
161+
fill: this.getSourceBlock().getParent().getColourSecondary(),
162+
stroke: this.getSourceBlock().getParent().getColourTertiary(),
161163
class: "blocklyAngleCircle",
162164
},
163165
svg
@@ -248,7 +250,7 @@ class FieldAngle extends Blockly.FieldNumber {
248250

249251
Blockly.DropDownDiv.setColour(
250252
this.getSourceBlock().getParent().getColour(),
251-
this.getSourceBlock().getColourTertiary()
253+
this.getSourceBlock().getParent().getColourTertiary()
252254
);
253255
Blockly.DropDownDiv.showPositionedByBlock(this, this.getSourceBlock());
254256

0 commit comments

Comments
 (0)