mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-02-18 10:45:15 +00:00
Outlined icons in status editor (#1194)
This commit is contained in:
parent
21fd0b0541
commit
b3919702e0
1 changed files with 6 additions and 2 deletions
|
@ -9,6 +9,7 @@ struct StatusEditorAccessoryView: View {
|
||||||
@EnvironmentObject private var preferences: UserPreferences
|
@EnvironmentObject private var preferences: UserPreferences
|
||||||
@EnvironmentObject private var theme: Theme
|
@EnvironmentObject private var theme: Theme
|
||||||
@EnvironmentObject private var currentInstance: CurrentInstance
|
@EnvironmentObject private var currentInstance: CurrentInstance
|
||||||
|
@Environment(\.colorScheme) private var colorScheme
|
||||||
|
|
||||||
@FocusState<Bool>.Binding var isSpoilerTextFocused: Bool
|
@FocusState<Bool>.Binding var isSpoilerTextFocused: Bool
|
||||||
@ObservedObject var viewModel: StatusEditorViewModel
|
@ObservedObject var viewModel: StatusEditorViewModel
|
||||||
|
@ -30,7 +31,7 @@ struct StatusEditorAccessoryView: View {
|
||||||
if viewModel.isMediasLoading {
|
if viewModel.isMediasLoading {
|
||||||
ProgressView()
|
ProgressView()
|
||||||
} else {
|
} else {
|
||||||
Image(systemName: "photo.fill.on.rectangle.fill")
|
Image(systemName: "photo.on.rectangle.angled")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.accessibilityLabel("accessibility.editor.button.attach-photo")
|
.accessibilityLabel("accessibility.editor.button.attach-photo")
|
||||||
|
@ -70,7 +71,10 @@ struct StatusEditorAccessoryView: View {
|
||||||
Button {
|
Button {
|
||||||
isCustomEmojisSheetDisplay = true
|
isCustomEmojisSheetDisplay = true
|
||||||
} label: {
|
} label: {
|
||||||
Image(systemName: "face.smiling.inverse")
|
// This is a workaround for an apparent bug in the `face.smiling` SF Symbol.
|
||||||
|
// See https://github.com/Dimillian/IceCubesApp/issues/1193
|
||||||
|
let customEmojiSheetIconName = colorScheme == .light ? "face.smiling" : "face.smiling.inverse"
|
||||||
|
Image(systemName: customEmojiSheetIconName)
|
||||||
}
|
}
|
||||||
.accessibilityLabel("accessibility.editor.button.custom-emojis")
|
.accessibilityLabel("accessibility.editor.button.custom-emojis")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue