Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions WordPress/Classes/Extensions/UIImage+Blur.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import UIKit

extension UIImage {

// Adapted from https://gist.github.com/mxcl/76f40027b1ef515e4e6b41292b54fe92
func blur(radius: Float) -> UIImage? {
let ciContext = CIContext(options: nil)

guard
let cgImage = self.cgImage,
let ciFilter = CIFilter(name: "CIGaussianBlur")
else {
return self
}

let inputImage = CIImage(cgImage: cgImage)

ciFilter.setValue(inputImage, forKey: kCIInputImageKey)
ciFilter.setValue(radius, forKey: "inputRadius")

guard
let resultImage = ciFilter.value(forKey: kCIOutputImageKey) as? CIImage,
let outputImage = ciContext.createCGImage(resultImage, from: inputImage.extent)
else {
return self
}

return UIImage(cgImage: outputImage)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ struct JetpackPrologueStyleGuide {
static let whiteWithAlpha07 = UIColor.white.withAlphaComponent(0.7)

// Background image with gradient for the new Jetpack prologue screen
static let prologueBackgroundImage: UIImage? = UIImage(named: "JPBackground")
static var prologueBackgroundImage: UIImage? {
UIImage(named: "JPBackground")?.blur(radius: 155)
}

// Blur effect for the prologue buttons
static let prologueButtonsBlurEffect: UIBlurEffect? = UIBlurEffect(style: .regular)

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"images" : [
{
"filename" : "background-light.pdf",
"filename" : "jetpack-firstrun-background.svg",
"idiom" : "universal"
}
],
Expand Down
Binary file not shown.
Binary file modified WordPress/Resources/AppImages.xcassets/cloud.imageset/cloud.png
Binary file modified WordPress/Resources/AppImages.xcassets/left.imageset/left.png
Binary file modified WordPress/Resources/AppImages.xcassets/left.imageset/left@2x.png

This file was deleted.

Binary file not shown.
6 changes: 6 additions & 0 deletions WordPress/WordPress.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,8 @@
1E732A7D2BB59AA1001103D4 /* UIImageView+Gravatar.swift in Sources */ = {isa = PBXBuildFile; fileRef = 91EABC442BB56EE10098D330 /* UIImageView+Gravatar.swift */; };
1E9D544D23C4C56300F6A9E0 /* GutenbergRollout.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E9D544C23C4C56300F6A9E0 /* GutenbergRollout.swift */; };
223EA61E212A7C26A456C32C /* Pods_JetpackDraftActionExtension.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 430F7B409FE22699ADB1A724 /* Pods_JetpackDraftActionExtension.framework */; };
241440D92C05448A00F3BA98 /* UIImage+Blur.swift in Sources */ = {isa = PBXBuildFile; fileRef = 241440D82C05448A00F3BA98 /* UIImage+Blur.swift */; };
241440DA2C05448A00F3BA98 /* UIImage+Blur.swift in Sources */ = {isa = PBXBuildFile; fileRef = 241440D82C05448A00F3BA98 /* UIImage+Blur.swift */; };
241E60B325CA0D2900912CEB /* UserSettings.swift in Sources */ = {isa = PBXBuildFile; fileRef = 241E60B225CA0D2900912CEB /* UserSettings.swift */; };
2420BEF125D8DAB300966129 /* Blog+Lookup.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2420BEF025D8DAB300966129 /* Blog+Lookup.swift */; };
24351254264DCA08009BB2B6 /* Secrets.swift in Sources */ = {isa = PBXBuildFile; fileRef = 24351253264DCA08009BB2B6 /* Secrets.swift */; };
Expand Down Expand Up @@ -6670,6 +6672,7 @@
213A62FF811EBDB969FA7669 /* Pods_WordPressShareExtension.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_WordPressShareExtension.framework; sourceTree = BUILT_PRODUCTS_DIR; };
23052F0F1F9B2503E33D0A26 /* Pods_JetpackShareExtension.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_JetpackShareExtension.framework; sourceTree = BUILT_PRODUCTS_DIR; };
23F18781EEBE5551D6B4992C /* Pods_JetpackNotificationServiceExtension.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_JetpackNotificationServiceExtension.framework; sourceTree = BUILT_PRODUCTS_DIR; };
241440D82C05448A00F3BA98 /* UIImage+Blur.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIImage+Blur.swift"; sourceTree = "<group>"; };
241E60B225CA0D2900912CEB /* UserSettings.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserSettings.swift; sourceTree = "<group>"; };
2420BEF025D8DAB300966129 /* Blog+Lookup.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Blog+Lookup.swift"; sourceTree = "<group>"; };
24350E7C264DB76E009BB2B6 /* Jetpack.debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Jetpack.debug.xcconfig; sourceTree = "<group>"; };
Expand Down Expand Up @@ -15841,6 +15844,7 @@
F49D7BEA29DF329500CB93A5 /* UIPopoverPresentationController+PopoverAnchor.swift */,
F484D4EC2A32C4520050BE15 /* CATransaction+Extension.swift */,
FA3FCD522B640C2D009B9740 /* View+Helpers.swift */,
241440D82C05448A00F3BA98 /* UIImage+Blur.swift */,
);
path = Extensions;
sourceTree = "<group>";
Expand Down Expand Up @@ -21823,6 +21827,7 @@
FE6BB143293227AC001E5F7A /* ContentMigrationCoordinator.swift in Sources */,
8B85AEDA259230FC00ADBEC9 /* ABTest.swift in Sources */,
178DDD06266D68A3006C68C4 /* BloggingRemindersFlowIntroViewController.swift in Sources */,
241440D92C05448A00F3BA98 /* UIImage+Blur.swift in Sources */,
E1E5EE37231E47A80018E9E3 /* ContextManager+ErrorHandling.swift in Sources */,
0CE7833D2B08F3C300B114EB /* ExternalMediaPickerViewController.swift in Sources */,
D8212CBF20AA7B7F008E8AE8 /* ReaderShowAttributionAction.swift in Sources */,
Expand Down Expand Up @@ -24617,6 +24622,7 @@
FABB21102602FC2C00C8785C /* MySiteViewController+FAB.swift in Sources */,
803BB981295957CF00B3F6D6 /* WPTabBarController+RootViewPresenter.swift in Sources */,
FABB21112602FC2C00C8785C /* BaseRestoreOptionsViewController.swift in Sources */,
241440DA2C05448A00F3BA98 /* UIImage+Blur.swift in Sources */,
8B4DDF25278F44CC0022494D /* BlogDashboardViewController.swift in Sources */,
FABB21122602FC2C00C8785C /* AddSiteAlertFactory.swift in Sources */,
80EF672027F135EB0063B138 /* WhatIsNewViewAppearance.swift in Sources */,
Expand Down
2 changes: 1 addition & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ module FastlaneActionLogGroup

def execute_action(action_name)
print_group(action_name)
super(action_name)
super
end
end

Expand Down