It is currently April 26th, 2024, 12:10 pm
Get help with creating, editing & fixing problems with skins
Dhp84
Posts: 19 Joined: June 7th, 2017, 4:29 am
Post
by Dhp84 » November 13th, 2022, 6:40 am
Hi all, how would I change this code so that the sidebar is like a clear glass windows 11 widgets panel colour?
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
SkinWidth=250
SkinHeight=905
[Metadata]
Name=SlideDemo\SimpleToLeft
Author=JSMorley
Version=May 11, 2016
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Information=Demonstration of using ActionTimer to slide out a panel
[Variables]
OffSet=249
U=[!UpdateMeasure MeasureSlider][!UpdateMeter *][!Redraw]
; Slider Measure
[MeasureSlider]
Measure=Plugin
Plugin=ActionTimer
ActionList1=Repeat SlideLeft, 2, 22
SlideLeft=[!SetVariable State "2"][!SetVariable OffSet "(Clamp(#OffSet#-9,0,249))"]#U#
ActionList2=Repeat SlideRight, 2, 22
SlideRight=[!SetVariable State "1"][!SetVariable OffSet "(Clamp(#OffSet#+9,0,249))"]#U#
DynamicVariables=1
; Meters
[MeterBack]
Meter=Image
X=#OffSet#
W=250
H=905
SolidColor=16,42,55,255
DynamicVariables=1
MouseOverAction=[!CommandMeasure MeasureSlider "Execute 1"][!ShowMeterGroup GADGETS]
MouseLeaveAction=[!CommandMeasure MeasureSlider "Execute 2"][!HideMeterGroup GADGETS]
[MtrTxt]
Meter=String
X=240
Y=10
FontSize=12
StringEffect=Shadow
StringAlign=Right
AntiAlias=1
Text=Example #1
Hidden=1
Group=GADGETS
[MtrImage]
Meter=IMAGE
ImageName=Sample.png
x=120
y=120
W=64
H=64
LeftMouseUpAction=[!CommandMeasure MeasureSlider "Execute 2"][!HideMeterGroup GADGETS]
Hidden=1
Group=GADGETS
Last edited by SilverAzide on November 13th, 2022, 3:16 pm, edited 1 time in total.
Reason: Please use code tags when posting code, not snippets. It's the </> button. (Snippets are for one-liners, keywords, etc.)
CodeCode
Posts: 1366 Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia
Post
by CodeCode » November 17th, 2022, 7:42 am
Code: Select all
[MeterBack]
Meter=Image
X=#OffSet#
W=250
H=905
SolidColor=16,42,55,255
DynamicVariables=1
MouseOverAction=[!CommandMeasure MeasureSlider "Execute 1"][!ShowMeterGroup GADGETS]
MouseLeaveAction=[!CommandMeasure MeasureSlider "Execute 2"][!HideMeterGroup GADGETS]
Rainmeter has a win 7 glass plugin but it doesn't really work perfectly for win 10+
Make the
SolidColor=16,42,55,255 have a value like this:
SolidColor=16,42,55,100
The fourth value is the Alpha value which determines the transparency. 255 is solid 1 is completely transparent but still recognises mouse actions zero "0" removes the ability for the mouse to interact with that part.
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
Dhp84
Posts: 19 Joined: June 7th, 2017, 4:29 am
Post
by Dhp84 » November 17th, 2022, 9:48 pm
Thanks for that! one more question? how would i add app icons or "widgets" to the side panel, so that they will slide back in and out with the panel?
CodeCode
Posts: 1366 Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia
Post
by CodeCode » November 18th, 2022, 2:37 pm
There is a plugin for that and is certainly what is being used for the slide action already happening.
If the slide is horizontal the X= value will look like this:
X=(somenumber + #Somevariable used for slide action#)
For up or down the same goes but using the Y= value.
Look at this part of the rainmanual:
ActionTimer .
You should be able to use that variable for your own icons.
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
balala
Rainmeter Sage
Posts: 16172 Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania
Post
by balala » November 18th, 2022, 8:33 pm