It is currently July 7th, 2022, 2:32 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: 858
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: 4784
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: 4784
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: 3
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.
justachild
Posts: 8
Joined: March 9th, 2022, 3:52 pm

Re: Rounded Screen Corners

Post by justachild »

This doesn't work in fullscreen games. I have turned off game mode in rainmeter.
Anyway to make this settings stick even while gaming full screen ?
User avatar
Yincognito
Rainmeter Sage
Posts: 4730
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Rounded Screen Corners

Post by Yincognito »

justachild wrote: March 12th, 2022, 3:51 pm This doesn't work in fullscreen games. I have turned off game mode in rainmeter.
Anyway to make this settings stick even while gaming full screen ?
You want the game screen to have rounded corners?! :jawdrop
justachild
Posts: 8
Joined: March 9th, 2022, 3:52 pm

Re: Rounded Screen Corners

Post by justachild »

Yincognito wrote: March 12th, 2022, 6:06 pm You want the game screen to have rounded corners?! :jawdrop
After seeing rounded corners on edges, its hard to go back to sharp rectangular ones. I am now using tape to mask it as I realized there is no soft solution for it like Displaperture but for windows
User avatar
Yincognito
Rainmeter Sage
Posts: 4730
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Rounded Screen Corners

Post by Yincognito »

justachild wrote: March 13th, 2022, 7:28 am After seeing rounded corners on edges, its hard to go back to sharp rectangular ones. I am now using tape to mask it as I realized there is no soft solution for it like Displaperture but for windows
Yeah, the thing is, while Rainmeter can simulate that with a skin, it won't be able to do that in software it has no control over, like for example, the games you mentioned.