Files
Sparkle/Sparkle/SUStatusController.h
T
Zorg 97bea2fcd4 Modernize update alert (#2737)
This changes the UI for the update alert to have the app icon be more stacked / inlined with the UI, refines the box view for release notes, and removes some title labels that aren't strictly needed. For Tahoe, we opt into using large size buttons which get a capsule shape.

Also this changes adds a new app icon, which is squircle shaped, for the Sparkle test when running on Tahoe.
2025-08-17 17:36:14 -07:00

40 lines
1.3 KiB
Objective-C

//
// SUStatusController.h
// Sparkle
//
// Created by Andy Matuschak on 3/14/06.
// Copyright 2006 Andy Matuschak. All rights reserved.
//
#if SPARKLE_BUILD_UI_BITS || !BUILDING_SPARKLE
#ifndef SUSTATUSCONTROLLER_H
#define SUSTATUSCONTROLLER_H
#import <Cocoa/Cocoa.h>
@class SUHost;
@interface SUStatusController : NSWindowController
// These three properties are connected via bindings
@property (nonatomic, copy) NSString *statusText;
@property (nonatomic) double progressValue;
@property (nonatomic) double maxProgressValue;
@property (nonatomic, getter=isButtonEnabled, direct) BOOL buttonEnabled;
- (instancetype)initWithHost:(SUHost *)aHost windowTitle:(NSString *)windowTitle centerPointValue:(NSValue *)centerPointValue minimizable:(BOOL)minimizable closable:(BOOL)closable SPU_OBJC_DIRECT;
// Pass 0 for the max progress value to get an indeterminate progress bar.
// Pass nil for the status text to not show it.
- (void)beginActionWithTitle:(NSString *)title maxProgressValue:(double)maxProgressValue statusText:(NSString *)statusText SPU_OBJC_DIRECT;
// If isDefault is YES, the button's key equivalent will be \r.
- (void)setButtonTitle:(NSString *)buttonTitle target:(id)target action:(SEL)action isDefault:(BOOL)isDefault accessibilityIdentifier:(NSString *)accessibilityIdentifier SPU_OBJC_DIRECT;
@end
#endif
#endif