istir wrote: ↑April 18th, 2022, 5:00 pm
If I get what you mean it sadly doesn't work. I loaded top and bottom ones as two different skins and it loaded them as "one". I attached the one I tried loading.
Well, it does for me...
[SkinsFolder]\Rounded Corners Top\Rounded Corners Top.ini:
Code: Select all
[Variables]
CornerRadius=10
CornerColor=0,0,0
[Rainmeter]
Update=-1
[MeterShapeCorners]
Meter=Shape
Shape=Rectangle 0,0,(#ScreenAreaWidth#),(#CornerRadius#) | Fill Color #CornerColor# | StrokeWidth 0
Shape2=Rectangle 0,0,(#ScreenAreaWidth#),(#CornerRadius#*2),#CornerRadius# | Fill Color 0,0,0,0
Shape3=Combine Shape | Exclude Shape2
[SkinsFolder]\Rounded Corners Bottom\Rounded Corners Bottom.ini:
Code: Select all
[Variables]
CornerRadius=10
CornerColor=0,0,0
[Rainmeter]
Update=-1
[MeterShapeCorners]
Meter=Shape
Shape=Rectangle 0,0,(#ScreenAreaWidth#),(#CornerRadius#) | Fill Color #CornerColor# | StrokeWidth 0
Shape2=Rectangle 0,(-#CornerRadius#),(#ScreenAreaWidth#),(#CornerRadius#*2),#CornerRadius# | Fill Color 0,0,0,0
Shape3=Combine Shape | Exclude Shape2
The mistake in your code was
still having the bottom skin extending all over the screen (which we already deduced that it was the problem, in combination with staying topmost) - by comparison, each of the above extends only 10 pixels in height in this case, aka the height of the corners. Obviously, they should be positioned accordingly and set to stay topmost. If needed, variations of this could be made, e.g. skins with scaling corners on scroll, or even 4 skins instead of 2, each skin representing a corner - that way, one could position the corners at will, in the case of some other window doesn't have rounded corners, etc.
P.S. Sorry for the delay in replying, been busy with other stuff until now.
P.S.S. By the way, the above works even if the skins' heights are a greater multiple of corner radius (or any other number for that matter, as long as it's not the full screen height), like in your original top skin code. Having them taking only what was necessary was just my efficiency driven approach, nothing more.
![Big Grin :D](./images/smilies/ag.gif)