- Fix Reduce Transparency mode in light mode (dark buttons issue) - Lower opacity values for better readability when reduceTransparency is enabled - Add Accessibility section to README documenting macOS accessibility support - Update README with new light/dark mode screenshots - Bump version to 1.4.4
13 lines
349 B
Swift
13 lines
349 B
Swift
import SwiftUI
|
|
|
|
// Environment key for reduce transparency setting
|
|
private struct ReduceTransparencyKey: EnvironmentKey {
|
|
static let defaultValue: Bool = false
|
|
}
|
|
|
|
extension EnvironmentValues {
|
|
var reduceTransparency: Bool {
|
|
get { self[ReduceTransparencyKey.self] }
|
|
set { self[ReduceTransparencyKey.self] = newValue }
|
|
}
|
|
}
|