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

Uneven border radii #267

Closed
wants to merge 4 commits into from
Closed

Uneven border radii #267

wants to merge 4 commits into from

Conversation

albfan
Copy link
Collaborator

@albfan albfan commented Jan 17, 2020

Allow rectangles with uneven radius borders

Summary / How this PR fixes the problem?

Using an open MR from goocanvas

https://gitlab.gnome.org/GNOME/goocanvas/tree/wip/albfan/rect-radii

connect uneven border entries to edit corners.

Steps to Test

This works from flatpak. Using a submodule is another option not implemented

Screenshots

uneven-border-radius

Known Issues / Things To Do

  • Consider CSS notation where 10/20 allows to set x and y radius (to draw ellipsize corners
  • goocanvas branch will end in a goocanvas-3.0 which could be problematic for some long term support distros.

This PR fixes/implements the following bugs/features:

@Alecaddd Alecaddd added this to the v1.1 milestone Jan 17, 2020
@Alecaddd
Copy link
Member

Awesome implementation for flatpak!
Would you be able to implement the git submodule for mason? Without that I don't feel comfortable in merging it as it break the elementary building process.

if (is_radius_uniform) {
set ("radius-x", radius_x);
set ("radius-y", radius_x);
} else {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a return; here instead of an else.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, let me release that on a goocanvas-3.0 branch so we get any other improvement for free.

@albfan
Copy link
Collaborator Author

albfan commented Jan 16, 2021

Should we revisit this now goocanvas 3.0 is out?

https://mail.gnome.org/archives/ftp-release-list/2021-January/msg00074.html

See #301

@Alecaddd
Copy link
Member

Yes, we definitely should!

@Alecaddd
Copy link
Member

Now that goocanvas 3 is in, this is gonna be a kick-ass feature!

@Alecaddd Alecaddd mentioned this pull request Jan 18, 2021
46 tasks
@Alecaddd
Copy link
Member

Closing this since we dropped goocanvas and we're dealing with this directly in the app with Cairo.

@Alecaddd Alecaddd closed this Aug 21, 2021
@Alecaddd Alecaddd deleted the wip/albfan/uneven-border-radii branch June 26, 2022 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants