mirror of
https://github.com/codybrom/blankie.git
synced 2026-05-14 07:40:35 +00:00
lint fixes
This commit is contained in:
@@ -61,7 +61,7 @@ struct AboutView: View {
|
||||
HStack(spacing: 4) {
|
||||
Image(systemName: "globe")
|
||||
Link("blankie.rest", destination: URL(string: "https://blankie.rest")!)
|
||||
.handCursor()
|
||||
.handCursor()
|
||||
}
|
||||
|
||||
Link(destination: URL(string: "https://github.com/codybrom/blankie")!) {
|
||||
@@ -84,7 +84,7 @@ struct AboutView: View {
|
||||
|
||||
}
|
||||
.handCursor()
|
||||
|
||||
|
||||
}
|
||||
.font(.system(size: 12))
|
||||
|
||||
@@ -175,7 +175,7 @@ struct AboutView: View {
|
||||
}
|
||||
.foregroundColor(.accentColor)
|
||||
.handCursor()
|
||||
|
||||
|
||||
Text("•")
|
||||
.foregroundStyle(.secondary)
|
||||
|
||||
@@ -438,7 +438,7 @@ struct AboutView: View {
|
||||
.onTapGesture {
|
||||
NSWorkspace.shared.open(soundUrl)
|
||||
}
|
||||
.handCursor()
|
||||
.handCursor()
|
||||
} else {
|
||||
// Without link case
|
||||
Text(credit.soundName)
|
||||
@@ -476,12 +476,11 @@ struct AboutView: View {
|
||||
struct HandCursorOnHover: ViewModifier {
|
||||
func body(content: Content) -> some View {
|
||||
#if os(macOS)
|
||||
content.onHover { hovering in
|
||||
if hovering { NSCursor.pointingHand.push() }
|
||||
else { NSCursor.pop() }
|
||||
}
|
||||
content.onHover { hovering in
|
||||
if hovering { NSCursor.pointingHand.push() } else { NSCursor.pop() }
|
||||
}
|
||||
#else
|
||||
content
|
||||
content
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,9 +60,9 @@ enum AccentColor: CaseIterable {
|
||||
}
|
||||
|
||||
enum AppearanceMode: String, CaseIterable {
|
||||
case system = "system"
|
||||
case light = "light"
|
||||
case dark = "dark"
|
||||
case system
|
||||
case light
|
||||
case dark
|
||||
|
||||
var localizedName: String {
|
||||
switch self {
|
||||
|
||||
@@ -9,25 +9,25 @@ import XCTest
|
||||
|
||||
final class BlankieUITestsLaunchTests: XCTestCase {
|
||||
|
||||
override class var runsForEachTargetApplicationUIConfiguration: Bool {
|
||||
true
|
||||
}
|
||||
override static var runsForEachTargetApplicationUIConfiguration: Bool {
|
||||
true
|
||||
}
|
||||
|
||||
override func setUpWithError() throws {
|
||||
continueAfterFailure = false
|
||||
}
|
||||
override func setUpWithError() throws {
|
||||
continueAfterFailure = false
|
||||
}
|
||||
|
||||
@MainActor
|
||||
func testLaunch() throws {
|
||||
let app = XCUIApplication()
|
||||
app.launch()
|
||||
@MainActor
|
||||
func testLaunch() throws {
|
||||
let app = XCUIApplication()
|
||||
app.launch()
|
||||
|
||||
// Insert steps here to perform after app launch but before taking a screenshot,
|
||||
// such as logging into a test account or navigating somewhere in the app
|
||||
// Insert steps here to perform after app launch but before taking a screenshot,
|
||||
// such as logging into a test account or navigating somewhere in the app
|
||||
|
||||
let attachment = XCTAttachment(screenshot: app.screenshot())
|
||||
attachment.name = "Launch Screen"
|
||||
attachment.lifetime = .keepAlways
|
||||
add(attachment)
|
||||
}
|
||||
let attachment = XCTAttachment(screenshot: app.screenshot())
|
||||
attachment.name = "Launch Screen"
|
||||
attachment.lifetime = .keepAlways
|
||||
add(attachment)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user