Skip to content

Commit

Permalink
dark mode support
Browse files Browse the repository at this point in the history
  • Loading branch information
Velin92 committed Sep 5, 2023
1 parent 191ef16 commit c293b70
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ElementX/Sources/Screens/HomeScreen/View/HomeScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import SwiftUI
import SwiftUIIntrospect

struct HomeScreen: View {
@Environment(\.colorScheme) private var colorScheme
@Environment(\.isPresented) private var isPresented
@ObservedObject var context: HomeScreenViewModel.Context

Expand Down Expand Up @@ -196,10 +197,10 @@ struct HomeScreen: View {
ZStack {
avatar
.blur(radius: 64).blendMode(.hardLight)
.opacity(0.20)
.opacity(colorScheme == .dark ? 0.15 : 0.20)
avatar
.blur(radius: 64).blendMode(.saturation)
.opacity(0.75)
.blur(radius: 64).blendMode(colorScheme == .dark ? .normal : .saturation)
.opacity(colorScheme == .dark ? 0.20 : 0.75)
}
}

Expand Down

0 comments on commit c293b70

Please sign in to comment.