图片资源命名使用苹果风格

This commit is contained in:
xaoxuu 2020-06-19 13:54:36 +08:00
parent 190a2ab9c5
commit 3f384becef
18 changed files with 5 additions and 5 deletions

View File

@ -42,34 +42,34 @@ public extension ProHUD.Scene {
static var `default`: ProHUD.Scene { static var `default`: ProHUD.Scene {
var scene = ProHUD.Scene.init(identifier: "default") var scene = ProHUD.Scene.init(identifier: "default")
scene.image = ProHUD.image(named: "ProHUDMessage") scene.image = ProHUD.image(named: "prohud.message")
return scene return scene
} }
static var loading: ProHUD.Scene { static var loading: ProHUD.Scene {
var scene = ProHUD.Scene.init(identifier: "loading") var scene = ProHUD.Scene.init(identifier: "loading")
scene.alertDuration = 0 scene.alertDuration = 0
scene.toastDuration = 0 scene.toastDuration = 0
scene.image = ProHUD.image(named: "ProHUDLoading") scene.image = ProHUD.image(named: "prohud.loading")
return scene return scene
} }
static var success: ProHUD.Scene { static var success: ProHUD.Scene {
var scene = ProHUD.Scene.init(identifier: "success") var scene = ProHUD.Scene.init(identifier: "success")
scene.alertDuration = 2 scene.alertDuration = 2
scene.image = ProHUD.image(named: "ProHUDSuccess") scene.image = ProHUD.image(named: "prohud.success")
return scene return scene
} }
static var warning: ProHUD.Scene { static var warning: ProHUD.Scene {
var scene = ProHUD.Scene.init(identifier: "warning") var scene = ProHUD.Scene.init(identifier: "warning")
scene.alertDuration = 2 scene.alertDuration = 2
scene.toastDuration = 5 scene.toastDuration = 5
scene.image = ProHUD.image(named: "ProHUDWarning") scene.image = ProHUD.image(named: "prohud.warning")
return scene return scene
} }
static var error: ProHUD.Scene { static var error: ProHUD.Scene {
var scene = ProHUD.Scene.init(identifier: "error") var scene = ProHUD.Scene.init(identifier: "error")
scene.alertDuration = 2 scene.alertDuration = 2
scene.toastDuration = 5 scene.toastDuration = 5
scene.image = ProHUD.image(named: "ProHUDError") scene.image = ProHUD.image(named: "prohud.error")
return scene return scene
} }

View File

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

View File

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB