lint fixes

This commit is contained in:
Cody Bromley
2025-05-22 22:12:24 -05:00
parent f82b6a4cb6
commit e482fa777d
3 changed files with 28 additions and 29 deletions
+8 -9
View File
@@ -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 {
+17 -17
View File
@@ -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)
}
}