Skip to content

Commit dc084e1

Browse files
committed
Changes the colors used for example labels to something more readable (actually to a color bewer palette)
1 parent f71bb7d commit dc084e1

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
constants
2+
exampleColors
3+
4+
"These are color brewer colors: https://colorbrewer2.org"
5+
^ #('a6cee3'
6+
'1f78b4'
7+
'b2df8a'
8+
'33a02c'
9+
'fb9a99'
10+
'e31a1c'
11+
'fdbf6f'
12+
'ff7f00'
13+
'cab2d6'
14+
'6a3d9a')
15+
collect: [:colorHexString |
16+
Color fromString: colorHexString]
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
ui
22
color
3-
4-
^ Color indexedColors reversed atWrap: self exampleName hash
3+
4+
^ BPExample exampleColors atWrap: self exampleName hash

packages/Babylonian-Core.package/BPExample.class/methodProperties.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
"class" : {
33
"bpExamplePragmaPrefix" : "pre 1/21/2021 15:46",
44
"bpExamplePragmaPrefixes" : "pre 1/21/2021 15:54",
5+
"exampleColors" : "pre 3/2/2021 17:58",
56
"fromPragma:" : "pre 1/21/2021 15:45",
67
"newFor:" : "pre 9/30/2020 11:08" },
78
"instance" : {
89
"asPragma" : "pre 1/21/2021 16:14",
910
"canBeUsedForDoIts" : "pre 10/6/2020 09:17",
10-
"color" : "pre 9/30/2020 09:50",
11+
"color" : "pre 3/2/2021 17:32",
1112
"currentTrace" : "jb 12/3/2020 22:33",
1213
"ensureTerminatedProcess" : "jb 12/7/2020 18:10",
1314
"exampleName" : "pre 9/30/2020 09:50",

0 commit comments

Comments
 (0)