Changeset 404


Ignore:
Timestamp:
02/24/08 09:58:02 (17 years ago)
Author:
Nicholas Riley
Message:

Leopard-ize UI.

Location:
trunk/Cocoa/F-Script Anywhere/Source
Files:
1 added
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cocoa/F-Script Anywhere/Source/FSAController.h

    r226 r404  
    3333@interface FSAController : NSWindowController {
    3434    IBOutlet FSInterpreterView *interpreterView;
     35    IBOutlet NSButtonCell *floatButtonCell;
     36    IBOutlet NSButton *openBrowserButton;
     37    IBOutlet NSButton *associateWithInterfaceButton;
    3538    System *system;
    3639    FSAViewAssociationController *viewAssociationController;
  • trunk/Cocoa/F-Script Anywhere/Source/FSAController.m

    r397 r404  
    4040@interface FSInterpreterView (FSAWorkaround)
    4141- (CLIView *)cliView;
     42@end
     43
     44@interface NSWindow (RoundedCorners)
     45- (void)setBottomCornerRounded:(BOOL)yn;
    4246@end
    4347
     
    153157        if (showInterpreter) {
    154158            NSAssert(window != nil, @"Can't get interpreter window!");
     159            if ([window respondsToSelector: @selector(setBottomCornerRounded:)])
     160                [window setBottomCornerRounded: NO]; // XXX otherwise we get black areas because the window isn't rounded
     161            [window setContentBorderThickness: 30 forEdge: NSMinYEdge];
     162            // XXX why oh why is text not vertically centered in standard-sized buttons?
     163            [openBrowserButton setFrameSize: NSMakeSize([openBrowserButton frame].size.width, 19)];
     164            [associateWithInterfaceButton setFrameSize: NSMakeSize([associateWithInterfaceButton frame].size.width, 19)];
     165            [floatButtonCell setBackgroundStyle: NSBackgroundStyleRaised];
    155166            if (interpreterNum == 0) interpreterNum = ++numInterpWindows;
    156167            if ( (label = [self interpreterLabel]) != nil) {
Note: See TracChangeset for help on using the changeset viewer.