[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.
It is currently March 29th, 2024, 7:47 am
Elegance 2 date positioning
-
- Posts: 18
- Joined: February 9th, 2019, 5:00 pm
Elegance 2 date positioning
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.
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Elegance 2 date positioning
Please post the involved code (right click the skin, click Edit skin and post here the whole code).
-
- Posts: 18
- Joined: February 9th, 2019, 5:00 pm
Re: Elegance 2 date positioning
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.
Reason: Please use [code] tags on long code snippets. It's the </> button.
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Elegance 2 date positioning
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.
-
- Posts: 18
- Joined: February 9th, 2019, 5:00 pm
Re: Elegance 2 date positioning
IS this ok?
You do not have the required permissions to view the files attached to this post.
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Elegance 2 date positioning
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
Finally refresh the skin.
-
- Posts: 18
- Joined: February 9th, 2019, 5:00 pm
Re: Elegance 2 date positioning
Thanks for this!
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Elegance 2 date positioning
Have you succeeded (I hope you have)?
-
- Posts: 18
- Joined: February 9th, 2019, 5:00 pm
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania