I have no knowledge of creating skins for Rainmeter but I have edited one to my likings. Question though how can I make the date always be displayed to the right of the month instead of being in a fixed position?
Here is a screen shot: http://i48.tinypic.com/etxjqh.jpg
See the date looks fine there, but say the month was 'May' the '7' would still be in that position while 'May' would be like 20 spaces away to the left.
It is currently May 21st, 2024, 10:26 am
Hopefully a simple problem.
-
- Posts: 3
- Joined: April 11th, 2012, 3:15 am
-
- Developer
- Posts: 1721
- Joined: July 25th, 2009, 4:47 am
Re: Hopefully a simple problem.
This should be easy to fix. :) You must be using two different meters for the second line: one with the month name ("September"), the other with the date ("7"). However, the Time measure is able to return several different kinds of information at once. For example:
That will give you both the full month name (%B) and the date (%#d). (The # removes leading zeroes, e.g. "07" --> "7".)
Any meter that uses this measure, in the form MeasureName=MeasureMonthAndDay, will display both parts. :)
Code: Select all
[MeasureMonthAndDay]
Measure=Time
Format=%B %#d
Any meter that uses this measure, in the form MeasureName=MeasureMonthAndDay, will display both parts. :)
-
- Posts: 3
- Joined: April 11th, 2012, 3:15 am
Re: Hopefully a simple problem.
Thank you!
I replaced:
With:
It seems to be working as it should!
I replaced:
Code: Select all
[MeterMonth]
Meter=STRING
MeasureName=MeasureMonth
x=20c
y=57
FontColor=255,255,255
StringStyle=BOLD
FontSize=12
StringAlign=LEFT
FontFace=ARIAL
AntiAlias=1
Text="%1"
[MeterDate]
Meter=STRING
MeasureName=MeasureDate
x=110c
y=0r
FontColor=255,255,255
StringStyle=BOLD
FontSize=12
StringAlign=LEFT
FontFace=ARIAL
AntiAlias=1
Text="%1"
Code: Select all
[MeterMonthAndDay]
Meter=STRING
MeasureName=MeasureMonthAndDay
x=20c
y=57
FontColor=255,255,255
StringStyle=BOLD
FontSize=12
StringAlign=LEFT
FontFace=ARIAL
AntiAlias=1
Text="%1"
-
- Developer
- Posts: 1721
- Joined: July 25th, 2009, 4:47 am
Re: Hopefully a simple problem.
Awesome. :)
By the way, two small tips. First:
This "c" doesn't do anything. You probably just want X=20. The only time you use a letter here is "r" or "R", which would mean "20 pixels relative to the previous meter." (See here for the difference.)
Second:
You don't need this line at all, since this is the default text. %1 just means "the value of the measure named in MeasureName." So you only need to use the Text option to do something like this:
By the way, two small tips. First:
Code: Select all
x=20c
Second:
Code: Select all
Text="%1"
Code: Select all
Text="The date is %1."