It is currently April 19th, 2024, 12:22 am

Transparency issues

Get help with creating, editing & fixing problems with skins
Thirstygnomes
Posts: 4
Joined: October 19th, 2010, 12:42 am

Transparency issues

Post by Thirstygnomes »

I am trying to see if any one knows how to make rainmeter fade to 100%.

http://thirstygnome.deviantart.com/gallery/#/d30poto

I use the option currently of fading to 90% then using the "fade in feature" , but on my light background my docking and weather themes show up.
I'm guessing that the solutions will be either messing with standardd enigma code or configuring the theme's color code ex. 255,255,255...
User avatar
Chewtoy
Moderator
Posts: 995
Joined: June 10th, 2009, 12:44 pm
Location: Sweden

Re: Transparency issues

Post by Chewtoy »

You should never set anything to 0 opacity (100% transparent) in rainmeter. That would be the same as: The skin is loaded, but it is not on screen.
Setting it to alpha value 1 (around 99.6% transparent) you wont see the meter but you will still be able to interact with it.

The easiest way is probably to change the colour inside the skin to a lighter colour so it wont show as much.

If you feel very ambitious you can do something with MouseOver and SetAlphaValue. But that is a long way around it and not really needed for this simple task.

Btw. Have you tried to just reducing the alpha value in your skins so they won't show up as much anytime? You can probably get the effect of 100% transparency only that rainmeter wont see it like it is. Which is a good thing.
I don't think, therefore I'm not.
Thirstygnomes
Posts: 4
Joined: October 19th, 2010, 12:42 am

Re: Transparency issues

Post by Thirstygnomes »

How do i go about adjuting alpha values here my xbox dock bar for example. it uses a graphic for the background

Code: Select all

[size=85][MeterRightLine]
Meter=IMAGE
X=6
Y=-1
ImageName=bg.png
AntiAlias=1

[1]
Meter=IMAGE
X=70
Y=7
ImageName=Headset.png
AntiAlias=1
LeftMouseDownAction=!execute ["C:\Program Files\Audacity 1.3 Beta (Unicode)\audacity.exe"]

[2]
Meter=IMAGE
X=125
Y=7
ImageName=WinRAR.png
AntiAlias=1
LeftMouseDownAction=!execute ["C:\Program Files\ClamWin\bin\ClamWin.exe"]

[3]
Meter=IMAGE
X=180
Y=7
ImageName=Wrench.png
AntiAlias=1
LeftMouseDownAction=!execute ["C:\Program Files\Glary Utilities\Integrator.exe"]

[4]
Meter=IMAGE
X=235
Y=7
ImageName=Airplane.png
AntiAlias=1
LeftMouseDownAction=!execute ["C:\Program Files\Handbrake\Handbrake.exe"]

[5]
Meter=IMAGE
X=290
Y=7
ImageName=Disc.png
AntiAlias=1
LeftMouseDownAction=!execute ["C:\Program Files\DVD Flick\dvdflick.exe"]

[6]
Meter=IMAGE
X=345
Y=7
ImageName=Search.png
AntiAlias=1
LeftMouseDownAction=!execute ["C:\Program Files\Spybot - Search & Destroy\SpybotSD.exe"]

[7]
Meter=IMAGE
X=400
Y=7
ImageName=Steam.png
AntiAlias=1
LeftMouseDownAction=!execute ["C:\Program Files\Steam\Steam.exe"]

[8]
Meter=IMAGE
X=455
Y=7
ImageName=Recycle-Empty.png
AntiAlias=1
LeftMouseDownAction=!execute ["::{645FF040-5081-101B-9F08-00AA002F954E}"][/size][size=85][size=85][/size][/size]
Last edited by jsmorley on October 19th, 2010, 3:34 pm, edited 1 time in total.
Reason: Edited to use [code][/code] for code display
Thirstygnomes
Posts: 4
Joined: October 19th, 2010, 12:42 am

Re: Transparency issues

Post by Thirstygnomes »

and my weather app

Code: Select all

[size=85][Variables]
Location=USMN0471
Metric=f
Font=BankGothic russ
FontColor=255, 255, 255, 255
FontInactive=255, 255, 255, 255

;[GATHER WEATHER INFO FROM RSS]=================================

[Current]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=3000
Url=http://xml.weather.com/weather/local/#Location#?cc=*&unit=#Metric#&dayf=0
RegExp="(?siU).*<locale>(.*)</locale>.*<ut>(.*)</ut>.*<ud>(.*)</ud>.*<us>(.*)</us>.*<up>(.*)</up>.*<ur>(.*)</ur>.*<loc id="(.*)">.*<dnam>(.*)</dnam>.*<tm>(.*)</tm>.*<lat>(.*)</lat>.*<lon>(.*)</lon>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<zone>(.*)</zone>.*<cc>.*<lsup>(.*)</lsup>.*<obst>(.*)</obst>.*<tmp>(.*)</tmp>.*<flik>(.*)</flik>.*<t>(.*)</t>.*<icon>(.*)</icon>.*<bar>.*<r>(.*)</r>.*<d>(.*)</d>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<hmid>(.*)</hmid>.*<vis>(.*)</vis>.*<uv>.*<i>(.*)</i>.*<t>(.*)</t>.*<dewp>(.*)</dewp>.*<moon>.*<icon>(.*)</icon>.*<t>(.*)</t>.*"

[Today]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=3000
Url=http://xml.weather.com/weather/local/#Location#?cc=*&unit=#Metric#&dayf=1
RegExp="(?siU)<dayf>.*<lsup>(.*)</lsup>.*<day d="0" t="(.*)" dt="(.*)".*<hi>(.*)</hi>.*<low>(.*)</low>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<part p="d">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*<part p="n">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*"

[Tomorrow]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=3000
Url=http://xml.weather.com/weather/local/#Location#?cc=*&unit=#Metric#&dayf=2
RegExp="(?siU)<day d="1" t="(.*)" dt="(.*)".*<hi>(.*)</hi>.*<low>(.*)</low>.*<sunr>(.*)</sunr>.*<suns>(.*)</suns>.*<part p="d">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*<part p="n">.*<icon>(.*)</icon>.*<t>(.*)</t>.*<wind>.*<s>(.*)</s>.*<gust>(.*)</gust>.*<d>(.*)</d>.*<t>(.*)</t>.*<bt>(.*)</bt>.*<ppcp>(.*)</ppcp>.*<hmid>(.*)</hmid>.*"

;[Current]=========================================

[MeasureWeatherTemp]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Current]
StringIndex=17

[MeasureWeatherDesc]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Current]
StringIndex=19
Substitute=" And ":" and ","Lgt.":"Light ","Snow/":"Snow & "

[MeasureWeatherIcon]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Current]
StringIndex=20

[MeasureWeatherRealFeel]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Current]
StringIndex=18

;[TODAY]=====================================


[MeasureWeatherDesc1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Today]
StringIndex=9
Substitute=" And ":" and "

[MeasureWeatherDay1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Today]
StringIndex=2

[MeasureWeatherTemp1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Today]
StringIndex=4
Substitute="N/A":"666"

[MeasureWeatherIcon1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Today]
StringIndex=8

[CheckNATemp]
Measure=Calc
Formula=[MeasureWeatherTemp1]
IfBelowValue=665
IfBelowAction=!execute [!RainmeterHideMeter MeterNightTemp1][!RainmeterHideMeter MeterNightDay1][!RainmeterHideMeter MeterNightDesc1][!RainmeterHideMeter MeterNightIcon1][!RainmeterShowMeter MeterTemp1][!RainmeterShowMeter MeterDay1][!RainmeterShowMeter MeterDesc1][!RainmeterShowMeter MeterIcon1]
IfEqualValue=666
IfEqualAction=!execute [!RainmeterHideMeter MeterTemp1][!RainmeterHideMeter MeterDay1][!RainmeterHideMeter MeterDesc1][!RainmeterHideMeter MeterIcon1][!RainmeterShowMeter MeterNightTemp1][!RainmeterShowMeter MeterNightDay1][!RainmeterShowMeter MeterNightDesc1][!RainmeterShowMeter MeterNightIcon1]
DynamicVariables=1

;[TONIGHT]=====================================


[MeasureWeatherNightDesc]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Today]
StringIndex=18
Substitute=" And ":" and "

[MeasureWeatherNightTemp]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Today]
StringIndex=5

[MeasureWeatherNightIcon]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Today]
StringIndex=17

;[TOMORROW]=====================================

[MeasureWeatherDesc2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Tomorrow]
StringIndex=8
Substitute=" And ":" and "

[MeasureWeatherDay2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Tomorrow]
StringIndex=1

[MeasureWeatherTemp2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Tomorrow]
StringIndex=3

[MeasureWeatherIcon2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[Tomorrow]
StringIndex=7

;[DISPLAY CURRENT]=================================

[MeterTemp]
MeasureName=MeasureWeatherTemp
Meter=STRING
X=275
Y=4
FontColor=#FontColor#
StringStyle=NORMAL
FontSize=10
StringAlign=RIGHT
StringEffect=Shadow
FontFace=#Font#
Antialias=1
Postfix="°"

[MeterDesc]
MeasureName=MeasureWeatherDesc
Meter=STRING
X=235
Y=5
FontColor=#FontColor#
FontSize=10
StringAlign=RIGHT
StringStyle=NORMAL
StringEffect=Shadow
FontFace=#Font#
Antialias=1

[MeterRealFeel]
MeasureName=MeasureWeatherRealFeel
Meter=STRING
X=275
Y=10r
FontColor=#FontColor#
FontSize=10
StringAlign=RIGHT
StringStyle=NORMAL
StringEffect=Shadow
FontFace=#Font#
Antialias=1
Text="Feels like %1°"

[MeterIconNA]
ImageName=na.png
Meter=IMAGE
H=45
W=45
X=315
Y=1
Hidden=1

[MeterIcon]
MeasureName=MeasureWeatherIcon
Meter=IMAGE
H=35
W=35
X=267
Y=0
Hidden=0

;[DISPLAY TODAY]=============================

[MeterTemp1]
MeasureName=MeasureWeatherTemp1
Meter=STRING
X=275
Y=35
FontColor=#FontInactive#
StringStyle=NORMAL
FontSize=10
StringAlign=RIGHT
FontFace=#Font#
Antialias=1
Postfix="°"
StringEffect=Shadow
Hidden=0

[MeterDay1]
;MeasureName=MeasureWeatherDay1
Meter=STRING
X=240
Y=30
FontColor=#FontInactive#
FontSize=10
StringAlign=RIGHT
StringStyle=NORMAL
FontFace=#Font#
Text="Today"
Antialias=1
StringEffect=Shadow
Hidden=0

[MeterDesc1]
MeasureName=MeasureWeatherDesc1
Meter=STRING
X=240
Y=40
FontColor=#FontInactive#
FontSize=10
StringAlign=RIGHT
StringStyle=NORMAL
FontFace=#Font#
Antialias=1
StringEffect=Shadow
Hidden=0

[MeterIcon1]
MeasureName=MeasureWeatherIcon1
Meter=IMAGE
H=35
W=35
X=267
Y=25
Hidden=0

[MeterNightTemp1]
MeasureName=MeasureWeatherNightTemp
Meter=STRING
X=275
Y=30
FontColor=#FontInactive#
StringStyle=NORMAL
FontSize=10
StringAlign=RIGHT
FontFace=#Font#
Antialias=1
Postfix="°"
StringEffect=Shadow
Hidden=1

[MeterNightDay1]
;MeasureName=MeasureWeatherDay1
Meter=STRING
X=240
Y=0
FontColor=#FontInactive#
FontSize=10
StringAlign=RIGHT
StringStyle=NORMAL
FontFace=#Font#
Text="Tonight"
Antialias=1
StringEffect=Shadow
Hidden=1

[MeterNightDesc1]
MeasureName=MeasureWeatherNightDesc
Meter=STRING
X=240
Y=40
FontColor=#FontInactive#
FontSize=10
StringAlign=RIGHT
StringStyle=NORMAL
FontFace=#Font#
Antialias=1
StringEffect=Shadow
Hidden=1

[MeterNightIcon1]
MeasureName=MeasureWeatherNightIcon
Meter=IMAGE
H=35
W=35
X=267
Y=25
Hidden=1

;[DISPLAY TOMORROW]=============================

[MeterTemp2]
MeasureName=MeasureWeatherTemp2
Meter=STRING
X=275
Y=60
FontColor=#FontInactive#
StringStyle=NORMAL
FontSize=10
StringAlign=RIGHT
FontFace=#Font#
Antialias=1
Postfix="°"
StringEffect=Shadow

[MeterDay2]
;MeasureName=MeasureWeatherDay2
Meter=STRING
X=240
Y=55
FontColor=#FontInactive#
FontSize=10
StringAlign=RIGHT
StringStyle=NORMAL
FontFace=#Font#
Text="Tomorrow"
Antialias=1
StringEffect=Shadow

[MeterDesc2]
MeasureName=MeasureWeatherDesc2
Meter=STRING
X=240
Y=65
FontColor=#FontInactive#
FontSize=10
StringAlign=RIGHT
StringStyle=NORMAL
FontFace=#Font#
Antialias=1
StringEffect=Shadow

[MeterIcon2]
MeasureName=MeasureWeatherIcon2
Meter=IMAGE
H=35
W=35
X=267
Y=50[/size]
Last edited by jsmorley on October 19th, 2010, 3:35 pm, edited 1 time in total.
Reason: Edited to use [code][/code] for code display
User avatar
Chewtoy
Moderator
Posts: 995
Joined: June 10th, 2009, 12:44 pm
Location: Sweden

Re: Transparency issues

Post by Chewtoy »

First you need to know how rainmeter reads the colour. Which is really simple.
RGBA. Which stands for Red,Green,Blue,Alpha. Typically you usually see people writing the values in octanal base system, unless your poiru and feels that hexadecimal is much better. Anyhow. Your skin is using the octanal system, which in my mind is easier.
Anyhow. For the text, just look at FontColor (and every other colour for that matter) and you will see that it says something like FontColor=255,255,255,255. This translates to FontColor=FullRed,FullGreen,FullBlue,FullyOpaque, which in turn translates to FontColor=White,FullyOpaque.
What you are looking for to change is the last value on that line. Max is 255. The lowest is 0, which you should't use because rainmeter will see it like the skin doesn't exist. It will be loaded, but you can't do anything with it. Set it to 1 instead and you get the same visual effect but rainmeter still sees the skin as being there.

As for the image.
Add ImageTint=255,255,255,YourAlphaValue
If you say you want a white ImageTint it will be the same as you don't want to change the colour. Which is great if you only want to change the alpha.

Understand?
I don't think, therefore I'm not.
Thirstygnomes
Posts: 4
Joined: October 19th, 2010, 12:42 am

Re: Transparency issues

Post by Thirstygnomes »

I have done both of your suggestions. For my weather app when it is non-moused over it works like how i want it, almost 100% like you said, but when moused over, the font and characters are black, not white. For my docking bar the picture file basically got a 100% transparency


http://thirstygnome.deviantart.com/#/d313z1w Looks like it should...

http://thirstygnome.deviantart.com/#/d313yz0 Guess not. dissipated background and black font
User avatar
Chewtoy
Moderator
Posts: 995
Joined: June 10th, 2009, 12:44 pm
Location: Sweden

Re: Transparency issues

Post by Chewtoy »

Try going to the meter that use that colour and change it so it is in uniform as the other meters. That's the only thing I can think of atm.
I don't think, therefore I'm not.