It is currently April 26th, 2024, 7:27 am

Can't resize clock to be bigger

Get help with creating, editing & fixing problems with skins
Koraxtu
Posts: 2
Joined: June 6th, 2020, 2:11 am

Can't resize clock to be bigger

Post by Koraxtu »

I have a rainmeter clock that I'm trying to resize to be bigger but any changes I make only seem to relocate the clock.
Here's the code

Code: Select all

[Rainmeter]
Author=AEW
Update=1000

[Metadata]
Name=Good Morning
Config=Good Morning Clock
Description=Big Clock
Instructions=Use this skin for your own creation? Please link to my version. Thanks in advance
Version=1.0
Tags=
License=CC BY-NC-SA 3.0
Variant=
Preview=

[Variables]
@include=#SKINSPATH#Good Morning\Variables.inc

__________________________________________________________________
||||||||||||||||||||||||||||Measures|||||||||||||||||||||||||||||||

[MeasureTotal]
Measure=FreeDiskSpace
Drive=C:
Total=1

[MeasureTime]
Measure=Time

[MeasureSeconds]
Measure=Time
Format= %S

[MeasureMinutes]
Measure=Time
Format= %M

[MeasureHours]
Measure=Time
Format= %I

[MeasureSecondsPercent]
Measure=Time
Format= %S
MaxValue=60
__________________________________________________________________
||||||||||||||||||||||||||||METERS|||||||||||||||||||||||||||||||||

[Background]
Meter=IMAGE
SolidColor=0,0,0,1
X=0
Y=0
W=800
H=800

[MeterLine]
Meter=RoundLine
MeasureName=MeasureTotal
Y=0
X=0
W=800
H=800
StartAngle=-1.57
LineLength=400
;RotationAngle=3.14150
LineStart=396
LineWidth=1
LineColor=#Color4#
AntiAlias=1
Solid=1



[MeterBackCircel]
Meter=RoundLine
MeasureName=MeasureTotal
Y=0
X=0
W=800
H=800
StartAngle=-1.57
LineLength=3
;RotationAngle=3.14150
LineStart=0
LineWidth=1
LineColor=#Color1#
AntiAlias=1
Solid=1

[MeterSeconds]
Meter=RoundLine
MeasureName=MeasureTime
Y=0
X=0
W=800
H=800
StartAngle=-1.57
LineLength=400
;RotationAngle=3.14150
RotationAngle=6.2831853
LineStart=396
LineWidth=1
LineColor=#Color3#
AntiAlias=1
Solid=1
ValueReminder=60
Last edited by jsmorley on June 6th, 2020, 2:23 am, edited 1 time in total.
Reason: Please use <code> tags. They are the </> button.
User avatar
balala
Rainmeter Sage
Posts: 16172
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Can't resize clock to be bigger

Post by balala »

Koraxtu wrote: June 6th, 2020, 2:15 am I have a rainmeter clock that I'm trying to resize to be bigger but any changes I make only seem to relocate the clock.
First add a new variable to the [Variables] section, let's name it Radius. For instance (to get the original size): Radius=400. This, as hope you figured it out, is the radius of the Roundline meters:

Code: Select all

[Variables]
@include=#SKINSPATH#Good Morning\Variables.inc
Radius=4000
Now you have to replace a few options into a few meters. Don't modify the bellow not listed options, but just the following ones:

Code: Select all

[Background]
...
W=(2*#Radius#)
H=(2*#Radius#)

[MeterLine]
...
W=(2*#Radius#)
H=(2*#Radius#)
...
LineLength=#Radius#
LineStart=(#Radius#-4)
...

[MeterBackCircel]
...
W=(2*#Radius#)
H=(2*#Radius#)
...

[MeterSeconds]
...
W=(2*#Radius#)
H=(2*#Radius#)
...
LineLength=#Radius#
LineStart=(#Radius#-4)
...
Now you can simply resize the clock, by replacing the Radius variable into the [Variables] section.
Koraxtu
Posts: 2
Joined: June 6th, 2020, 2:11 am

Re: Can't resize clock to be bigger

Post by Koraxtu »

Thank you so much. Your solution worked perfectly.
User avatar
balala
Rainmeter Sage
Posts: 16172
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Can't resize clock to be bigger

Post by balala »

Koraxtu wrote: June 6th, 2020, 9:37 pm Your solution worked perfectly.
I'm glad.