Currently using 50% to center and it does work better than manually doing it, but for clocks and dates the characters change which makes them move into an off-center spot. My OCD triggers me from that. Not a big deal just wondering if there's a way to center things based on the length of the text.
*also ignore that awkward space in my name. mistakes were made*
It is currently March 29th, 2024, 3:46 pm
Is there a way to center things better?
-
- Posts: 7
- Joined: March 17th, 2018, 4:53 am
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Is there a way to center things better?
Not sure I understand nor what that 50% is, nor what are you meaning by "center things based on the length of the text". But anyway a code would be helpful. Please post it.ExileEd iting wrote:Currently using 50% to center and it does work better than manually doing it, but for clocks and dates the characters change which makes them move into an off-center spot. My OCD triggers me from that. Not a big deal just wondering if there's a way to center things based on the length of the text.
-
- Posts: 860
- Joined: August 22nd, 2016, 11:32 pm
- Location: Surrey, B.C., Canada
Re: Is there a way to center things better?
StringAlign=Center or StringAlign=CenterCenterExileEd iting wrote:Currently using 50% to center and it does work better than manually doing it, but for clocks and dates the characters change which makes them move into an off-center spot. My OCD triggers me from that. Not a big deal just wondering if there's a way to center things based on the length of the text.
*also ignore that awkward space in my name. mistakes were made*
The only source of knowledge is experience. Albert Einstein
Deviant Art Page
Deviant Art Page
-
- Moderator
- Posts: 1251
- Joined: February 16th, 2012, 3:32 am
- Location: Berlin, Germany
Re: Is there a way to center things better?
Maybe this tutorial can help you? https://forum.rainmeter.net/viewtopic.php?f=119&t=20795ExileEd iting wrote:Currently using 50% to center and it does work better than manually doing it, but for clocks and dates the characters change which makes them move into an off-center spot. My OCD triggers me from that. Not a big deal just wondering if there's a way to center things based on the length of the text.
*also ignore that awkward space in my name. mistakes were made*
It has section about placing objects centered. If you still face problems post example skin or code.
-
- Posts: 7
- Joined: March 17th, 2018, 4:53 am
Re: Is there a way to center things better?
"balala wrote:Not sure I understand nor what that 50% is, nor what are you meaning by "center things based on the length of the text". But anyway a code would be helpful. Please post it.
WindowX=50%
WindowY=50%
AnchorX=50%
AnchorY=50%
"
also ignore the placement and size of things. Just got a bigger monitor so it messed everything up.
The text in the middle (clock and date) go off center once the characters change because of the difference in sizes. Was wondering if I could do something instead of (50% winX winY etc...)
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Is there a way to center things better?
balala wrote:a code would be helpful. Please post it.
Please give us the code. Otherwise is hard enough to help you.Active Colors wrote:If you still face problems post example skin or code.
-
- Posts: 7
- Joined: March 17th, 2018, 4:53 am
Re: Is there a way to center things better?
Don't know what to give. I just use skins but I mean I'll send random stuff for the Elegance 2 clock.balala wrote:Please give us the code. Otherwise is hard enough to help you.
Clock_hori1:
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Is there a way to center things better?
This probably is good enough, but the Clock_hori1 skin also uses two files (Elegance2\Config\Default.inc and Elegance2\Config\Styles.inc) which also would be needed. Please post them, too.ExileEd iting wrote:Don't know what to give. I just use skins but I mean I'll send random stuff for the Elegance 2 clock.
Or maybe even better, pack the whole root config (the first folder under the Skins folder, which contains the skin) and post it. This way we'll have all needed files, including the images (also used in the skin).
-
- Posts: 7
- Joined: March 17th, 2018, 4:53 am
Re: Is there a way to center things better?
Okay so this folder contains Elegance 1 and 2. The folder "Elegance" is used for my date while the "Elegance 2" is used for the clock.balala wrote:This probably is good enough, but the Clock_hori1 skin also uses two files (Elegance2\Config\Default.inc and Elegance2\Config\Styles.inc) which also would be needed. Please post them, too.
Or maybe even better, pack the whole root config (the first folder under the Skins folder, which contains the skin) and post it. This way we'll have all needed files, including the images (also used in the skin).
I'm using Elegance 2 clock_hori and Elegance date_white1.
I'm just trying to get both text for those centered in the middle of my screen in a better way than setting winx and y to 50% if there is a better way.
https://mega.nz/#!L9MiXYSb!oYo1X84h69u3jnQ1iBHZqadZITnhzgNasI4lJH-EWe8
-
- Rainmeter Sage
- Posts: 16110
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Is there a way to center things better?
Using the settings you've gave us above, the clock aligns perfectly for me in the center of the screen. Just take it into account that the real surface of the skin is a bit different from the effectively visible surface of the clock. Add the following two options to the [Rainmeter] section of the Clock_hori1.ini (this is it, right, not clock_hori, as you said?):
These options will make visible (with grey) the surface of the skin. Check it again if it you see it aligned now.
Adding the above options to the [Rainmeter] section of the Date_white1.ini file, too, will make same way visible the surface of this skin, too. You didn't post the settings from the Rainmeter.ini of this last skin, too, but I think they both are aligned accordingly to the settings.
Also have to take into account that the widths of different digits aren't the same (the narrowest digit is 1). As I see it, the skin doesn't move when the minutes are changing. Also, if you add the above options to the [Rainmeter] section of the skin, you'll see that the width of it really doesn't change.
Code: Select all
[Rainmeter]
...
BackgroundMode=2
SolidColor=240,240,240,80
Adding the above options to the [Rainmeter] section of the Date_white1.ini file, too, will make same way visible the surface of this skin, too. You didn't post the settings from the Rainmeter.ini of this last skin, too, but I think they both are aligned accordingly to the settings.
Also have to take into account that the widths of different digits aren't the same (the narrowest digit is 1). As I see it, the skin doesn't move when the minutes are changing. Also, if you add the above options to the [Rainmeter] section of the skin, you'll see that the width of it really doesn't change.