mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-04-04 22:05:55 +00:00
* ios: ensure legibility of elements rendered over media * reduce diff * match meta padding * material play background * remove circlebadge * progress circle * meta color modes * refactor * conditional space * fix * fix2 * fix3 * revert video buttons --------- Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com>
22 lines
484 B
Swift
22 lines
484 B
Swift
//
|
|
// Test.swift
|
|
// SimpleX (iOS)
|
|
//
|
|
// Created by Levitating Pineapple on 31/08/2024.
|
|
// Copyright © 2024 SimpleX Chat. All rights reserved.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
extension View {
|
|
@ViewBuilder
|
|
func invertedForegroundStyle(enabled: Bool = true) -> some View {
|
|
if enabled {
|
|
foregroundStyle(Material.ultraThin)
|
|
.environment(\.colorScheme, .dark)
|
|
.grayscale(1)
|
|
.contrast(-20)
|
|
} else { self }
|
|
}
|
|
}
|