cappuccino / cappuccino

Web Application Framework in JavaScript and Objective-J
https://cappuccino.dev/
GNU Lesser General Public License v2.1
2.2k stars 333 forks source link

A3 branch vs latest version Didier: setDefaultButton does not give correct background #3050

Closed jasperdeb closed 1 year ago

jasperdeb commented 1 year ago

CPButtons which are set as a default button do not have the correct background.

var button = [[CPButton alloc] initWithFrame:CGRectMake(250,350,100,25)];
    [button setTitle:@"Log in"]
    [button setTarget:self]
    [button setAction:@selector(buttonMethodShake:)]
    [contentView addSubview:button];
    [self setDefaultButton:button];

Latest master + A3 Branch image

Latest version Didier Korthoudt image

cappbot commented 1 year ago

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

daboe01 commented 1 year ago

you need to make the style rounded to make this work. @didierkorthoudt introduced this for the sake of cocoa compatibility

daboe01 commented 1 year ago

-#new +Aristo3

cappbot commented 1 year ago

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

jasperdeb commented 1 year ago

Ok, this solves it.

image