It is currently April 27th, 2024, 3:29 pm

Help needed to edit skin

Get help with creating, editing & fixing problems with skins
Tracidas
Posts: 7
Joined: January 2nd, 2020, 10:08 am

Help needed to edit skin

Post by Tracidas »

Code: Select all

 [Rainmeter]
Update=500
DynamicWindowSize=1
OnRefreshAction=[!DeactivateConfig "1.aurora2\Popup" "Popup.ini"]

[Variables]
SwitchMode=0

[MeasureImage]
Measure=Plugin
Plugin=Webparser
Url=https://sol24.net/data/Aurora_Map_N.jpg
Download=1
UpdateRate=900

[MeterImage]
Meter=Image
MeasureName=MeasureImage
W=130
H=100
PreserveAspectRatio=1
LeftMouseUpAction=[!EnableMeasure CalcSwitch]


[CalcSwitch]
Measure=Calc
Formula=#SwitchMode#
IfCondition= #SwitchMode# = 0
IfTrueAction=[!ActivateConfig "1.aurora2\Popup" "Popup.ini"][!ZPos "1" "1.aurora2\Popup"][!DeactivateConfig "1.aurora2" "Image.ini"]
IfFalseAction=[!DeactivateConfig "1.aurora2\Popup" "Popup.ini"][!ZPos "1" "1.aurora2"]
IfConditionMode=1
DynamicVariables=1
Disabled=1

 

Code: Select all

[Rainmeter]
Update=500
DynamicWindowSize=1

[MeasureImage]
Measure=Plugin
Plugin=Webparser
Url=https://sol24.net/data/Aurora_Map_N.jpg
Download=1
UpdateRate=900

[MeterImage]
Meter=Image
MeasureName=MeasureImage
LeftMouseUpAction=[!DeactivateConfig "Popup"][!ToggleConfig "1.aurora2" "Image.ini"][!ZPos "0" "1.aurora2"]


Hi there,
I have this skin with a popup. When I click on an image it pops up way too big for my screen. What code should I insert to make it smaller?
User avatar
balala
Rainmeter Sage
Posts: 16176
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help needed to edit skin

Post by balala »

Tracidas wrote: March 24th, 2024, 2:59 pm I have this skin with a popup. When I click on an image it pops up way too big for my screen. What code should I insert to make it smaller?
If you're talking about the second code, you should have to add either a W or a H option to the [MeterImage] meter. Use the size you'd like to see the image with. Setting only one of these two options, resizes both sizes of the image, preserving its aspect ratio.
Obviously you are the one who have to find which of these two options to set and what value to use for it. A few tries might be needed, to find the best value, but this is the way you have to follow.
Tracidas
Posts: 7
Joined: January 2nd, 2020, 10:08 am

Re: Help needed to edit skin

Post by Tracidas »

Yes! it worked. Thanks :thumbup:
User avatar
balala
Rainmeter Sage
Posts: 16176
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help needed to edit skin

Post by balala »

Tracidas wrote: March 24th, 2024, 6:33 pm Yes! it worked. Thanks :thumbup:
You're welcome. Glad to help. :thumbup: