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

Added a themed attribute for round rect selection of rows. [+1] #1537

Merged

Conversation

mrcarlberg
Copy link
Member

Selections in the tableview can now have round corners. The default is a regular
rect, but if the selection radius is changed. Nice good looking round rect
selections will appear.

Selections in the tableview can now have round corners. The default is a regular
rect, but if the selecction radius is changed. Nice good looking round rect
selections will appear.
@cappbot
Copy link

cappbot commented May 11, 2012

Milestone: Someday. Label: #new. What's next? A reviewer should examine this issue.

@primalmotion
Copy link
Member

Can you post a screenshot of the result?

As this is not part of Cocoa (AFAIK), we need a vote here.

+AppKit
#needs-review

@cappbot
Copy link

cappbot commented May 18, 2012

Milestone: Someday. Labels: #needs-review, #new, AppKit. What's next? This issue is pending an architectural or implementation design decision and should be discussed or voted on.

@mrcarlberg
Copy link
Member Author

Here is a link to a small screen dump of an outline view. http://mini.carlberg.org/roundrect.png
As you can see the selection rect is a round rect with corner radius of 5 pixels. This makes it possible to get a very nice proffessional look on text views.

@mrcarlberg
Copy link
Member Author

Ahh, I can include the screen dump in the comment!!!!
Outline View
As I said above, the selection rect is a round rect with corner radius of 5 pixels. This makes it possible to get a very nice proffessional look on text views.

@aljungberg
Copy link
Member

I guess there is no Cocoa equivalent for this. When we merge in the new view based CPTableView this kind of customisation becomes a lot easier. Even then I guess a theme attribute is not a bad idea as it's a handy way to accomplish something without creating a custom row view.

@primalmotion
Copy link
Member

I personally don't like the look, but as it's a theme attribute, I think it doesn't hurt anything and it's good to enhance the theming capabilities.

My only concern is the two methods added to CPTableView (selectionHighlightRadius and setSelectionHighlightRadius:). Do we really need them as It adds some non Cocoa API? I think the rounded selection should only be in the theme descriptors. And if the user doesn't want to create a new theme (who wants? :)), he can just call [myTable setValue:3 forThemeAttribute:@"selection-radius"];

@aljungberg
Copy link
Member

Yeah that might be better since it's non standard API and again will be less relevant with the future view based table view.

@primalmotion
Copy link
Member

@mrcarlberg if you remove the selectionHighlightRadius APi from table view, for me it's
+1

@cappbot
Copy link

cappbot commented May 22, 2012

Milestone: Someday. Vote: 1. Labels: #needs-review, #new, AppKit. What's next? This issue is pending an architectural or implementation design decision and should be discussed or voted on.

primalmotion added a commit that referenced this pull request Jun 14, 2012
Added a themed attribute for round rect selection of rows. [+1]
@primalmotion primalmotion merged commit 5219977 into cappuccino:master Jun 14, 2012
@primalmotion
Copy link
Member

Merged, Thanks!

@mrcarlberg mrcarlberg deleted the cptableview_selection_radius branch February 5, 2016 14:57
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.

None yet

5 participants