generated from extratone/latte
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathColour Swatch.jelly
52 lines (51 loc) · 2.21 KB
/
Colour Swatch.jelly
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import Shortcuts
#Color: red, #Icon: eyedropper
dictionary({"Take Photo":"camera","Photo Library":"photo","Files":"doc"})
repeatEach(Dictionary) {
valueFor(key: "${Repeat Item}", dictionary: Dictionary) >> valueFor
//Unable to get shortcuts action com.alexhay.ToolboxProForShortcuts.CreateMenuIntent
//Unable to get shortcuts action is.workflow.actions.appendvariable
} >> RepeatResult
choose(list: menu) >> choose
//Unable to get shortcuts action com.alexhay.ToolboxProForShortcuts.GetMenuItemIntent
if(Menu Item Detail .contains "Take") {
takePhoto() >> takePhoto
} else {
if(Menu Item Detail .contains "Library") {
selectPhoto() >> selectPhoto
} else {
getFile() >> getFile
}
} >> IFResult
//Unable to get shortcuts action is.workflow.actions.appendvariable
text(text: "## Swatch") >> text
//Unable to get shortcuts action is.workflow.actions.appendvariable
//Unable to get shortcuts action com.alexhay.ToolboxProForShortcuts.AverageColourIntent
text(text: "${Color}") >> text 1
getDictionaryFrom(input: Text) >> getDictionaryFrom
list(items: (
average,
primary,
secondary,
detail,
background
)) >> list
repeatEach(List) {
valueFor(key: "${Repeat Item}", dictionary: Dictionary) >> hexCode
changeCase(text: Repeat Item, case: every word) >> changeCase
var 8BCF0842-BFF0-423B-AA4A-91101474CF94 = """---
##  Colour"""
text("${8BCF0842-BFF0-423B-AA4A-91101474CF94}")
//Unable to get shortcuts action is.workflow.actions.appendvariable
//Unable to get shortcuts action com.alexhay.ToolboxProForShortcuts.CreateMatteIntent
resizeImage(image: Matte, height: 100, width: If Result) >> resizeImage
//Unable to get shortcuts action is.workflow.actions.appendvariable
resizeImage(image: Matte, height: 300, width: 200) >> resizeImage 1
//Unable to get shortcuts action is.workflow.actions.appendvariable
text(text: "<button3>[Copy ${hexCode}](${ActionOutput})") >> text 2
//Unable to get shortcuts action is.workflow.actions.appendvariable
} >> RepeatResult 1
combineImage(images: swatch) >> combineImage
//Unable to get shortcuts action is.workflow.actions.appendvariable
//Unable to get shortcuts action is.workflow.actions.appendvariable
//Unable to get shortcuts action com.alexhay.ToolboxProForShortcuts.QuickLookExtendedIntent