File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,10 @@ extension DarkModeColor {
3030 private typealias sRGB = IEC_61966 . `2` . `1` . sRGB
3131
3232 /// Calculates the midpoint color between two colors for gradients
33- public static func gradientMidpoint( from color1: DarkModeColor , to color2: DarkModeColor ) -> DarkModeColor ? {
33+ public static func gradientMidpoint(
34+ from color1: DarkModeColor ,
35+ to color2: DarkModeColor
36+ ) -> DarkModeColor ? {
3437 func midpoint(
3538 _ c1: CSS_Standard . Color . Value ,
3639 _ c2: CSS_Standard . Color . Value
@@ -56,7 +59,8 @@ extension DarkModeColor {
5659 return . init( . hex( " 000000 " ) )
5760 }
5861 // Perceived brightness using ITU-R BT.601 coefficients
59- let brightness = ( Double ( srgb. r255) * 299 + Double( srgb. g255) * 587 + Double( srgb. b255) * 114 ) / 255000
62+ let brightness =
63+ ( Double ( srgb. r255) * 299 + Double( srgb. g255) * 587 + Double( srgb. b255) * 114 ) / 255000
6064 let color : CSS_Standard . Color . Value = brightness > 0.5 ? . hex( " 000000 " ) : . hex( " FFFFFF " )
6165 return . init( color)
6266 }
Original file line number Diff line number Diff line change 55// Created by Coen ten Thije Boonkkamp on 01/09/2024.
66//
77
8- @_exported import Color_Standard
98@_exported import CSS
109@_exported import CSS_Standard
10+ @_exported import Color_Standard
1111@_exported import HTML_Rendering
1212@_exported import HTML_Standard
1313@_exported import Markdown_HTML_Rendering
Original file line number Diff line number Diff line change 77
88import Foundation
99import HTML
10- import StandardsTestSupport
1110import SVG
1211import SVG_Standard
12+ import StandardsTestSupport
1313import Testing
1414
1515@testable import HTML
Original file line number Diff line number Diff line change 55// Created by Coen ten Thije Boonkkamp on 22/12/2025.
66//
77
8- import StandardsTestSupport
98import InlineSnapshotTesting
9+ import StandardsTestSupport
1010
1111extension Test {
1212 @MainActor
You can’t perform that action at this time.
0 commit comments