Hey there! I've been working on a minimalist clock and with help from you all it works! Thanks to everyone who helped out!
Now I'd like to have a version that includes the date. I have it looking pretty good, but I'm not satisfied yet lol. I'd like to see if there's a simple way to make the typestyle of the date smaller than the time. I'd like it to be relative, so if I change the size of the clock text, the date size will adjust automatically to be 2p smaller than the time. If I have to adjust them separately that would be okay too, I just don't know how to do that either.
Also, I have it set up right now with #crlf# between the time and date to put them on separate lines. I did that and got them centered, and they look ok but the lines are too close together. how can I put a little bit of space between them?
FreeRaider wrote: ↑November 20th, 2020, 5:43 pm
A first solution:
Not a huge mistake, but just note that slash (/) is not a reserved character in regular expressions, so you don't have to escape it. So you can replace the InlinePattern with the following, simpler form: InlinePattern=(.*/.*/.*).
The reserved characters are the following ones: ., ^, $, *, +, ?, (, ), [, {, \ and |. An interesting detail here is that even if for instance [ and { are reserved characters, their coresponding pairs ] and } are not.
balala wrote: ↑November 20th, 2020, 6:22 pm
Not a huge mistake, but just note that slash (/) is not a reserved character in regular expressions, so you don't have to escape it. So you can replace the InlinePattern with the following, simpler form: InlinePattern=(.*/.*/.*).
The reserved characters are the following ones: ., ^, $, *, +, ?, (, ), [, {, \ and |. An interesting detail here is that even if for instance [ and { are reserved characters, their coresponding pairs ] and } are not.
Hey thanks to you both! That worked perfectly. Any suggestions about moving the two lines further apart?
I put in another #crlf# and got a full line between them but that's too much space of course.
totallybree wrote: ↑November 20th, 2020, 7:37 pm
Any suggestions about moving the two lines further apart?
I put in another #crlf# and got a full line between them but that's too much space of course.
You might want adjust the distance between the two lines for instance this way:
Note the newly added InlineSetting2 and InlinePattern2 options to the [MeterTime] meter. Adjust the distance by the parameter 4 of InlineSetting2 option.
I know the goal in here is to teach people to do things for themselves, but I'm not a coder and all I wanted was a clock, so I really appreciate you taking the time to help me. Thanks!
totallybree wrote: ↑November 20th, 2020, 8:21 pm
I know the goal in here is to teach people to do things for themselves, but I'm not a coder and all I wanted was a clock, so I really appreciate you taking the time to help me.
Always, when I can. Glad you succeeded in writing the skin. Congrats...
I know the goal in here is to teach people to do things for themselves, but I'm not a coder and all I wanted was a clock, so I really appreciate you taking the time to help me. Thanks!
If you want a nice simple clock that you don't need to program yourself but looks almost like what you wanted, you can try the one in ModernGadgets. You can turn everything off so it is just a time and date, and change the colors to whatever you want.