|
|
@@ -24,7 +24,7 @@ final class LoadingView: NSView {
|
|
24
|
24
|
private let backgroundGradientHost = NSView()
|
|
25
|
25
|
private let heroBackground = LoadingSplashBackgroundView()
|
|
26
|
26
|
private let iconWell = NSView()
|
|
27
|
|
- private let iconView = NSImageView()
|
|
|
27
|
+ private let logoView = IndeedLogoView(displayHeight: 44)
|
|
28
|
28
|
private let aiBadgeHost = NSView()
|
|
29
|
29
|
private let aiBadgeLabel = NSTextField(labelWithString: "AI-POWERED")
|
|
30
|
30
|
private let titleLabel = NSTextField(labelWithString: AppMarketingLinks.displayName)
|
|
|
@@ -105,9 +105,7 @@ final class LoadingView: NSView {
|
|
105
|
105
|
iconWell.layer?.shadowRadius = 16
|
|
106
|
106
|
iconWell.layer?.shadowOffset = CGSize(width: 0, height: -4)
|
|
107
|
107
|
|
|
108
|
|
- iconView.translatesAutoresizingMaskIntoConstraints = false
|
|
109
|
|
- iconView.imageScaling = .scaleProportionallyUpOrDown
|
|
110
|
|
- iconView.image = NSApp.applicationIconImage
|
|
|
108
|
+ logoView.translatesAutoresizingMaskIntoConstraints = false
|
|
111
|
109
|
|
|
112
|
110
|
aiBadgeHost.translatesAutoresizingMaskIntoConstraints = false
|
|
113
|
111
|
aiBadgeHost.wantsLayer = true
|
|
|
@@ -149,7 +147,7 @@ final class LoadingView: NSView {
|
|
149
|
147
|
|
|
150
|
148
|
thinkingIndicator.translatesAutoresizingMaskIntoConstraints = false
|
|
151
|
149
|
|
|
152
|
|
- iconWell.addSubview(iconView)
|
|
|
150
|
+ iconWell.addSubview(logoView)
|
|
153
|
151
|
aiBadgeHost.addSubview(aiBadgeLabel)
|
|
154
|
152
|
|
|
155
|
153
|
let heroStack = NSStackView(views: [
|
|
|
@@ -187,13 +185,13 @@ final class LoadingView: NSView {
|
|
187
|
185
|
heroBackground.topAnchor.constraint(equalTo: topAnchor),
|
|
188
|
186
|
heroBackground.bottomAnchor.constraint(equalTo: bottomAnchor),
|
|
189
|
187
|
|
|
190
|
|
- iconWell.widthAnchor.constraint(equalToConstant: 128),
|
|
191
|
|
- iconWell.heightAnchor.constraint(equalToConstant: 128),
|
|
|
188
|
+ iconWell.widthAnchor.constraint(greaterThanOrEqualToConstant: 200),
|
|
|
189
|
+ iconWell.heightAnchor.constraint(equalToConstant: 96),
|
|
192
|
190
|
|
|
193
|
|
- iconView.centerXAnchor.constraint(equalTo: iconWell.centerXAnchor),
|
|
194
|
|
- iconView.centerYAnchor.constraint(equalTo: iconWell.centerYAnchor),
|
|
195
|
|
- iconView.widthAnchor.constraint(equalToConstant: 88),
|
|
196
|
|
- iconView.heightAnchor.constraint(equalToConstant: 88),
|
|
|
191
|
+ logoView.centerXAnchor.constraint(equalTo: iconWell.centerXAnchor),
|
|
|
192
|
+ logoView.centerYAnchor.constraint(equalTo: iconWell.centerYAnchor),
|
|
|
193
|
+ logoView.leadingAnchor.constraint(greaterThanOrEqualTo: iconWell.leadingAnchor, constant: 24),
|
|
|
194
|
+ logoView.trailingAnchor.constraint(lessThanOrEqualTo: iconWell.trailingAnchor, constant: -24),
|
|
197
|
195
|
|
|
198
|
196
|
aiBadgeHost.heightAnchor.constraint(equalToConstant: 26),
|
|
199
|
197
|
aiBadgeLabel.leadingAnchor.constraint(equalTo: aiBadgeHost.leadingAnchor, constant: 14),
|