mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-12 17:15:30 +00:00
Editor toolbar icons
This commit is contained in:
parent
d952601528
commit
27ce7fe916
2 changed files with 27 additions and 25 deletions
|
@ -53,7 +53,6 @@ extension StatusEditor {
|
||||||
|
|
||||||
Divider()
|
Divider()
|
||||||
}
|
}
|
||||||
.opacity(editorFocusState == assignedFocusState ? 1 : 0.6)
|
|
||||||
}
|
}
|
||||||
#if !os(visionOS)
|
#if !os(visionOS)
|
||||||
.background(theme.primaryBackgroundColor)
|
.background(theme.primaryBackgroundColor)
|
||||||
|
@ -158,6 +157,7 @@ extension StatusEditor {
|
||||||
private var characterCountAndLangView: some View {
|
private var characterCountAndLangView: some View {
|
||||||
let value = (currentInstance.instance?.configuration?.statuses.maxCharacters ?? 500) + viewModel.statusTextCharacterLength
|
let value = (currentInstance.instance?.configuration?.statuses.maxCharacters ?? 500) + viewModel.statusTextCharacterLength
|
||||||
HStack(alignment: .center) {
|
HStack(alignment: .center) {
|
||||||
|
if editorFocusState == assignedFocusState {
|
||||||
LangButton(viewModel: viewModel)
|
LangButton(viewModel: viewModel)
|
||||||
.padding(.leading, .layoutPadding)
|
.padding(.leading, .layoutPadding)
|
||||||
|
|
||||||
|
@ -183,6 +183,7 @@ extension StatusEditor {
|
||||||
}
|
}
|
||||||
.buttonStyle(.bordered)
|
.buttonStyle(.bordered)
|
||||||
.accessibilityLabel("accessibility.editor.button.spoiler")
|
.accessibilityLabel("accessibility.editor.button.spoiler")
|
||||||
|
}
|
||||||
|
|
||||||
Spacer()
|
Spacer()
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ extension StatusEditor {
|
||||||
Button {
|
Button {
|
||||||
isDraftsSheetDisplayed = true
|
isDraftsSheetDisplayed = true
|
||||||
} label: {
|
} label: {
|
||||||
Text("status.editor.drafts.navigation-title")
|
Image(systemName: "pencil.and.list.clipboard")
|
||||||
}
|
}
|
||||||
.accessibilityLabel("accessibility.editor.button.drafts")
|
.accessibilityLabel("accessibility.editor.button.drafts")
|
||||||
.popover(isPresented: $isDraftsSheetDisplayed) {
|
.popover(isPresented: $isDraftsSheetDisplayed) {
|
||||||
|
@ -57,7 +57,8 @@ extension StatusEditor {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} label: {
|
} label: {
|
||||||
Text("status.action.post").bold()
|
Image(systemName: "paperplane.fill")
|
||||||
|
.bold()
|
||||||
}
|
}
|
||||||
.buttonStyle(.borderedProminent)
|
.buttonStyle(.borderedProminent)
|
||||||
.disabled(!mainSEVM.canPost || mainSEVM.isPosting)
|
.disabled(!mainSEVM.canPost || mainSEVM.isPosting)
|
||||||
|
@ -77,7 +78,7 @@ extension StatusEditor {
|
||||||
object: nil)
|
object: nil)
|
||||||
}
|
}
|
||||||
} label: {
|
} label: {
|
||||||
Text("action.cancel")
|
Image(systemName: "xmark")
|
||||||
}
|
}
|
||||||
.keyboardShortcut(.cancelAction)
|
.keyboardShortcut(.cancelAction)
|
||||||
.confirmationDialog(
|
.confirmationDialog(
|
||||||
|
|
Loading…
Reference in a new issue