It is currently May 8th, 2024, 1:47 pm

Substitute and Alpha Value

Get help with creating, editing & fixing problems with skins
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Substitute and Alpha Value

Post by smurfier »

When I'm using the method I described here to change colors, it seems that the alpha value isn't used if the meter is a string meter. Any ideas anyone?
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
User avatar
Alex2539
Rainmeter Sage
Posts: 642
Joined: July 19th, 2009, 5:59 am
Location: Montreal, QC, Canada

Re: Substitute and Alpha Value

Post by Alex2539 »

Alpha values absolutely do work on string meters. Post your code here so we can see what you did.
ImageImageImageImage
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Substitute and Alpha Value

Post by smurfier »

It a revised version of my Calendar+ skin. Was trying to make the code smaller and more efficient. Also, I know alpha values work on string meters.

Code: Select all

[Rainmeter]
Author=hatbocs@gmail.com
AppVersion=1001000
;Update the calendar every .5 seconds
Update=500
BackgroundMode=2
SolidColor=0,0,0,1
BevelType=0
LeftMouseDoubleClickAction=!RainmeterActivateConfig #CURRENTCONFIG# Calendar-Week.ini

[Metadata]
Name=Calendar | Month
Config=Enigma | Sidebar | Calendar
Description=This visual calendar skin displays dates and weekdays. | The "Week" variant shows only this week.
Version=2.7
Tags=Time | Sidebar | Calendar
Variant=3
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Preview=#SKINSPATH#Enigma\Resources\Images\Preview.png

;==========================================================
[Variables]
;Enigma Universal Variables
@include=#SKINSPATH#Enigma\Resources\Variables\UserVariables.inc
;Day text properties
DayText.hilight=255, 255, 255, 75
;General text formatting
;Used mainly for day labels
Text.Color=255,255, 255,160
Text.Color2=128,192,255,160
;Align weekday x
;Aligns the days vertically along each column that makes up the days of the week
pSu.x=18
pMo.x=43
pTu.x=72
pWe.x=99
pTh.x=125
pFr.x=152
pSa.x=178
;Align week y
;Aligns the days horizontally along each row
pW1.y=33
pW2.y=53
pW3.y=73
pW4.y=93
pW5.y=113
pW6.y=133
;Spacing between each label
;Can also be used to change overall width. Manually adjust date alignments if done, though.
pxS=27
;Enable or Disable extra days on Calendar
;0 to disable, 1 to enable
E.Days=1

;Meter Styles =========================================

[LabelBGStyle]
Y=13
W=16
H=16
SolidColor=255, 255, 255, 25

[LabelStyle]
Y=15
FontColor=#Color1#
FontFace=Trebuchet MS
FontSize=8
stringAlign=center
stringStyle=normal
AntiAlias=1

[TextStyle]
FontFace=Trebuchet MS
FontSize=10
stringAlign=right
stringStyle=normal
AntiAlias=1

;Measures ==============================================
[mYear]
;Retreve year with century
Measure=time
Format=%Y

[cCentury]
;mod(century , 4)
Measure=calc
Formula=(TRUNC(mYear/100)%4)

[cYear]
;separate year from century
measure=Calc
Formula=FRAC(mYear/100)*100
Substitute=".0":""

[mMonth]
;Gets current month without leading zero. ex: 8
Measure=time
Format=%#m

[mDay]
;Gets current day without leading zero. ex 8
Measure=time
Format=%#d

[mWeek]
Measure=TIME
Format=%#w

[cLeapYear]
;Returns 1 if leap year or 0 if not
Measure=calc
Formula=((cYear%4 = 0) && (cYear%100 <> 0) || (cYear%400 = 0))

[cMonthCode]
;Turns month "code" according to notes
Measure=calc
Formula=((mMonth = 3) || (mMonth = 11)) ? 3 : (((mMonth = 4) || (mMonth = 7)) ? 6 : ((mMonth = 5) ? 1 : ((mMonth = 6) ? 4 : ((mMonth = 8) ? 2 : (((mMonth = 9) || (mMonth = 12)) ? 5 : ((mMonth = 10) ? 0 : (cLeapYear ? ((mMonth = 1) ? 6 : 2) : ((mMonth = 1) ? 0 : 3))))))))

[cMonthStartDay]
;Determines which day of the week a month starts. Used in week one to turn off days not in the current month
Measure=calc
Formula=(FLOOR((5*cYear)/4)+cMonthCode+1-(2*cCentury))%7

[cMonthStart]
;Used to help determine day a month starts. If the day of the week is 0 or Saturday then return 7 (for day 7 in a traditional sense) otherwise return the other "coded" day of the week.
Measure=calc
Formula=(cMonthStartDay = 0) ? 7 : cMonthStartDay

[mDayCount]
Measure=calc
Formula=(mMonth=1)*31+(mMonth=2)*(28+((mYear%4)=0))+(mMonth=3)*31+(mMonth=4)*30+(mMonth=5)*31+(mMonth=6)*30+(mMonth=7)*31+(mMonth=8)*31+(mMonth=9)*30+(mMonth=10)*31+(mMonth=11)*30+(mMonth=12)*31

[mDayCount2]
Measure=calc
Formula=(mMonth=1)*31+(mMonth=2)*31+(mMonth=3)*(28+((mYear%4)=0))+(mMonth=4)*31+(mMonth=5)*30+(mMonth=6)*31+(mMonth=7)*30+(mMonth=8)*31+(mMonth=9)*31+(mMonth=10)*30+(mMonth=11)*31+(mMonth=12)*30

[cWeekNum]
Measure=CALC
Formula=7-(cMonthStart-1)

[msWeek]
Measure=CALC
Formula=(mDay<=cWeekNum)*#pW1.y#+((mDay>cWeekNum)&&(mDay<=(cWeekNum+7)))*#pW2.y#+((mDay>(cWeekNum+7))&&(mDay<=(cWeekNum+14)))*#pW3.y# +((mDay>(cWeekNum+14))&&(mDay<=(cWeekNum+21)))*#pW4.y#+((mDay>(cWeekNum+21))&&(mDay<=(cWeekNum+28)))*#pW5.y#+((mDay>(cWeekNum+28))&&(mDay<=(cWeekNum+35)))*#pW6.y#

[msWeekDay2]
Measure=CALC
Formula=(mWeek=0)*#pSu.x#+(mWeek=1)*#pMo.x#+(mWeek=2)*#pTu.x#+(mWeek=3)*#pWe.x#+(mWeek=4)*#pTh.x#+(mWeek=5)*#pFr.x#+(mWeek=6)*#pSa.x#

;Day of Month Indicator------------------------------------

[TodayHL]
Meter=image
X=([msWeekDay2]-15)
Y=([msWeek]+14)
H=2
W=10
SolidColor=128,192,255,128
DynamicVariables=1

;Week 1 Begin----------------------------------------------
[cDay00]
;Sunday in week 1
;r = a - n [a/n] where a%n
;Checks if day is less than month start if less than then hide
Measure=calc
Formula=1-FLOOR((5*cYear)/4)-cMonthCode+(2*cCentury)-7*FLOOR((1-FLOOR((5*cYear)/4)-cMonthCode+(2*cCentury))/7)

[cDay00b]
Measure=calc
Formula=(cMonthStart<=1)?cDay00:(cDay00>0?mDayCount2+(cDay00-7):mDayCount2)

[cDay00Color]
Measure=Calc
Formula=(cMonthStart<=1)?-1:-2
Substitute="-1":"#Text.Color#","-2":"#Text.Color2#",".0":""

[cDay00Hide]
Measure=Calc
Formula=(cMonthStart<=1)?0:(#E.Days#=0)

[mDay00]
Meter=string
MeasureName=cDay00b
X=#pSu.x#
Y=#pW1.y#
MeterStyle=TextStyle
FontColor=[cDay00Color]
Hidden=[cDay00Hide]
DynamicVariables=1

[cDay01]
;Monday in week 1
Measure=calc
Formula=2-FLOOR((5*cYear)/4)-cMonthCode+(2*cCentury)-7*FLOOR((2-FLOOR((5*cYear)/4)-cMonthCode+(2*cCentury))/7)

[cDay01b]
Measure=calc
Formula=(cMonthStart<=2)?cDay01:(cDay01>0?mDayCount2+(cDay01-7):mDayCount2)

[cDay01Color]
Measure=Calc
Formula=(cMonthStart<=2)?-1:-2
Substitute="-1":"#Text.Color#","-2":"#Text.Color2#",".0":""

[cDay01Hide]
Measure=Calc
Formula=(cMonthStart<=2)?0:(#E.Days#=0)

[mDay01]
Meter=string
MeasureName=cDay01b
X=#pMo.x#
Y=#pW1.y#
MeterStyle=TextStyle
FontColor=[cDay01Color]
Hidden=[cDay01Hide]
DynamicVariables=1

[cDay02]
;Tuesday in week 1
Measure=calc
Formula=3-FLOOR((5*cYear)/4)-cMonthCode+(2*cCentury)-7*FLOOR((3-FLOOR((5*cYear)/4)-cMonthCode+(2*cCentury))/7)

[cDay02b]
Measure=calc
Formula=(cMonthStart<=3)?cDay02:(cDay02>0?mDayCount2+(cDay02-7):mDayCount2)

[cDay02Color]
Measure=Calc
Formula=(cMonthStart<=3)?-1:-2
Substitute="-1":"#Text.Color#","-2":"#Text.Color2#",".0":""

[cDay02Hide]
Measure=Calc
Formula=(cMonthStart<=3)?0:(#E.Days#=0)

[mDay02]
Meter=string
MeasureName=cDay02b
X=#pTu.x#
Y=#pW1.y#
MeterStyle=TextStyle
FontColor=[cDay02Color]
Hidden=[cDay02Hide]
DynamicVariables=1

[cDay03]
;Wednesday in week 1
Measure=calc
Formula=4-FLOOR((5*cYear)/4)-cMonthCode+(2*cCentury)-7*FLOOR((4-FLOOR((5*cYear)/4)-cMonthCode+(2*cCentury))/7)

[cDay03b]
Measure=calc
Formula=(cMonthStart<=4)?cDay03:(cDay03>0?mDayCount2+(cDay03-7):mDayCount2)

[cDay03Color]
Measure=Calc
Formula=(cMonthStart<=4)?-1:-2
Substitute="-1":"#Text.Color#","-2":"#Text.Color2#",".0":""

[cDay03Hide]
Measure=Calc
Formula=(cMonthStart<=4)?0:(#E.Days#=0)

[mDay03]
Meter=string
MeasureName=cDay03b
X=#pWe.x#
Y=#pW1.y#
MeterStyle=TextStyle
FontColor=[cDay03Color]
Hidden=[cDay03Hide]
DynamicVariables=1

[cDay04]
;Thursday in week 1
Measure=calc
Formula=5-FLOOR((5*cYear)/4)-cMonthCode+(2*cCentury)-7*FLOOR((5-FLOOR((5*cYear)/4)-cMonthCode+(2*cCentury))/7)

[cDay04b]
Measure=calc
Formula=(cMonthStart<=5)?cDay04:(cDay04>0?mDayCount2+(cDay04-7):mDayCount2)

[cDay04Color]
Measure=Calc
Formula=(cMonthStart<=5)?-1:-2
Substitute="-1":"#Text.Color#","-2":"#Text.Color2#",".0":""

[cDay04Hide]
Measure=Calc
Formula=(cMonthStart<=5)?0:(#E.Days#=0)

[mDay04]
Meter=string
MeasureName=cDay04b
X=#pTh.x#
Y=#pW1.y#
MeterStyle=TextStyle
FontColor=[cDay04Color]
Hidden=[cDay04Hide]
DynamicVariables=1

[cDay05]
;Friday in week 1
Measure=calc
Formula=6-FLOOR((5*cYear)/4)-cMonthCode+(2*cCentury)-7*FLOOR((6-FLOOR((5*cYear)/4)-cMonthCode+(2*cCentury))/7)

[cDay05b]
Measure=calc
Formula=(cMonthStart<=6)?cDay05:(cDay05>0?mDayCount2+(cDay05-7):mDayCount2)

[cDay05Color]
Measure=Calc
Formula=(cMonthStart<=6)?-1:-2
Substitute="-1":"#Text.Color#","-2":"#Text.Color2#",".0":""

[cDay05Hide]
Measure=Calc
Formula=(cMonthStart<=6)?0:(#E.Days#=0)

[mDay05]
Meter=string
MeasureName=cDay05b
X=#pFr.x#
Y=#pW1.y#
MeterStyle=TextStyle
FontColor=[cDay05Color]
Hidden=[cDay05Hide]
DynamicVariables=1

[cDay06]
;Saturday in week 1
Measure=calc
Formula=(0-FLOOR((5*cYear)/4)-cMonthCode+(2*cCentury)-7*FLOOR((0-FLOOR((5*cYear)/4)-cMonthCode+(2*cCentury))/7)) = 0 ? 7 : (0-FLOOR((5*cYear)/4)-cMonthCode+(2*cCentury)-7*FLOOR((0-FLOOR((5*cYear)/4)-cMonthCode+(2*cCentury))/7))

[mDay06]
Meter=string
MeasureName=cDay06
X=#pSa.x#
Y=#pW1.y#
MeterStyle=TextStyle
FontColor=#Text.Color#

;Week 2 Begin----------------------------------------------
[cDay10]
;Sunday in week 2
;Try simply adding 1 to Day06
;No need to worry about calculating if day exists until 28th
Measure=calc
Formula=cDay06+1

[mDay10]
Meter=string
MeasureName=cDay10
X=#pSu.x#
Y=#pW2.y#
MeterStyle=TextStyle
FontColor=#Text.Color#

[cDay11]
;Monday in week 2
;Try simply adding 1 to previous
Measure=calc
Formula=cDay10+1

[mDay11]
Meter=string
MeasureName=cDay11
X=#pMo.x#
Y=#pW2.y#
MeterStyle=TextStyle
FontColor=#Text.Color#

[cDay12]
;Tuesday in week 2
Measure=calc
Formula=cDay11+1

[mDay12]
Meter=string
MeasureName=cDay12
X=#pTu.x#
Y=#pW2.y#
MeterStyle=TextStyle
FontColor=#Text.Color#

[cDay13]
;Wednesday in week 2
Measure=calc
Formula=cDay12+1

[mDay13]
Meter=string
MeasureName=cDay13
X=#pWe.x#
Y=#pW2.y#
MeterStyle=TextStyle
FontColor=#Text.Color#

[cDay14]
;Thursday in week 2
Measure=calc
Formula=cDay13+1

[mDay14]
Meter=string
MeasureName=cDay14
X=#pTh.x#
Y=#pW2.y#
MeterStyle=TextStyle
FontColor=#Text.Color#

[cDay15]
;Friday in week 2
Measure=calc
Formula=cDay14+1

[mDay15]
Meter=string
MeasureName=cDay15
X=#pFr.x#
Y=#pW2.y#
MeterStyle=TextStyle
FontColor=#Text.Color#

[cDay16]
;Saturday in week 2
Measure=calc
Formula=cDay15+1

[mDay16]
Meter=string
MeasureName=cDay16
X=#pSa.x#
Y=#pW2.y#
MeterStyle=TextStyle
FontColor=#Text.Color#

;Week 3 Begin----------------------------------------------
[cDay20]
;Sunday in week 3
;Keep adding one
;No need to worry about calculating if day exists until 28th
Measure=calc
Formula=cDay16 + 1

[mDay20]
Meter=string
MeasureName=cDay20
X=#pSu.x#
Y=#pW3.y#
MeterStyle=TextStyle
FontColor=#Text.Color#

[cDay21]
;Monday in week 3
Measure=calc
Formula=cDay20 + 1

[mDay21]
Meter=string
MeasureName=cDay21
X=#pMo.x#
Y=#pW3.y#
MeterStyle=TextStyle
FontColor=#Text.Color#

[cDay22]
;Tuesday in week 3
Measure=calc
Formula=cDay21 + 1

[mDay22]
Meter=string
MeasureName=cDay22
X=#pTu.x#
Y=#pW3.y#
MeterStyle=TextStyle
FontColor=#Text.Color#

[cDay23]
;Wednesday in week 3
Measure=calc
Formula=cDay22 + 1

[mDay23]
Meter=string
MeasureName=cDay23
X=#pWe.x#
Y=#pW3.y#
MeterStyle=TextStyle
FontColor=#Text.Color#

[cDay24]
;Thursday in week 3
Measure=calc
Formula=cDay23 + 1

[mDay24]
Meter=string
MeasureName=cDay24
X=#pTh.x#
Y=#pW3.y#
MeterStyle=TextStyle
FontColor=#Text.Color#

[cDay25]
;Friday in week 3
Measure=calc
Formula=cDay24 + 1

[mDay25]
Meter=string
MeasureName=cDay25
X=#pFr.x#
Y=#pW3.y#
MeterStyle=TextStyle
FontColor=#Text.Color#

[cDay26]
;Saturday in week 3
Measure=calc
Formula=cDay25 + 1

[mDay26]
Meter=string
MeasureName=cDay26
X=#pSa.x#
Y=#pW3.y#
MeterStyle=TextStyle
FontColor=#Text.Color#

;Week 4 Begin----------------------------------------------
[cDay30]
;Sunday in Week 4
;Keep adding one
;No need to worry about calculating if day exists until 28th
Measure=calc
Formula=cDay26 + 1

[mDay30]
Meter=string
MeasureName=cDay30
X=#pSu.x#
Y=#pW4.y#
MeterStyle=TextStyle
FontColor=#Text.Color#

[cDay31]
;Monday in Week 4
Measure=calc
Formula=cDay30 + 1

[mDay31]
Meter=string
MeasureName=cDay31
X=#pMo.x#
Y=#pW4.y#
MeterStyle=TextStyle
FontColor=#Text.Color#

[cDay32]
;Tuesday in Week 4
Measure=calc
Formula=cDay31 + 1

[mDay32]
Meter=string
MeasureName=cDay32
X=#pTu.x#
Y=#pW4.y#
MeterStyle=TextStyle
FontColor=#Text.Color#

[cDay33]
;Wednesday in Week 4
Measure=calc
Formula=cDay32 + 1

[mDay33]
Meter=string
MeasureName=cDay33
X=#pWe.x#
Y=#pW4.y#
MeterStyle=TextStyle
FontColor=#Text.Color#

[cDay34]
;Thursday in Week 4
Measure=calc
Formula=cDay33 + 1

[mDay34]
Meter=string
MeasureName=cDay34
X=#pTh.x#
Y=#pW4.y#
MeterStyle=TextStyle
FontColor=#Text.Color#

[cDay35]
;Friday in Week 4
Measure=calc
Formula=cDay34 + 1

[mDay35]
Meter=string
MeasureName=cDay35
X=#pFr.x#
Y=#pW4.y#
MeterStyle=TextStyle
FontColor=#Text.Color#

[cDay36]
;Saturday in Week 4
Measure=calc
Formula=cDay35 + 1

[mDay36]
Meter=string
MeasureName=cDay36
X=#pSa.x#
Y=#pW4.y#
MeterStyle=TextStyle
FontColor=#Text.Color#

[cDay40];Week 5 Begin----------------------------------------------
;Sunday in Week 5
;28th likely to occur so test for 28th
Measure=calc
Formula=cDay36 + 1

[cDay40b]
Measure=calc
Formula=cDay40 > mDayCount ? cDay40-mDayCount : cDay40

[cDay40Color]
Measure=Calc
Formula=(cDay40 > mDayCount) ? -2 : -1
Substitute="-1":"#Text.Color#","-2":"#Text.Color2#",".0":""

[cDay40Hide]
Measure=Calc
Formula=(cDay40>mDayCount)?(#E.Days#=0):0

[mDay40]
Meter=string
MeasureName=cDay40b
X=#pSu.x#
Y=#pW5.y#
MeterStyle=TextStyle
FontColor=[cDay40Color]
Hidden=[cDay40Hide]
DynamicVariables=1

[cDay41]
;Monday in Week 5
Measure=calc
Formula=cDay40 + 1

[cDay41b]
Measure=calc
Formula=cDay41 > mDayCount ? cDay41-mDayCount : cDay41

[cDay41Color]
Measure=Calc
Formula=(cDay41 > mDayCount) ? -2 : -1
Substitute="-1":"#Text.Color#","-2":"#Text.Color2#",".0":""

[cDay41Hide]
Measure=Calc
Formula=(cDay41>mDayCount)?(#E.Days#=0):0

[mDay41]
Meter=string
MeasureName=cDay41b
X=#pMo.x#
Y=#pW5.y#
MeterStyle=TextStyle
FontColor=[cDay41Color]
Hidden=[cDay41Hide]
DynamicVariables=1

[cDay42]
;Tuesday in Week 5
Measure=calc
Formula=cDay41 + 1

[cDay42b]
Measure=calc
Formula=cDay42 > mDayCount ? cDay42-mDayCount : cDay42

[cDay42Color]
Measure=Calc
Formula=(cDay42 > mDayCount) ? -2 : -1
Substitute="-1":"#Text.Color#","-2":"#Text.Color2#",".0":""

[cDay42Hide]
Measure=Calc
Formula=(cDay42>mDayCount)?(#E.Days#=0):0

[mDay42]
Meter=string
MeasureName=cDay42b
X=#pTu.x#
Y=#pW5.y#
MeterStyle=TextStyle
FontColor=[cDay42Color]
Hidden=[cDay42Hide]
DynamicVariables=1

[cDay43]
;Wednesday in Week 5
Measure=calc
Formula=cDay42 + 1

[cDay43b]
Measure=calc
Formula=cDay43 > mDayCount ? cDay43-mDayCount : cDay43

[cDay43Color]
Measure=Calc
Formula=(cDay43 > mDayCount) ? -2 : -1
Substitute="-1":"#Text.Color#","-2":"#Text.Color2#",".0":""

[cDay43Hide]
Measure=Calc
Formula=(cDay43>mDayCount)?(#E.Days#=0):0

[mDay43]
Meter=string
MeasureName=cDay43b
X=#pWe.x#
Y=#pW5.y#
MeterStyle=TextStyle
FontColor=[cDay43Color]
Hidden=[cDay43Hide]
DynamicVariables=1

[cDay44]
;Thursday in Week 5
Measure=calc
Formula=cDay43 + 1

[cDay44b]
Measure=calc
Formula=cDay44 > mDayCount ? cDay44-mDayCount : cDay44

[cDay44Color]
Measure=Calc
Formula=(cDay44 > mDayCount) ? -2 : -1
Substitute="-1":"#Text.Color#","-2":"#Text.Color2#",".0":""

[cDay44Hide]
Measure=Calc
Formula=(cDay44>mDayCount)?(#E.Days#=0):0

[mDay44]
Meter=string
MeasureName=cDay44b
X=#pTh.x#
Y=#pW5.y#
MeterStyle=TextStyle
FontColor=[cDay44Color]
Hidden=[cDay44Hide]
DynamicVariables=1

[cDay45]
;Friday in Week 5
Measure=calc
Formula=cDay44 + 1

[cDay45b]
Measure=calc
Formula=cDay45 > mDayCount ? cDay45-mDayCount : cDay45

[cDay45Color]
Measure=Calc
Formula=(cDay45 > mDayCount) ? -2 : -1
Substitute="-1":"#Text.Color#","-2":"#Text.Color2#",".0":""

[cDay45Hide]
Measure=Calc
Formula=(cDay45>mDayCount)?(#E.Days#=0):0

[mDay45]
Meter=string
MeasureName=cDay45b
X=#pFr.x#
Y=#pW5.y#
MeterStyle=TextStyle
FontColor=[cDay45Color]
Hidden=[cDay45Hide]
DynamicVariables=1

[cDay46]
;Saturday in Week 5
Measure=calc
Formula=cDay45 + 1

[cDay46b]
Measure=calc
Formula=cDay46 > mDayCount ? cDay46-mDayCount : cDay46

[cDay46Color]
Measure=Calc
Formula=(cDay45 > mDayCount) ? -2 : -1
Substitute="-1":"#Text.Color#","-2":"#Text.Color2#",".0":""

[cDay46Hide]
Measure=Calc
Formula=(cDay45>mDayCount)?(#E.Days#=0):0

[mDay46]
Meter=string
MeasureName=cDay46b
X=#pSa.x#
Y=#pW5.y#
MeterStyle=TextStyle
FontColor=[cDay46Color]
Hidden=[cDay46Hide]
DynamicVariables=1

;Week 6 Begin----------------------------------------------
[cDay50]
;Sunday in Week 6
;28th likely to occur so test for 28th
Measure=calc
Formula=cDay46 + 1

[cDay50b]
Measure=calc
Formula=cDay50 > mDayCount ? cDay50-mDayCount : cDay50

[cDay50Color]
Measure=Calc
Formula=(cDay50 > mDayCount) ? -2 : -1
Substitute="-1":"#Text.Color#","-2":"#Text.Color2#",".0":""

[cDay50Hide]
Measure=Calc
Formula=(cDay50>mDayCount)?(#E.Days#=0):0

[mDay50]
Meter=string
MeasureName=cDay50b
X=#pSu.x#
Y=#pW6.y#
MeterStyle=TextStyle
FontColor=[cDay50Color]
Hidden=[cDay50Hide]
DynamicVariables=1

[cDay51]
;Monday in Week 6
Measure=calc
Formula=cDay50 + 1

[cDay51b]
Measure=calc
Formula=cDay51 > mDayCount ? cDay51-mDayCount : cDay51

[cDay51Color]
Measure=Calc
Formula=(cDay51 > mDayCount) ? -2 : -1
Substitute="-1":"#Text.Color#","-2":"#Text.Color2#",".0":""

[cDay51Hide]
Measure=Calc
Formula=(cDay51>mDayCount)?(#E.Days#=0):0

[mDay51]
Meter=string
MeasureName=cDay51b
X=#pMo.x#
Y=#pW6.y#
MeterStyle=TextStyle
FontColor=[cDay51Color]
Hidden=[cDay51Hide]
DynamicVariables=1

[cDay52]
;Tuesday in Week 6
Measure=calc
Formula=cDay51 + 1

[cDay52b]
Measure=calc
Formula=cDay52 > mDayCount ? cDay52-mDayCount : cDay52

[cDay52Color]
Measure=Calc
Formula=(cDay52 > mDayCount) ? -2 : -1
Substitute="-1":"#Text.Color#","-2":"#Text.Color2#",".0":""

[cDay52Hide]
Measure=Calc
Formula=(cDay52>mDayCount)?(#E.Days#=0):0

[mDay52]
Meter=string
MeasureName=cDay52b
X=#pTu.x#
Y=#pW6.y#
MeterStyle=TextStyle
FontColor=[cDay52Color]
Hidden=[cDay52Hide]
DynamicVariables=1

[cDay53]
;Wednesday in Week 6
Measure=calc
Formula=cDay52 + 1

[cDay53b]
Measure=calc
Formula=cDay53 > mDayCount ? cDay53-mDayCount : cDay53

[cDay53Color]
Measure=Calc
Formula=(cDay53 > mDayCount) ? -2 : -1
Substitute="-1":"#Text.Color#","-2":"#Text.Color2#",".0":""

[cDay53Hide]
Measure=Calc
Formula=(cDay53>mDayCount)?(#E.Days#=0):0

[mDay53]
Meter=string
MeasureName=cDay53b
X=#pWe.x#
Y=#pW6.y#
MeterStyle=TextStyle
FontColor=[cDay53Color]
Hidden=[cDay53Hide]
DynamicVariables=1

[cDay54]
;Thursday in Week 6
Measure=calc
Formula=cDay53 + 1

[cDay54b]
Measure=calc
Formula=cDay54 > mDayCount ? cDay54-mDayCount : cDay54

[cDay54Color]
Measure=Calc
Formula=(cDay54 > mDayCount) ? -2 : -1
Substitute="-1":"#Text.Color#","-2":"#Text.Color2#",".0":""

[cDay54Hide]
Measure=Calc
Formula=(cDay54>mDayCount)?(#E.Days#=0):0

[mDay54]
Meter=string
MeasureName=cDay54b
X=#pTh.x#
Y=#pW6.y#
MeterStyle=TextStyle
FontColor=[cDay54Color]
Hidden=[cDay54Hide]
DynamicVariables=1

[cDay55]
;Friday in Week 6
Measure=calc
Formula=cDay54 + 1

[cDay55b]
Measure=calc
Formula=cDay55 > mDayCount ? cDay55-mDayCount : cDay55

[cDay55Color]
Measure=Calc
Formula=(cDay55 > mDayCount) ? -2 : -1
Substitute="-1":"#Text.Color#","-2":"#Text.Color2#",".0":""

[cDay55Hide]
Measure=Calc
Formula=(cDay55>mDayCount)?(#E.Days#=0):0

[mDay55]
Meter=string
MeasureName=cDay55b
X=#pFr.x#
Y=#pW6.y#
MeterStyle=TextStyle
FontColor=[cDay55Color]
Hidden=[cDay55Hide]
DynamicVariables=1

[cDay56]
;Saturday in Week 6
Measure=calc
Formula=cDay55 + 1

[cDay56b]
Measure=calc
Formula=cDay56 > mDayCount ? cDay56-mDayCount : cDay56

[cDay56Color]
Measure=Calc
Formula=(cDay56 > mDayCount) ? -2 : -1
Substitute="-1":"#Text.Color#","-2":"#Text.Color2#",".0":""

[cDay56Hide]
Measure=Calc
Formula=(cDay56>mDayCount)?(#E.Days#=0):0

[mDay56]
Meter=string
MeasureName=cDay56b
X=#pSa.x#
Y=#pW6.y#
MeterStyle=TextStyle
FontColor=[cDay56Color]
Hidden=[cDay56Hide]
DynamicVariables=1

[heightDummy]
;Used to keep other skins from snapping to the bottom of an unused week
Meter=image
X=0
Y=#pW6.y#
W=10
H=18
SolidColor=0,0,0,0

;Day Labels-------------------------------------------------
[lSun]
Meter=string
Text="S"
X=7
MeterStyle=LabelStyle

[lMon]
Meter=string
Text="M"
X=#pxS#r
MeterStyle=LabelStyle

[lTues]
Meter=string
Text="T"
X=#pxS#r
MeterStyle=LabelStyle

[lWed]
Meter=string
Text="W"
X=#pxS#r
MeterStyle=LabelStyle

[lThur]
Meter=string
Text="R"
X=#pxS#r
MeterStyle=LabelStyle

[lFri]
Meter=string
Text="F"
X=#pxS#r
MeterStyle=LabelStyle

[lSat]
Meter=string
Text="S"
X=#pxS#r
MeterStyle=LabelStyle

;Day Label BG===============================================
[lSunBG]
Meter=image
MeterStyle=LabelBGStyle
X=0

[lMonBG]
Meter=image
MeterStyle=LabelBGStyle
X=#pxS#r

[lTuesBG]
Meter=image
MeterStyle=LabelBGStyle
X=#pxS#r

[lWedBG]
Meter=image
MeterStyle=LabelBGStyle
X=#pxS#r

[lThurBG]
Meter=image
MeterStyle=LabelBGStyle
X=#pxS#r

[lFriBG]
Meter=image
MeterStyle=LabelBGStyle
X=#pxS#r

[lSatBG]
Meter=image
MeterStyle=LabelBGStyle
X=#pxS#r

[Border]
Meter=IMAGE
SolidColor=#ColorBorder#
X=0
Y=0
W=180
H=1
Hidden=1
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
User avatar
Alex2539
Rainmeter Sage
Posts: 642
Joined: July 19th, 2009, 5:59 am
Location: Montreal, QC, Canada

Re: Substitute and Alpha Value

Post by Alex2539 »

If found your problem. For some reason it doesn't like that you're getting rid of the decimal at the end. If you get rid of ,".0":"" in each of the [cDayXXColor] measures, it will start using the proper alpha values.
ImageImageImageImage
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Substitute and Alpha Value

Post by smurfier »

strangeness. I thought the decimal would mess things up.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
User avatar
Alex2539
Rainmeter Sage
Posts: 642
Joined: July 19th, 2009, 5:59 am
Location: Montreal, QC, Canada

Re: Substitute and Alpha Value

Post by Alex2539 »

I would have thought so too, but apparently not. If I had to guess, I'd say that when it was removed, it did something to the end of the string that made the last number invalid. If you keep the substitution, but get rid of the alpha value it will do the same thing the the value for blue. For example, 255,0,1 should be red, but applying the substitute to it will make it purple, forcing the blue to 255. Luckily, just getting rid of the substitute seems to fix it. Still, a bug that's it's worth looking at.
ImageImageImageImage
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Substitute and Alpha Value

Post by smurfier »

Not exactly. When I removed the alpha value from the substitute and added it manually, everything worked fine. What I'm thinking is it's about the end of the color code. Removing the decimal does something to the end of the color code that makes it unusable.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
User avatar
Alex2539
Rainmeter Sage
Posts: 642
Joined: July 19th, 2009, 5:59 am
Location: Montreal, QC, Canada

Re: Substitute and Alpha Value

Post by Alex2539 »

Dude, I just said exactly that.
Alex2539 wrote:If I had to guess, I'd say that when it was removed, it did something to the end of the string that made the last number invalid.
ImageImageImageImage
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Substitute and Alpha Value

Post by smurfier »

lol...I thought you were talking about if i still added an alpha it wouldn't work. sorry.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .