Skip to content

Commit 1c045cc

Browse files
committed
added colors AND initial value 4 app NextPropID
1 parent 20cd369 commit 1c045cc

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

src/reducers/componentReducer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const appComponent = {
7878
selectableParents: [],
7979
expanded: true,
8080
props: [],
81-
nextPropId: 0,
81+
nextPropId: 1,
8282
position: {
8383
x: 110,
8484
y: 120,

src/utils/colors.util.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const colors = [
22
'#F44336',
3+
'#3B2F89',
34
'#E91E63',
45
'#9C27B0',
56
'#2196F3',
@@ -11,10 +12,20 @@ const colors = [
1112
'#4CAF50',
1213
'#76FF03',
1314
'#C6FF00',
15+
'#89892F',
16+
'#DCAAA0',
17+
'#FFC0CB',
1418
'#FF9800',
1519
'#FF6D00',
1620
'#F50057',
1721
'#D500F9',
22+
'#FFFF00',
23+
'#D8BFD8',
24+
'#008B8B',
25+
'#7FFFD4',
26+
'#87CEEB',
27+
'#DAA520',
28+
'#C0C0C0',
1829
];
1930

2031
const getColor = () => colors[Math.floor(Math.random() * colors.length)];

0 commit comments

Comments
 (0)