Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
eonist committed Oct 15, 2023
1 parent a094bd2 commit 7507f9e
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Sources/DarkMode/UIApplication+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ extension UIApplication {
}
}
}
#endif
#endif
2 changes: 1 addition & 1 deletion Sources/DarkMode/UIImageAsset+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ extension UIImageAsset {
}
}
}
#endif
#endif
2 changes: 1 addition & 1 deletion Sources/DarkMode/UITraitCollection+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ extension UITraitCollection {
}
}
}
#endif
#endif
2 changes: 1 addition & 1 deletion Sources/DarkMode/UIViewController+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ extension UIViewController {
}
}
}
#endif
#endif
2 changes: 1 addition & 1 deletion Sources/DarkMode/UIWindow+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ extension Array where Element: UIWindow {
}
}
}
#endif
#endif
4 changes: 2 additions & 2 deletions Sources/DarkMode/UserDefault+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ extension UserDefaults {
// Fetch the raw value of the UI style from UserDefaults using the function name as the key.
// If no value is found, default to 'unspecified'.
UIUserInterfaceStyle(rawValue: integer(forKey: #function)) ?? .unspecified
}
}
set {
// Save the raw value of the new UI style to UserDefaults using the function name as the key.
set(newValue.rawValue, forKey: #function)
}
}
}
#endif
#endif
2 changes: 1 addition & 1 deletion Sources/DarkMode/common/Apperance.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ public final class ChangeDetector {
extension Notification.Name {
static let AppleInterfaceThemeChangedNotification = Notification.Name("AppleInterfaceThemeChangedNotification")
}
#endif
#endif
2 changes: 1 addition & 1 deletion Sources/DarkMode/common/Color.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ extension NSColor {
self.init(srgbRed: red, green: green, blue: blue, alpha: alpha)
}
}
#endif
#endif
24 changes: 12 additions & 12 deletions Sources/DarkMode/common/Swatches.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,37 +12,37 @@ extension Color {
* Represents a light yellow color with hex value #F9EFB1.
*/
static let xF9EFB1 = #colorLiteral(
red: 0.9764705882352941, // red component
green: 0.9372549019607843, // green component
blue: 0.6941176470588235, // blue component
red: 0.976_470_588_235_294_1, // red component
green: 0.937_254_901_960_784_3, // green component
blue: 0.694_117_647_058_823_5, // blue component
alpha: 1 // alpha component
)
/**
* Represents a gray color with hex value #6A6A6A.
*/
static let x6A6A6A = #colorLiteral(
red: 0.4156862745098039, // red component
green: 0.4156862745098039, // green component
blue: 0.4156862745098039, // blue component
red: 0.415_686_274_509_803_9, // red component
green: 0.415_686_274_509_803_9, // green component
blue: 0.415_686_274_509_803_9, // blue component
alpha: 1 // alpha component
)
/**
* Represents a near white color with hex value #FEFEFE.
*/
static let xFEFEFE = #colorLiteral(
red: 0.9960784313725490, // red component
green: 0.9960784313725490, // green component
blue: 0.9960784313725490, // blue component
red: 0.996_078_431_372_549_0, // red component
green: 0.996_078_431_372_549_0, // green component
blue: 0.996_078_431_372_549_0, // blue component
alpha: 1 // alpha component
)

/**
* Represents a dark gray color with hex value #202020.
*/
static let x202020 = #colorLiteral(
red: 0.1254901960784314, // red component
green: 0.1254901960784314, // green component
blue: 0.1254901960784314, // blue component
red: 0.125_490_196_078_431_4, // red component
green: 0.125_490_196_078_431_4, // green component
blue: 0.125_490_196_078_431_4, // blue component
alpha: 1 // alpha component
)
}

0 comments on commit 7507f9e

Please sign in to comment.