It is currently January 22nd, 2022, 6:37 am

Rounded Screen Corners

General topics related to Rainmeter.
RyanClark
Posts: 2
Joined: April 14th, 2017, 9:45 pm

Rounded Screen Corners

Post by RyanClark »

Hello All,

Just wondering if it would be possible to create a skin that places shapes at the corners of the display to make the display appear to have rounded corners. The corners could have a definable radius in the settings (probably like 0-25px radius.)

Any links would be tops!

Thanks,

R
User avatar
CyberTheWorm
Posts: 815
Joined: August 22nd, 2016, 11:32 pm
Location: Surrey, B.C., Canada

Re: Rounded Screen Corners

Post by CyberTheWorm »

RyanClark wrote:Hello All,

Just wondering if it would be possible to create a skin that places shapes at the corners of the display to make the display appear to have rounded corners. The corners could have a definable radius in the settings (probably like 0-25px radius.)

Any links would be tops!

Thanks,

R
You mean something like this?

Code: Select all

[Rainmeter]
Update=1000

[MeterShape]
Meter=Shape
X=2
Y=2
Shape=Rectangle 0,0,400,400,25,25 | Fill Color 255,255,0 | StrokeWidth 4 | Stroke Color 255,255,255

[MeterShape2]
Meter=Shape
Shape=Arc 265,61,58,260,100,100,0,1,1,1
Link to information on doing shapes https://docs.rainmeter.net/manual/meters/shape/#Rectangle
The only source of knowledge is experience. Albert Einstein
Deviant Art Page
User avatar
eclectic-tech
Rainmeter Sage
Posts: 4581
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Rounded Screen Corners

Post by eclectic-tech »

Or try this:

Code: Select all

[Rainmeter]
Update=-1
OnRefreshAction=[!ZPos 2]

[Variables]
CornerRadius=50
CornerColor=192,192,192

[MeterShapeCorners]
Meter=Shape
X=0
Y=0
Shape=Rectangle 0,0,(#ScreenAreaWidth#),(#ScreenAreaHeight#) | Fill Color #CornerColor# | StrokeWidth 0
Shape2=Rectangle 0,0,(#ScreenAreaWidth#),(#ScreenAreaHeight#),#CornerRadius# | Fill Color 0,0,0,0
Shape3=Combine Shape | XOR Shape2
2017-05-03_20-15-47.jpg
You do not have the required permissions to view the files attached to this post.
RyanClark
Posts: 2
Joined: April 14th, 2017, 9:45 pm

Re: Rounded Screen Corners

Post by RyanClark »

YES! This is exactly it! Thank you :D
I have an ultra-wide monitor and this makes the screen look so wonderfully perfect. Thank you!


R

P.S. Here are my settings:
[Rainmeter]
Update=-1
OnRefreshAction=[!ZPos 2]

[Variables]
CornerRadius=10
CornerColor=256,256,256

[MeterShapeCorners]
Meter=Shape
X=0
Y=0
Shape=Rectangle 0,0,(#ScreenAreaWidth#),(#ScreenAreaHeight#) | Fill Color #CornerColor# | StrokeWidth 0
Shape2=Rectangle 0,0,(#ScreenAreaWidth#),(#ScreenAreaHeight#),#CornerRadius# | Fill Color 0,0,0,0
Shape3=Combine Shape | XOR Shape2
You do not have the required permissions to view the files attached to this post.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 4581
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Rounded Screen Corners

Post by eclectic-tech »

Glad to help! :welcome:
stupd
Posts: 1
Joined: December 23rd, 2021, 10:18 am

Re: Rounded Screen Corners

Post by stupd »

Hi ! First of all, thank you guys for the code.

For my personal tastes, Win11's rounded corners aesthetic should be matched to rounded screen corners.. So after a bit of googling, I've made an rmskin package based on by copy pasting your codes. The corner radius is matched to Win11's window corners.

And it works perfectly with RoundedTB tweaks!

Again, many thanks !
Rounded Corners_1.0.rmskin
You do not have the required permissions to view the files attached to this post.