It is currently March 29th, 2024, 7:47 am

Elegance 2 date positioning

Get help with creating, editing & fixing problems with skins
Blue Guy
Posts: 18
Joined: February 9th, 2019, 5:00 pm

Elegance 2 date positioning

Post by Blue Guy »

[img]C:\Users\Gaming\Pictures\Capture.png[/img]

FYI I have no coding experience.

Is there any way to make it so that the right side of the date (Elegance 2) is fixed to the right edge of the screen?
I want to get rid of the space on the right side when it changes dates.

Any help would be appreciated. :D
You do not have the required permissions to view the files attached to this post.
Last edited by Blue Guy on March 7th, 2019, 10:06 am, edited 1 time in total.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Elegance 2 date positioning

Post by balala »

Please post the involved code (right click the skin, click Edit skin and post here the whole code).
Blue Guy
Posts: 18
Joined: February 9th, 2019, 5:00 pm

Re: Elegance 2 date positioning

Post by Blue Guy »

Code:

Code: Select all

[Rainmeter]
Author=lilshizzy@gmail.com
MiddleMouseDownAction=!RainmeterActivateConfig #CURRENTCONFIG# Date_vert1.ini
@include=#SKINSPATH#Elegance2\Config\Fonts.inc

[Metadata]
Name=Elegance 2 - Date
Config=
Description=
Instructions=
Version=1000
Tags=
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Variant=
Preview=

[MeasureDate]
Measure=Time
Format=%A | %d %B %Y
Substitute="January":"#January#","February":"#February#","March":"#March#","April":"#April#","May":"#May#","June":"#June#","July":"#July#","August":"#August#","September":"#September#","October":"#October#","November":"#November#","December":"#December#","Monday":"#Monday2#","Tuesday":"#Tuesday2#","Wednesday":"#Wednesday2#","Thursday":"#Thursday2#","Friday":"#Friday2#","Saturday":"#Saturday2#","Sunday":"#Sunday2#"

[Variables]
@include=#SKINSPATH#Elegance2\Config\Default.inc

[Styles]
@include=#SKINSPATH#Elegance2\Config\Styles.inc

-------------------------------------METERS--------------------------------------------

[Background]
Meter=IMAGE
SolidColor=0,0,0,1
X=0
Y=0
W=450
H=45
Flip=1

[MeterYear]
MeasureName=MeasureDate
Meter=STRING
MeterStyle=Date1
X=228
Y=0
Last edited by jsmorley on February 23rd, 2019, 9:20 pm, edited 1 time in total.
Reason: Please use [code] tags on long code snippets. It's the </> button.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Elegance 2 date positioning

Post by balala »

Blue Guy wrote: February 23rd, 2019, 8:08 pm Code:
Unfortunately not useful at all, because the code uses a few included files, like Default.inc, or Styles.inc. Without those files, it's hard to tell something useful. So, please pack the config you have (probably Elegance2) and upload it.
Blue Guy
Posts: 18
Joined: February 9th, 2019, 5:00 pm

Re: Elegance 2 date positioning

Post by Blue Guy »

IS this ok?
You do not have the required permissions to view the files attached to this post.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Elegance 2 date positioning

Post by balala »

Blue Guy wrote: February 24th, 2019, 3:04 pm IS this ok?
Yep, it is.
I suppose you was talking about the Elegance2\Date\Date_hori1.ini skin of the package, am I right?
If I am, add the following option to the [Rainmeter] section of the skin: OnRefreshAction=[!Move "0" "0"]. The !Move bang of this option moves the skin to the upper left corner of your screen. Now you have to right align the date and place it in a position to have it in the right side of the screen. Add a StringAlign and modify the X option of the [MeterYear] meter, as it follows:

Code: Select all

[MeterYear]
...
X=(#SCREENAREAWIDTH#-20)
...
StringAlign=Right
Obviously the other options must remain as they was. The value 20 in the above X option is the distance between the right side of the date and the right side of the screen. You can modify it if you want a smaller or larger distance.
Finally refresh the skin.
Blue Guy
Posts: 18
Joined: February 9th, 2019, 5:00 pm

Re: Elegance 2 date positioning

Post by Blue Guy »

Thanks for this! :D
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Elegance 2 date positioning

Post by balala »

Blue Guy wrote: February 24th, 2019, 5:10 pm Thanks for this! :D
Have you succeeded (I hope you have)?
Blue Guy
Posts: 18
Joined: February 9th, 2019, 5:00 pm

Re: Elegance 2 date positioning

Post by Blue Guy »

balala wrote: February 24th, 2019, 5:55 pm Have you succeeded (I hope you have)?
Yep. Thanks for your help! :thumbup:
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Elegance 2 date positioning

Post by balala »