Skip to content

Commit abcf66d

Browse files
authored
Fixes for 24.5.2 (#23731)
2 parents 3b24a39 + 19972d3 commit abcf66d

File tree

5 files changed

+22
-17
lines changed

5 files changed

+22
-17
lines changed

WordPress/Classes/Extensions/UINavigationController+SplitViewFullscreen.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ extension UINavigationController {
3434
self.pushViewController(viewController, animated: animated)
3535
}
3636

37-
if UIAccessibility.isReduceMotionEnabled && !self.splitViewControllerIsHorizontallyCompact {
38-
splitViewController.view.hideWithBlankingSnapshot(afterScreenUpdates: true)
39-
performTransition(false)
40-
} else {
37+
// if UIAccessibility.isReduceMotionEnabled && !self.splitViewControllerIsHorizontallyCompact {
38+
// splitViewController.view.hideWithBlankingSnapshot(afterScreenUpdates: true)
39+
// performTransition(false)
40+
// } else {
4141
performTransition(animated)
42-
}
42+
// }
4343
}
4444
}
4545

WordPress/Classes/System/SplitViewRootPresenter+Welcome.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ class WelcomeSplitViewContent: SplitViewDisplayable {
1515
let noSitesVC = UIHostingController(rootView: noSiteView)
1616
noSitesVC.view.backgroundColor = .systemBackground
1717
secondary = UINavigationController(rootViewController: noSitesVC)
18-
19-
supplementary.isNavigationBarHidden = true
2018
}
2119

2220
func displayed(in splitVC: UISplitViewController) {

WordPress/Classes/Utility/App Configuration/AppColor.swift

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ import ColorStudio
33
import SwiftUI
44

55
struct UIAppColor {
6-
static func primary(_ shade: ColorStudioShade) -> UIColor {
7-
CSColor.Blue.shade(shade)
8-
}
9-
106
static func accent(_ shade: ColorStudioShade) -> UIColor {
117
CSColor.Pink.shade(shade)
128
}
@@ -91,30 +87,41 @@ struct UIAppColor {
9187

9288
#if IS_JETPACK
9389
static let tint = UIColor.label
90+
9491
static let brand = UIColor(light: CSColor.JetpackGreen.shade(.shade40), dark: CSColor.JetpackGreen.shade(.shade30))
9592

9693
static func brand(_ shade: ColorStudioShade) -> UIColor {
9794
CSColor.JetpackGreen.shade(shade)
9895
}
96+
97+
static let primary = CSColor.JetpackGreen.base
98+
99+
static func primary(_ shade: ColorStudioShade) -> UIColor {
100+
CSColor.JetpackGreen.shade(shade)
101+
}
99102
#endif
100103

101104
#if IS_WORDPRESS
102105
static let tint = brand
106+
103107
static let brand = CSColor.WordPressBlue.base
104108

105109
static func brand(_ shade: ColorStudioShade) -> UIColor {
106110
CSColor.WordPressBlue.shade(shade)
107111
}
112+
113+
static let primary = CSColor.Blue.base
114+
115+
static func primary(_ shade: ColorStudioShade) -> UIColor {
116+
CSColor.Blue.shade(shade)
117+
}
108118
#endif
109119

110120
static let divider = CSColor.Gray.shade(.shade10)
111121
static let error = CSColor.Red.base
112122
static let gray = CSColor.Gray.base
113123
static let blue = CSColor.Blue.base
114124

115-
/// - warning: soft-deprecated, use `UIAppColor.tint`.
116-
static let primary = brand
117-
118125
static let success = CSColor.Green.base
119126
static let text = CSColor.Gray.shade(.shade80)
120127
static let textSubtle = CSColor.Gray.shade(.shade50)

WordPress/Classes/ViewRelated/Notifications/ReplyTextView/ReplyTextView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ import Gridicons
286286
comment: "Accessibility Label for the enter full screen button on the comment reply text view")
287287

288288
// Reply button
289-
replyButton.setTitleColor(Style.replyButtonColor, for: .normal)
289+
replyButton.setTitleColor(UIAppColor.brand, for: .normal)
290290
replyButton.titleLabel?.text = NSLocalizedString("Reply", comment: "Reply to a comment.")
291291
replyButton.accessibilityIdentifier = "reply-button"
292292
replyButton.accessibilityLabel = NSLocalizedString("Reply", comment: "Accessibility label for the reply button")

WordPress/Classes/ViewRelated/Reader/Comments/ReaderCommentsViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,8 @@ - (void)configureViewConstraints
362362
views:views]];
363363

364364
[NSLayoutConstraint activateConstraints:@[
365-
[self.replyTextView.leadingAnchor constraintEqualToAnchor:self.replyTextView.leadingAnchor],
366-
[self.replyTextView.trailingAnchor constraintEqualToAnchor:self.replyTextView.trailingAnchor],
365+
[self.replyTextView.leadingAnchor constraintEqualToAnchor:self.view.leadingAnchor],
366+
[self.replyTextView.trailingAnchor constraintEqualToAnchor:self.view.trailingAnchor],
367367
[self.view.keyboardLayoutGuide.topAnchor constraintEqualToAnchor:self.replyTextView.bottomAnchor]
368368
]];
369369

0 commit comments

Comments
 (0)