Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1592

Date and Time • Re: Lexis Calendar Mod

$
0
0
I came up with an idea.

When a space character is inserted in front of Text of the [Date] meter like Text=[\x0020]#D1# #D2# #D3# #D4# #D5# #D6# #D7##CRLF#[\x0020][mD1] [mD2] [mD3] [mD4] [mD5] [mD6] [mD7], an horizontal interval between dates can be calculated as [Date:W] / 7.

Therefore, X of the [Shape] meter can be specified as (([mDay:] - 1) * [Date:W] / 7 + <offset>).

And it is better to move this value into the Shape option because it gets no longer bounded to integer pixel boundaries, which enables more accurate positioning of the underline.

Example:

Code:

[Shape]Meter=ShapeShape=Rectangle (([mDay:] - 1) * [Date:W] / 7 + <offset>),0,#Width#,2 | FillColor #Orange# | StrokeWidth 0DynamicVariables=1Group=DateX=0Y=-2R
The value of <offset> still has to be adjusted manually, but it should save your time and effort.

The drawback is that the texts shift rightward from the original position. If you don't care about it, it is worth trying.

Statistics: Posted by PineYellow — Today, 7:17 am



Viewing all articles
Browse latest Browse all 1592

Trending Articles