Skip to content

Commit

Permalink
Added settings and switch between black and white text
Browse files Browse the repository at this point in the history
  • Loading branch information
xun468 committed Jan 8, 2021
1 parent 785c47e commit 8914672
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 13 deletions.
3 changes: 3 additions & 0 deletions @Resources/Variables.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[Variables]
url=""
color=255,255,255,255
25 changes: 12 additions & 13 deletions BloodGlucose.ini → GlucoseMeter/BloodGlucose.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,21 @@ Update=1000
AccurateText=1
DynamicWindowSize=1


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
TOMATO MONITOR URL
[Variables]
url=paste-url-here
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
BACKGROUND METER
@Include=#@#Variables.inc

##################################################

[Background]
Meter=IMAGE
X=0
Y=0
W=400
H=160
SolidColor=255,0,0,1
SolidColor=255,0,0,0

##################################################

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
MEASURES
[MeasureSite]
Measure=WebParser
URL= #url#
Expand All @@ -45,8 +42,8 @@ Measure=WebParser
URL=[MeasureSite]
StringIndex=3

##################################################

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
[GlucoseShadow]
Meter=STRING
MeasureName=MeasureGlucose
Expand All @@ -70,7 +67,7 @@ StringCase=None
StringStyle=Normal
StringEffect=None
FontEffectColor=0,0,0,20
FontColor=255,255,255,255
FontColor=#color#
FontFace=ITC Avant Garde Pro XLt
FontSize=100
AntiAlias=1
Expand All @@ -79,16 +76,18 @@ ClipString=0
[Arrow]
Meter=Image
MeasureName=MeasureArrow
X=-325r
X=([Glucose:X]-75)
Y=20
ImageTint=#color#
DynamicVariables=1

[Change]
Meter=STRING
MeasureName=MeasureChange
X=-20r
Y=55r
StringStyle=Normal
FontColor=255,255,255,255
FontColor=#color#
FontFace=ITC Avant Garde Pro XLt
FontSize=25
AntiAlias=1
Expand Down
91 changes: 91 additions & 0 deletions SettingsWindow/Settings.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
@Include=#@#Variables.inc

[Background]
Meter=IMAGE
X=0
Y=0
W=350
H=80
SolidColor=50,50,50,200

##################################################

[MeasureInput]
Measure=Plugin
Plugin=InputText
X=0
Y=0
W=350
H=20
FontSize=12
FontColor=255,255,255,255
SolidColor=47,47,47,255
AntiAlias=1
FocusDismiss=1
DefaultValue=""
Command1=[!WriteKeyValue Variables url "$UserInput$" "#@#Variables.inc"][!Refresh]

#################################################

[MeterInputLabel]
Meter=String
X=0
Y=0
W=350
H=20
FontSize=12
FontColor=170,170,170,255
SolidColor=27,27,27,255
StringStyle=Italic
AntiAlias=1
Text=Tomato Follower URL
LeftMouseUpAction=[!CommandMeasure "MeasureInput" "ExecuteBatch 1"]

[MeterWhiteBorder]
Meter=Image
SolidColor=150,150,150,255
X=0
Y=28
W=(2*2+[MeterWhiteText:W])
H=(2*2+[MeterWhiteText:H])
DynamicVariables=1

[MeterWhiteText]
X=2
Y=30
Meter=String
FontSize=12
FontColor=255,255,255,255
StringStyle=Bold
SolidColor=47,47,47,255
Padding=5,6,5,5
AntiAlias=1
Text="White Text"
LeftMouseUpAction=[!WriteKeyValue Variables color 255,255,255,255 "#@#Variables.inc"][!Refresh]

[MeterBlackBorder]
Meter=Image
SolidColor=150,150,150,255
X=100
Y=28
W=(2*2+[MeterBlackText:W])
H=(2*2+[MeterBlackText:H])
DynamicVariables=1

[MeterBlackText]
X=102
Y=30
Meter=String
FontSize=12
FontColor=0,0,0,255
StringStyle=Bold
SolidColor=200,200,200,255
Padding=5,6,5,5
AntiAlias=1
Text="Black Text"
LeftMouseUpAction=[!WriteKeyValue Variables color 0,0,0,255 "#@#Variables.inc"][!Refresh]

0 comments on commit 8914672

Please sign in to comment.