|
@@ -24,7 +24,7 @@ final class LoadingView: NSView {
|
|
|
private let backgroundGradientHost = NSView()
|
|
private let backgroundGradientHost = NSView()
|
|
|
private let heroBackground = LoadingSplashBackgroundView()
|
|
private let heroBackground = LoadingSplashBackgroundView()
|
|
|
private let iconWell = NSView()
|
|
private let iconWell = NSView()
|
|
|
- private let iconView = NSImageView()
|
|
|
|
|
|
|
+ private let logoView = IndeedLogoView(displayHeight: 44)
|
|
|
private let aiBadgeHost = NSView()
|
|
private let aiBadgeHost = NSView()
|
|
|
private let aiBadgeLabel = NSTextField(labelWithString: "AI-POWERED")
|
|
private let aiBadgeLabel = NSTextField(labelWithString: "AI-POWERED")
|
|
|
private let titleLabel = NSTextField(labelWithString: AppMarketingLinks.displayName)
|
|
private let titleLabel = NSTextField(labelWithString: AppMarketingLinks.displayName)
|
|
@@ -105,9 +105,7 @@ final class LoadingView: NSView {
|
|
|
iconWell.layer?.shadowRadius = 16
|
|
iconWell.layer?.shadowRadius = 16
|
|
|
iconWell.layer?.shadowOffset = CGSize(width: 0, height: -4)
|
|
iconWell.layer?.shadowOffset = CGSize(width: 0, height: -4)
|
|
|
|
|
|
|
|
- iconView.translatesAutoresizingMaskIntoConstraints = false
|
|
|
|
|
- iconView.imageScaling = .scaleProportionallyUpOrDown
|
|
|
|
|
- iconView.image = NSApp.applicationIconImage
|
|
|
|
|
|
|
+ logoView.translatesAutoresizingMaskIntoConstraints = false
|
|
|
|
|
|
|
|
aiBadgeHost.translatesAutoresizingMaskIntoConstraints = false
|
|
aiBadgeHost.translatesAutoresizingMaskIntoConstraints = false
|
|
|
aiBadgeHost.wantsLayer = true
|
|
aiBadgeHost.wantsLayer = true
|
|
@@ -149,7 +147,7 @@ final class LoadingView: NSView {
|
|
|
|
|
|
|
|
thinkingIndicator.translatesAutoresizingMaskIntoConstraints = false
|
|
thinkingIndicator.translatesAutoresizingMaskIntoConstraints = false
|
|
|
|
|
|
|
|
- iconWell.addSubview(iconView)
|
|
|
|
|
|
|
+ iconWell.addSubview(logoView)
|
|
|
aiBadgeHost.addSubview(aiBadgeLabel)
|
|
aiBadgeHost.addSubview(aiBadgeLabel)
|
|
|
|
|
|
|
|
let heroStack = NSStackView(views: [
|
|
let heroStack = NSStackView(views: [
|
|
@@ -187,13 +185,13 @@ final class LoadingView: NSView {
|
|
|
heroBackground.topAnchor.constraint(equalTo: topAnchor),
|
|
heroBackground.topAnchor.constraint(equalTo: topAnchor),
|
|
|
heroBackground.bottomAnchor.constraint(equalTo: bottomAnchor),
|
|
heroBackground.bottomAnchor.constraint(equalTo: bottomAnchor),
|
|
|
|
|
|
|
|
- iconWell.widthAnchor.constraint(equalToConstant: 128),
|
|
|
|
|
- iconWell.heightAnchor.constraint(equalToConstant: 128),
|
|
|
|
|
|
|
+ iconWell.widthAnchor.constraint(greaterThanOrEqualToConstant: 200),
|
|
|
|
|
+ iconWell.heightAnchor.constraint(equalToConstant: 96),
|
|
|
|
|
|
|
|
- iconView.centerXAnchor.constraint(equalTo: iconWell.centerXAnchor),
|
|
|
|
|
- iconView.centerYAnchor.constraint(equalTo: iconWell.centerYAnchor),
|
|
|
|
|
- iconView.widthAnchor.constraint(equalToConstant: 88),
|
|
|
|
|
- iconView.heightAnchor.constraint(equalToConstant: 88),
|
|
|
|
|
|
|
+ logoView.centerXAnchor.constraint(equalTo: iconWell.centerXAnchor),
|
|
|
|
|
+ logoView.centerYAnchor.constraint(equalTo: iconWell.centerYAnchor),
|
|
|
|
|
+ logoView.leadingAnchor.constraint(greaterThanOrEqualTo: iconWell.leadingAnchor, constant: 24),
|
|
|
|
|
+ logoView.trailingAnchor.constraint(lessThanOrEqualTo: iconWell.trailingAnchor, constant: -24),
|
|
|
|
|
|
|
|
aiBadgeHost.heightAnchor.constraint(equalToConstant: 26),
|
|
aiBadgeHost.heightAnchor.constraint(equalToConstant: 26),
|
|
|
aiBadgeLabel.leadingAnchor.constraint(equalTo: aiBadgeHost.leadingAnchor, constant: 14),
|
|
aiBadgeLabel.leadingAnchor.constraint(equalTo: aiBadgeHost.leadingAnchor, constant: 14),
|