Skip to content

Commit

Permalink
style: update icons and layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Build Pipeline committed Mar 30, 2023
1 parent a48208a commit 83aff8f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
15 changes: 8 additions & 7 deletions PlantUML/PlantUML+OpenAI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,16 @@ struct OpenAIView : View {

HStack {
TextEditor(text: $instruction)
.font(.title2)
.lineSpacing(20)
.font(.title3.monospaced() )
.lineSpacing(15)
.autocapitalization(.none)
.disableAutocorrection(true)
.border(.gray, width: 1)
.padding()

ScrollView {
Text( input )
.font( .system(size: 10.0, design: .monospaced) )
}.padding()

}
Expand All @@ -133,7 +134,7 @@ struct OpenAIView : View {
ProgressView("AI editing....")
}
else {
Label( "Submit", systemImage: "brain")
Label( "Submit", systemImage: "arrow.right")
}
})
.disabled( isEditing )
Expand All @@ -143,8 +144,8 @@ struct OpenAIView : View {
onApply()
},
label: {
Label( "Apply", systemImage: "")
.labelStyle(.titleOnly)
Label( "Apply", systemImage: "arrow.up")
.labelStyle(.titleAndIcon)
})
.disabled( isEditing )
.padding( .bottom, 10 )
Expand All @@ -153,8 +154,8 @@ struct OpenAIView : View {
onUndo()
},
label: {
Label( "Undo", systemImage: "")
.labelStyle(.titleOnly)
Label( "Undo", systemImage: "arrow.uturn.backward")
.labelStyle(.titleAndIcon)
})
.disabled( isEditing )
.padding( .bottom, 10 )
Expand Down
13 changes: 5 additions & 8 deletions PlantUML/PlantUMLContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -145,25 +145,22 @@ struct PlantUMLContentView: View {
})
.toolbar {
ToolbarItemGroup(placement: .navigationBarLeading) {
// if isEditorVisible {
// HStack {
// EditButton()
// fontSizeView()
// toggleLineNumberView()
// }
// }
}
ToolbarItemGroup(placement: .navigationBarTrailing) {
HStack( spacing: 0 ) {
SavingStateView( saving: saving )

HStack(alignment: .center, spacing: 5) {
ToggleOpenAIButton()
Divider().background(Color.blue)
}
.frame(height:20)
ToggleEditorButton()
if viewState.isEditorVisible {
HStack {
EditButton()
fontSizeView()
toggleLineNumberView()
ToggleOpenAIButton()
}
}

Expand Down

0 comments on commit 83aff8f

Please sign in to comment.