-
Notifications
You must be signed in to change notification settings - Fork 3
/
ColorPickerUIExample.ini
68 lines (46 loc) · 3.66 KB
/
ColorPickerUIExample.ini
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
[Rainmeter]
Update=-1
AccurateText=1
[Metadata]
Name=ColorPickerUIExample
Author=death.crafter
Information=Example skin for ColorPickerUI v2.0.0
Version=2.0.0
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0
[WindowTheme]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=Software\Microsoft\Windows\CurrentVersion\Themes\Personalize
RegValue=AppsUseLightTheme
Substitute="1":"Light", "0":"Dark"
[ColorPicker]
Measure=Script
ScriptFile=ColorPickerUI\ColorPickerUI.lua
; Theme: Dark, Light in-built. Follow the docs to create and use a new theme.
Theme=[WindowTheme]
; Enable initial animations: 0 or 1, default 1
Animations=1
; To be executed after user chooses a color - here I use $section$, $option$ and $color$ to
; !SetVariable, so I don't need to refresh after a !WriteKeyValue
FinishAction=[!Log "Successfully changed $section$'s $option$ to $color$!"]
; To be executed if user dimisses the picker.
; I am logging that the desired section's option wasn't changed. YOu can perform other actions.
DismissAction=[!Log "$section$'s $option$ didn't change!"]
[MeterImage]
Meter=Image
H=100
W=100
SolidColor=CF002DB2
; I am changing SolidColor of CURRENTSECTION in hexa format, I can use alpha
LeftMouseUpAction=[!CommandMeasure ColorPicker "SetColor('SolidColor', '#CURRENTSECTION#', 'hexa', '', '#CURRENTSECTION#')"]
ColorChangeAction=[!SetOption $section$ $option$ "$color$"][!UpdateMeter $section$][!Redraw]
[MeterImage2]
Meter=Image
X=R
Y=r
H=100
W=100
SolidColor=207,7,45
; I am changing SolidColor of CURRENTSECTION in rgb format
LeftMouseUpAction=[!CommandMeasure ColorPicker "SetColor('SolidColor', '#CURRENTSECTION#', 'rgb', '', '#CURRENTSECTION#')"]
ColorChangeAction=[!SetOption $section$ $option$ "$color$"][!UpdateMeter $section$][!Redraw]