Do own skin, faced with the problem. Tell me, please, is it possible to implement the transparency of the background when enter a value in the search field?
Point:
1. There is a search field with the value " Search Google";
2. When you move the mouse, it changes to "Click me";
(I implemented these two points)
3. After clicking the left mouse button should be able to typed a search query so that it turned out:
a. Paragraphs 1 and 2 should not be visible;
b. The background must remain transparent;
C. only the query you enter is displayed.
Thanks!
Code: Select all
[Rainmeter]
Author=Va1ga
AppVersion=1.1
Update=1000
MouseOverAction=!execute [!RainmeterHideMeter SearchLabel][!RainmeterShowMeter SearchLabelOver][!RainmeterRedraw]
MouseLeaveAction=!execute [!RainmeterShowMeter SearchLabel][!RainmeterHideMeter SearchLabelOver][!RainmeterRedraw]
[Metadata]
Name=Search
[Variables]
font.name=jura
font.size=20
font.se=Shadow
font.ec=0,0,0,50
color.main=255,255,255,255
color.secondary=140,140,140,255
b.size.dateW=330
b.sizeH=52
b.color=0,0,0,50
;==============================
[Background]
Meter=Image
W=#b.size.dateW#
H=#b.sizeH#
SolidColor=#b.color#
[styleFont1]
FontFace=#font.name#
FontColor=#color.main#
FontSize=#font.size#
AntiAlias=1
StringEffect=#font.se#
FontEffectColor=#font.ec#
DynamicVariables=1
[styleFont2]
FontFace=#font.name#
FontColor=#color.secondary#
FontSize=#font.size#
AntiAlias=1
StringEffect=#font.se#
FontEffectColor=#font.ec#
DynamicVariables=1
[styleLine]
SolidColor=#color.main#
W=#b.size.dateW#
H=1
X=0
Y=51
;============ Search ============
[Line]
Meter=line
MeterStyle=styleLine
[SearchLabel]
Meter=String
FontFace=#font.name#
FontSize=#font.size#
FontColor=#color.main#
X=6
Y=10
AntiAlias=1
Text=Search Google
[SearchLabelOver]
Meter=String
FontFace=#font.name#
FontSize=#font.size#
FontColor=#color.main#
X=6
Y=10
W=324
AntiAlias=1
Text=Click me
LeftMouseUpAction=!CommandMeasure "SearchInput" "ExecuteBatch 1"
Hidden=1
[SearchInput]
Measure=Plugin
Plugin=InputText
FontFace=#font.name#
FontSize=#font.size#
FontColor=0,0,0,255
SolidColor=255,255,255,100
X=6
Y=7
W=318
H=38
Command1=!Execute ["http://www.google.com/search?q=$UserInput$"] DefaultValue=""
AntiAlias=1
FocusDismiss=1
UpdateDivider=-1