Hi, would you be able to help me with how to modify the spacing between the lines of text on the WorldClock? I can increase the size of the box easily enough but when I increase the font to match it overlaps the text.
If this has already been asked I apologize. Thanks so much in advance if you see this!
It is currently September 1st, 2024, 2:37 am
AstroCalendar, MultiCalendar and WorldClock
-
- Posts: 1
- Joined: January 9th, 2024, 6:54 pm
-
- Rainmeter Sage
- Posts: 16485
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: AstroCalendar, MultiCalendar and WorldClock
For first let's try to work only with the WorldClockH1.ini skin. If you find my solution good enough, and you need, we can work with the other skins as well. So in WorldClockH1.ini do the followings:
- Add an Offset variable to the [Variables] section of the WorldClockH1.ini file. This variable will control the distance between each two consecutive rows. For instance add this variable: Offset=10.
- You have to go one by one to each of the following included files: WorldClock\includes\WorldClockH1\clockX.inc. In this case X varies between 0 and 9 and can be 99 as well - there are 11 such .inc files. In all of these files you have to alter the Y options of the following meters:
Note that:
Code: Select all
[meterTimezoneClockX] ... Y=(20+#Offset#) ... [meterDateClockX] ... Y=(20+#Offset#) ... [meterBehindAheadClockX] ... Y=(34+2*#Offset#) ... [meterYesterdayTomorrowClockX] ... Y=(34+2*#Offset#) ...
- X in this case has the same values as X in the names of the files.
- There are 11 .inc files and in each file there are 4 meters to be altered.
- I added just #Offset# to the Y options of the [meterTimezoneClockX] and [meterDateClockX] meters, but 2*#Offset# to [meterBehindAheadClockX] and [meterYesterdayTomorrowClockX] meters.
- Finally modify the SkinHeight option of the in the [Rainmeter] section of the WorldClockH1.ini file to SkinHeight=(52+2*#Offset#).
Does this work properly? If it does, do you want to do such updates on the other skins as well?
-
- Posts: 67
- Joined: February 12th, 2018, 12:47 am
Re: AstroCalendar, MultiCalendar and WorldClock
As you have discovered, the WorldClock skin variants do not automatically adjust their layouts based on font size (or any other characteristic). Changing the font size will likely require altering the placement of the various string and image meters, and perhaps the size of the skin background. Directly changing the hard-coded numbers in the X/Y/W/H formulas should be straightforward. Balala's approach is a step toward generalizing such changes, and is a reasonable solution.llyus wrote: ↑January 9th, 2024, 7:01 pm Hi, would you be able to help me with how to modify the spacing between the lines of text on the WorldClock? I can increase the size of the box easily enough but when I increase the font to match it overlaps the text.
If this has already been asked I apologize. Thanks so much in advance if you see this!
Each WorldClock variant has individual clock includes named clock0.inc thru clock9.inc. Since making the same change to all ten includes is tedious, I have provided a means to automate the process. Instead of editing the includes individually, edit the "master" include file clock99.inc, then use gen.cmd to generate the ten includes. See readme.txt in the includes directories.
Thanks for helping, balala.
-
- Rainmeter Sage
- Posts: 16485
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: AstroCalendar, MultiCalendar and WorldClock
Good point. Thanks for these information. Obviously the author of any skin is the best able to help. Your reply proves this.buckb wrote: ↑January 9th, 2024, 11:02 pm Each WorldClock variant has individual clock includes named clock0.inc thru clock9.inc. Since making the same change to all ten includes is tedious, I have provided a means to automate the process. Instead of editing the includes individually, edit the "master" include file clock99.inc, then use gen.cmd to generate the ten includes. See readme.txt in the includes directories.
I'm glad to help, even if in some cases (like this one for instance) my help is not the best.
-
- Rainmeter Sage
- Posts: 5495
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: AstroCalendar, MultiCalendar and WorldClock
Following buckb's tip to add scaling, here is a version of his WorldClock~Scaled. Click image to show scaling action... Scroll the mouse wheel up/down to change the size (1x~3x).buckb wrote: ↑January 9th, 2024, 11:02 pm As you have discovered, the WorldClock skin variants do not automatically adjust their layouts based on font size (or any other characteristic). Changing the font size will likely require altering the placement of the various string and image meters, and perhaps the size of the skin background. Directly changing the hard-coded numbers in the X/Y/W/H formulas should be straightforward. Balala's approach is a step toward generalizing such changes, and is a reasonable solution.
Each WorldClock variant has individual clock includes named clock0.inc thru clock9.inc. Since making the same change to all ten includes is tedious, I have provided a means to automate the process. Instead of editing the includes individually, edit the "master" include file clock99.inc, then use gen.cmd to generate the ten includes. See readme.txt in the includes directories.
Thanks for helping, balala.
Click the scroll wheel to reset the scale to 1x.
Context Menu item was added to open 'ClockSettings.inc' to manually change the scale and other options.
You do not have the required permissions to view the files attached to this post.
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Posts: 67
- Joined: February 12th, 2018, 12:47 am
Re: AstroCalendar, MultiCalendar and WorldClock
Excellent enhancement, eclectic-tech!eclectic-tech wrote: ↑January 10th, 2024, 9:50 pm Following buckb's tip to add scaling, here is a version of his WorldClock~Scaled.
I've updated the first post to include a link to your version.
![Thumbs Up :thumbup:](./images/smilies/ay.gif)
-
- Rainmeter Sage
- Posts: 5495
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: AstroCalendar, MultiCalendar and WorldClock
You did all the "heavy lifting" in creating these clocks, so I was happy to assist in making them scalable.
BTW, I love all your skin creations!
![Great :great:](./images/smilies/dn.gif)
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Posts: 2
- Joined: January 11th, 2024, 9:56 am
Re: AstroCalendar, MultiCalendar and WorldClock
Hi, I have updated to the latest version, but I want to change the city on the interface. After the update, I have no idea how to change to the city I want. Can someone provide me with the operation instructions? I want to display the time of Sweden, Canada, Poland, India, and Mexico simultaneously, thanks!
-
- Posts: 67
- Joined: February 12th, 2018, 12:47 am
Re: AstroCalendar, MultiCalendar and WorldClock
Thanks, eclectic-tech.
![Big Grin :D](./images/smilies/ag.gif)
-
- Posts: 67
- Joined: February 12th, 2018, 12:47 am
Re: AstroCalendar, MultiCalendar and WorldClock
Hi Sarah,Sarah he wrote: ↑January 11th, 2024, 10:01 am Hi, I have updated to the latest version, but I want to change the city on the interface. After the update, I have no idea how to change to the city I want. Can someone provide me with the operation instructions? I want to display the time of Sweden, Canada, Poland, India, and Mexico simultaneously, thanks!
Unlike many of the skins posted on the forums, my skins do not have nice configuration interfaces. Instead, my skins are more DIY, and you must directly edit the .ini, .inc, or other configuration files.
Here is an excerpt from the readme.txt included with WorldClock:
In your case, you will want to create location files for the cities of interest in Sweden, Canada, Poland, India, and Mexico. Then, edit ClockSettings.inc to reference these new location files. Unless you want to keep the "LocalAuto" or "UTC" clocks included in the example, you'll want to change those clock types to "LocalManual" and associate them with location files.Edit "ClockSettings.inc" to configure the number of clocks and their locations. Create location files as necessary for each of the desired clock locations. Use an existing location file as a template when creating new location files. Clock settings are shared by all eight variants.
In addition to the included readme.txt, ClockSettings.inc has a number of comments that provide further configuration details. And don't forget to grab eclectic-tech's version of WorldClock with the scaling features.