It is currently April 27th, 2024, 8:19 pm

Multiple InlineSettings

Get help with creating, editing & fixing problems with skins
rhywun
Posts: 2
Joined: August 3rd, 2022, 1:28 pm

Multiple InlineSettings

Post by rhywun »

Hi, I just found InlineSetting and it helps make some of my layouts easier but then unfortunately it introduces a lot of repetition.

Is there any way to simplify something like this? I want to apply multiple settings to one pattern.

Code: Select all

InlinePattern=TEXT
InlinePattern2=TEXT
InlinePattern3=TEXT
InlineSetting=Italic
InlineSetting2=Size | 24
InlineSetting3=Color | #Azure#
I was hoping something like this would work but it's ignored.

Code: Select all

[TestStyle]
StringStyle=Italic
FontSize=24
FontColor=#Azure#

[MyMeter]
InlinePattern=TEXT
InlineSetting=[TestStyle]
I also tried this.

Code: Select all

InlinePattern=TEMP
InlineSetting=Italic,Size | 24,Color | #Azure#
Thanks
User avatar
Yincognito
Rainmeter Sage
Posts: 7178
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Multiple InlineSettings

Post by Yincognito »

rhywun wrote: February 4th, 2024, 2:13 pm Hi, I just found InlineSetting and it helps make some of my layouts easier but then unfortunately it introduces a lot of repetition.

Is there any way to simplify something like this? I want to apply multiple settings to one pattern.

Code: Select all

InlinePattern=TEXT
InlinePattern2=TEXT
InlinePattern3=TEXT
InlineSetting=Italic
InlineSetting2=Size | 24
InlineSetting3=Color | #Azure#
I was hoping something like this would work but it's ignored.

Code: Select all

[TestStyle]
StringStyle=Italic
FontSize=24
FontColor=#Azure#

[MyMeter]
InlinePattern=TEXT
InlineSetting=[TestStyle]
I also tried this.

Code: Select all

InlinePattern=TEMP
InlineSetting=Italic,Size | 24,Color | #Azure#
Thanks
No, every setting / pattern must be specified individually. You can put your 1st code in the style from the 2nd and use it via MeterStyle=... in the meter, but that would just move the repetitions from the meter section to the style section and won't avoid them altogether.

With a few exceptions like the Group option and maybe a few Shape options (depending on how you look at them), almost all Rainmeter options refer to a single instance of something. This does increase repetition but on the other hand it improves clarity and it's more functionally feasible (for example, you can change any individual option without worrying that you'll have to repeat other possibly unknown settings for another instance). It might not look convenient in what you need at this point, but you'll find that it's spot on in other cases (e.g. if you want to alter just the Color setting, you won't have to bother with knowing or repeating the italic or size values, like it would be the case if they were all part of the same option).
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
rhywun
Posts: 2
Joined: August 3rd, 2022, 1:28 pm

Re: Multiple InlineSettings

Post by rhywun »

OK, thanks for the confirmation!
User avatar
Yincognito
Rainmeter Sage
Posts: 7178
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Multiple InlineSettings

Post by Yincognito »

rhywun wrote: February 8th, 2024, 4:59 am OK, thanks for the confirmation!
No problem - you're welcome. Sorry that it probably wasn't what you wanted to hear. At times I wish the same thing as you described in this case.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth