Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

corner_radius: (visual issue) corner_radius Implementation Not Rendering Rounded Corners properly #2632

Open
1contra opened this issue Nov 8, 2024 · 2 comments

Comments

@1contra
Copy link

1contra commented Nov 8, 2024

I'm encountering an issue with the corner_radius implementation in CustomTkinter. When setting a corner_radius value for a CTkEntry (or other widgets), instead of rendering rounded corners, the corners are being drawn with the background color, resulting in a flat rectangular appearance.

With a solid background in applications, the rounded corners render as expected, and the behavior is correct. However, when using custom video backgrounds or images, the corners do not display as rounded. They instead appear flat and are drawn with the background color, which doesn't look visually appealing and breaks the design aesthetic.

This issue significantly impacts the user interface when custom backgrounds are used, and it creates an inconsistency in how the widget looks across different backgrounds.

I've included screenshots below to show how the widget looks with the custom backgrounds:

Screenshot 2024-11-08 150016
Screenshot 2024-11-08 150128
Screenshot 2024-11-08 151823

@1contra 1contra changed the title CustomTkinter: (visual issue) corner_radius Implementation Not Rendering Rounded Corners properly corner_radius: (visual issue) corner_radius Implementation Not Rendering Rounded Corners properly Nov 8, 2024
@PythoneerSamurai
Copy link

Greetings.
I am also facing a similar issue with the corner_radius attribute. However, mine doesn't even work properly on a default background (no custom image), it just makes my CTk element look like a bone. Check my issue out below:

#2631

@MaxNiark
Copy link

MaxNiark commented Nov 14, 2024

It's because it's using canvas outside button.
all customtkinter widget using canvas for create corner

the corner get background color, when transperentcy cuz u add custom image, it's screening white

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants