Make me default RSS reader (sandbox compatible)

This commit is contained in:
relikd
2019-08-19 23:30:56 +02:00
parent a777b5672f
commit b961a3a56c
9 changed files with 62 additions and 104 deletions

View File

@@ -61,6 +61,7 @@ NS_INLINE CGFloat NSMaxWidth(NSView *a, NSView *b) { return Max(NSWidth(a.frame)
+ (NSButton*)button:(NSString*)text;
+ (NSButton*)buttonImageSquare:(nonnull NSImageName)name;
+ (NSButton*)buttonIcon:(nonnull NSImageName)name size:(CGFloat)size;
+ (NSButton*)helpButton;
+ (NSButton*)inlineButton:(NSString*)text;
+ (NSPopUpButton*)popupButton:(CGFloat)w;
// UI: Others

View File

@@ -94,6 +94,14 @@
return btn;
}
/// Create round button with question mark. @c 21x21px
+ (NSButton*)helpButton {
NSButton *btn = [[NSButton alloc] initWithFrame: NSMakeRect(0, 0, 21, 21)];
btn.bezelStyle = NSBezelStyleHelpButton;
btn.title = @"";
return btn;
}
/// Create gray inline button with rounded corners. @c 16px height.
+ (NSButton*)inlineButton:(NSString*)text {
NSButton *btn = [[NSButton alloc] initWithFrame: NSMakeRect(0, 0, 0, HEIGHT_INLINEBUTTON)];