fix(ui): 撤销文字底板并保留大字号排版
This commit is contained in:
@@ -45,8 +45,8 @@ import SwiftUI
|
||||
let base = sample(3)
|
||||
let covered = zip(sample(80), base).reduce(0.0) { $0 + abs($1.0 - $1.1) }
|
||||
let open = zip(sample(150), base).reduce(0.0) { $0 + abs($1.0 - $1.1) }
|
||||
precondition(open > 0.02 && covered < open * 0.35,
|
||||
"Only the foreground area should suppress chart color; the bottom Spacer must remain uncovered: \(covered), \(open)")
|
||||
precondition(open > 0.02 && abs(covered - open) < 0.01,
|
||||
"Charts must retain the same color under foreground details and bottom whitespace: \(covered), \(open)")
|
||||
for kind in 0...1 {
|
||||
host.rootView = AnyView(detailsFixture(kind: kind, probe: probe)
|
||||
.environment(\.locale, Locale(identifier: language))
|
||||
@@ -64,7 +64,7 @@ import SwiftUI
|
||||
try? await Task.sleep(for: .milliseconds(100))
|
||||
precondition(descendants(host).allSatisfy { !($0 is NativePanelCurve.PlotView) })
|
||||
window.orderOut(nil); window.contentView = nil; window.close()
|
||||
print("PASS: production card geometry at 190/205⅓/400pt, light/dark, three languages, full-height chart overlay, foreground-only color shielding, larger localized memory/storage detail bounds, unmount")
|
||||
print("PASS: production card geometry at 190/205⅓/400pt, light/dark, three languages, full-height chart without foreground dimming, larger localized memory/storage detail bounds, unmount")
|
||||
NSApp.terminate(nil)
|
||||
}
|
||||
NSApp.run()
|
||||
|
||||
Reference in New Issue
Block a user