mirror of
https://github.com/abue-ammar/tinycast.git
synced 2026-10-02 08:14:38 +08:00
fix frost
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user