fix frost

This commit is contained in:
abue-ammar
2026-07-21 20:29:04 +06:00
parent fb0d97866a
commit b6cbfbb51c
2 changed files with 6 additions and 4 deletions
+4 -2
View File
@@ -79,6 +79,8 @@ enum Theme {
/// Settings grouped "card": a faint raised surface whose hairline border doubles as the inset row divider.
static let cardFill = Color.white.opacity(0.05)
static let cardStroke = Color.white.opacity(0.10)
/// Whitish tint layered into the Liquid Glass floating controls (action group + menu circle) so the glass reads frosted rather than clear.
static let glassFrost = Color.white.opacity(0.05)
}
}
@@ -109,9 +111,9 @@ struct KeyCapChip: View {
}
extension View {
/// A floating Liquid Glass control surface (action group + menu button), interactive for native lensing and untinted via `.tint(.clear)`.
/// A floating Liquid Glass control surface (action group + menu button), interactive for native lensing with a whitish frost tint so it reads brighter than clear glass.
func frosted(in shape: some Shape) -> some View {
glassEffect(.regular.interactive(), in: shape)
glassEffect(.regular.interactive().tint(Theme.Colors.glassFrost), in: shape)
.tint(.clear)
}
}
+2 -2
View File
@@ -584,8 +584,8 @@ private struct MenuCircleButton: View {
var body: some View {
Button(action: action) {
VStack(alignment: .leading, spacing: 3) {
Capsule().frame(width: 16, height: 2)
Capsule().frame(width: 10, height: 2)
Capsule().frame(width: 14, height: 1.5)
Capsule().frame(width: 8, height: 1.5)
}
.foregroundStyle(Theme.Colors.textSecondary)
.frame(width: Theme.Size.menuButton, height: Theme.Size.menuButton)