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

Fixed: CPSegmentedControl doesn't support small and mini control #2226

Merged
merged 2 commits into from Oct 23, 2014

Conversation

Dogild
Copy link
Member

@Dogild Dogild commented Oct 22, 2014

Previously, when changing the controlSize of a CPSegmentedControl, Cappuccino didn't have the theme to do that.
Now, Cappuccino supports the controlSize small and mini. Aristo and Aristo2 have new attributes for that.
The attribute theme "default-height" has been replaced by "min-size" and "max-size" (used everywhere else in Cappuccino).
The CPSegmentedControl has now the theme attribute "nib2cib-adjustment-frame".

This pull request fixed alignment issue when adding a CPSegmentedControl from xCode. In the method initWithCode, we didn't care about the divider thickness, now we do. This same method will also add leftovers pixel to have exactly the same size as in xCode. Leftovers pixels are here because FLOOR operation and size of the font.

Manual test in Tests/Manual/CPSegmentedControlTest
Manual test in Tests/Manual/Nib2CibAlignment

Previously, when changing the controlSize of a CPSegmentedControl, Cappuccino didn't have the theme to do that.
Now, Cappuccino supports the controlSize small and mini. Aristo and Aristo2 have new attributes for that.
The attribute theme "default-height" has been replaced by "min-size" and "max-size" (used everywhere else in Cappuccino).
The CPSegmentedControl has now the theme attribute "nib2cib-adjustment-frame".

This pull request fixed alignment issue when adding a CPSegmentedControl from xCode. In the method initWithCode, we didn't care about the divider thickness, now we do. This same method will also add leftovers pixel to have exactly the same size as in xCode. Leftovers pixels are here because FLOOR operation and size of the font.

Manual test in Tests/Manual/CPSegmentedControlTest
Manual test in Tests/Manual/Nib2CibAlignment
@cappbot cappbot added this to the Someday milestone Oct 22, 2014
@cappbot cappbot added the #new label Oct 22, 2014
@cappbot
Copy link

cappbot commented Oct 22, 2014

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


var leftCapColor = [self valueForThemeAttribute:@"left-segment-bezel-color"
inState:themeState],
inState:themeState],
Copy link
Member

Choose a reason for hiding this comment

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

style

primalmotion added a commit that referenced this pull request Oct 23, 2014
Fixed: CPSegmentedControl doesn't support small and mini control
@primalmotion primalmotion merged commit 8d660ff into cappuccino:master Oct 23, 2014
@primalmotion
Copy link
Member

Thanks

+#fixed

@cappbot
Copy link

cappbot commented Oct 23, 2014

Milestone: Someday. Label: #fixed. What's next? This issue is considered successfully resolved.

@cappbot cappbot added #fixed and removed #new labels Oct 23, 2014
@Dogild Dogild deleted the SegementedControlFixed branch October 25, 2014 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants