It is currently March 28th, 2024, 1:54 pm

illustro Clock Help-2

Get help with creating, editing & fixing problems with skins
User avatar
MourningStar
Posts: 287
Joined: June 12th, 2016, 2:40 am

illustro Clock Help-2

Post by MourningStar »

I occasionally re-locate my clock to screen-edges. I would like to know how to left/center/right justify the display text. As we know certain dates can grow or shrink in display length, e.g.

long__: Wednesday - September 30 2020 - 15:55:55
short_: Monday - May 01 2020 - 15:55:55

the goal to be for the text to 'grow' away from screen edge

-thx
User avatar
SilverAzide
Rainmeter Sage
Posts: 2588
Joined: March 23rd, 2015, 5:26 pm
Contact:

Re: illustro Clock Help-2

Post by SilverAzide »

MourningStar wrote: May 4th, 2020, 10:16 pm ...the goal to be for the text to 'grow' away from screen edge
Are you looking for this? https://docs.rainmeter.net/manual/meters/string/#StringAlign
mak_kawa
Posts: 908
Joined: December 30th, 2015, 9:47 am

Re: illustro Clock Help-2

Post by mak_kawa »

Hi MourningStar

Are you talking about the clock skin of illutro which is provided as default (sample) skin of Rainmeter? If so, my illutro clock does not display time in the format as you said. If you modified the skin, please post the skin code here.

Generally speaking, to justify the display text, StringAlign= option for the string meter is used as SilverAzide said.
User avatar
MourningStar
Posts: 287
Joined: June 12th, 2016, 2:40 am

Re: illustro Clock Help-2

Post by MourningStar »

SilverAzide wrote: May 4th, 2020, 11:10 pm Are you looking for this? https://docs.rainmeter.net/manual/meters/string/#StringAlign
maybe -thx 4 reply.
User avatar
MourningStar
Posts: 287
Joined: June 12th, 2016, 2:40 am

Re: illustro Clock Help-2

Post by MourningStar »

mak_kawa wrote: May 5th, 2020, 12:14 am Hi MourningStar

Are you talking about the clock skin of illutro which is provided as default (sample) skin of Rainmeter? If so, my illutro clock does not display time in the format as you said. If you modified the skin, please post the skin code here.

Generally speaking, to justify the display text, StringAlign= option for the string meter is used as SilverAzide said.
By skin code I guess you refer to a file that popups when I clik 'edit' in the Manage Skin display. There are several 'StringAlign=' code lines in that file and have no idea which one to modify. If I understand correctly, I am wanting either Left(x)Center(y) or Right(x)Center(y) justification? And yes I 'think' I did modify it. I will post the file if you or someone will show me which line of code and how to modify it. Where do I find this file? For now I'll copy-paste here. - thx

Code: Select all

; Lines starting ; (semicolons) are commented out.
; That is, they do not affect the code and are here for demonstration purposes only.
; ----------------------------------

[Rainmeter]
; This section contains general settings that can be used to change how Rainmeter behaves.
Update=1000
; #@# is equal to Rainmeter\Skins\illustro\@Resources
BackgroundMode=0
BackgroundMargins=0,0,0,0
StringEffect=Shadow

[Metadata]
; Contains basic information of the skin.
Name=Clock
Author=poiru
Information=Displays the current date and time.
License=Creative Commons BY-NC-SA 3.0
Version=1.0.0
StringEffect=Shadow

[Variables]
; Variables declared here can be used later on between two # characters (e.g. #MyVariable#).8
StringEffect=Shadow
fontName=Trebuchet MS
textSize=10
colorBar=235,170,0,255
colorText=255,255,255,205


; ----------------------------------
; MEASURES return some kind of value
; ----------------------------------

[measureTime]
; This measure returns the time in a 24-hour format (i.e. HH:MM).
Measure=Time
StringEffect=SHADOW
Format=%A  -  %B  %d  %#Y  -  %H:%M:%S
; For a 12-hour clock, change the Format option above to: %I:%M %p
; Refer to the Rainmeter manual for other format codes.

[measureDate]
; Returns the date as DD.MM.YYYY
Measure=Time
Format=%d.%m.%y

[measureDay]
; Returns the current day
Measure=Time
Format=%A

; ----------------------------------
; STYLES are used to "centralize" options
; ----------------------------------

[styleTitle]
;StringAlign=Center
;StringCase=Upper
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=0,0,0,50
FontColor=#colorText#
FontFace=#fontName#
FontSize=10
AntiAlias=1
ClipString=1

[styleLeftText]
;StringAlign=Left
; Meters using styleLeftText will be left-aligned.
StringCase=None
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1

[styleRightText]
StringAlign=Right
StringCase=None
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1

[styleSeperator]
SolidColor=255,255,255,15

; ----------------------------------
; METERS display images, text, bars, etc.
; ----------------------------------

[meterTitle]
Meter=String
MeterStyle=styleTitle
; Using MeterStyle=styleTitle will basically "copy" the
; contents of the [styleTitle] section here during runtime.
MeasureName=measureTime
X=150
Y=12
W=700
H=18
Text=%1
StringEffect=shadow
FontEffectColor=0,0,0
; %1 stands for the value of MeasureName (measureTime in this case).
Last edited by eclectic-tech on May 5th, 2020, 3:39 am, edited 1 time in total.
Reason: Please use code tags. It is the </> symbol.
mak_kawa
Posts: 908
Joined: December 30th, 2015, 9:47 am

Re: illustro Clock Help-2

Post by mak_kawa »

Hi MourningStar

As a quick reply...if you want to "grow" the text from left edge of the screen (and the skin is located at the left side of the screen), maybe X position of the [meterTitle] has to be specified by X=0.

I have noticed some strange part in your posted code, but it seems to be not essential so far.
User avatar
MourningStar
Posts: 287
Joined: June 12th, 2016, 2:40 am

Re: illustro Clock Help-2

Post by MourningStar »

mak_kawa wrote: May 5th, 2020, 3:40 am Hi MourningStar

As a quick reply...if you want to "grow" the text from left edge of the screen (and the skin is located at the left side of the screen), maybe X position of the [meterTitle] has to be specified by X=0.

I have noticed some strange part in your posted code, but it seems to be not essential so far.
I am confused. I thought we were discussing a change/mod to a 'StringAlign' code-line.

:confused:

the following is a screen snip of MS Word's text L-C-R justification. This is what I want to do with the clock text.
Attachments
Capture.JPG
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5380
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA
Contact:

Re: illustro Clock Help-2

Post by eclectic-tech »

MourningStar wrote: May 5th, 2020, 3:56 am I am confused. I thought we were discussing a change/mod to a 'StringAlign' code-line.

:confused:

the following is a screen snip of MS Word's text L-C-R justification. This is what I want to do with the clock text.
The fact that you reference "illustro Clock" in your post does not make any sense since that skin never expands left or right based on the text. It is a fixed size with a centered title time, a left-aligned day, and right-aligned date.

If you are asking "in general" how to align a METER in a skin, then StringAlign is what you would use.

However, it appears you want to know how to align a SKIN so it expands to the right-to-left instead of the default left-to-right. In that case you need to change the AnchorX setting in your Rainmeter.ini. Click 'Edit settings' button in the Manage dialog, and set the AnchorX value for the Config you are using to 100%; now the skin will expand from right-to-left as the contents change.

As an example, In 'Rainmeter.ini' find your Config section and add 'AnchorX=100%'

Code: Select all

[illustro\Clock]
Active=0
WindowX=0
WindowY=0
AnchorX=100%
ClickThrough=0
Draggable=1
SnapEdges=1
KeepOnScreen=1
AlwaysOnTop=0
mak_kawa
Posts: 908
Joined: December 30th, 2015, 9:47 am

Re: illustro Clock Help-2

Post by mak_kawa »

Hi MourningStar

If you want to change L-C-R justification for a string meter, you should just modify StringAlign= option to Left, Center, and Right. But you don't want such thing?

Sorry, I don't understand what you intend...please read eclectic-tech's detailed explanation, because my reply is not helpful for you at all.
User avatar
MourningStar
Posts: 287
Joined: June 12th, 2016, 2:40 am

Re: illustro Clock Help-2

Post by MourningStar »

I do not code and therefore am not in any way understanding of these skin code terms (string, meter, etc.). I am only wanting to know what, where and how I change or add code to achieve the display text and will attempt to clarify ...

to me this is text that is left justified :

Wednesday - September 30 2020 - 15:55:55
Monday - May 01 2020 - 15:55:55


to me this is text that is right justified :

Wednesday - September 30 2020 - 15:55:55
.............Monday - May 01 2020 - 15:55:55

(sorry, had to add dots because this reply dialog does not permit the spaces)

to me this is text that is center justified :

Wednesday - September 30 2020 - 15:55:55
.......Monday - May 01 2020 - 15:55:55


If I understand eclectic-tech correctly this requested mod to the 'text' alone cannot be done because the text itself is the skin. I will attempt to locate the file and apply the recommended suggestion.

I apologize for my lack.
-thx
Post Reply