Skip to content

Commit

Permalink
fix: Show the symbol settings first in the sidebar (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbmorley authored Jan 7, 2023
1 parent 913e1e3 commit 6d41ac8
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions Symbolic/Views/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,21 @@ struct ContentView: View {
.frame(maxWidth: .infinity)
Divider()
Form {
Section("Icon") {
SymbolPicker("Image", systemImage: $document.icon.systemImage.undoable(undoManager, context: undoContext))
Slider(value: $document.icon.iconScale.undoable(undoManager, context: undoContext)) {
Text("Size")
}
ColorPicker("Color", selection: $document.icon.symbolColor.undoable(undoManager, context: undoContext))
}
Section("Shadow") {
Slider(value: $document.icon.shadowOpacity.undoable(undoManager, context: undoContext)) {
Text("Opacity")
}
Slider(value: $document.icon.shadowHeight.undoable(undoManager, context: undoContext)) {
Text("Height")
}
}
Section("Background") {
ColorPicker("Top Color",
selection: $document.icon.topColor.undoable(undoManager, context: undoContext),
Expand All @@ -97,21 +112,6 @@ struct ContentView: View {
selection: $document.icon.bottomColor.undoable(undoManager, context: undoContext),
supportsOpacity: false)
}
Section("Icon") {
SymbolPicker("Image", systemImage: $document.icon.systemImage.undoable(undoManager, context: undoContext))
Slider(value: $document.icon.iconScale.undoable(undoManager, context: undoContext)) {
Text("Size")
}
ColorPicker("Color", selection: $document.icon.symbolColor.undoable(undoManager, context: undoContext))
}
Section("Shadow") {
Slider(value: $document.icon.shadowOpacity.undoable(undoManager, context: undoContext)) {
Text("Opacity")
}
Slider(value: $document.icon.shadowHeight.undoable(undoManager, context: undoContext)) {
Text("Height")
}
}
}
.formStyle(.grouped)
.frame(width: 300)
Expand Down

0 comments on commit 6d41ac8

Please sign in to comment.