Explorar o código

refactor: cleanup popover views

Sam Jaffe hai 2 semanas
pai
achega
d8c6fe67ac

+ 1 - 1
Todos/View/Components/StatusChecklist.swift

@@ -12,7 +12,7 @@ struct StatusChecklist: View {
 
   var body: some View {
     VStack(alignment: .leading) {
-      Text("Filter by Status")
+      Label("Filter by Status", systemImage: "exclamationmark.magnifyingglass")
         .font(.title3.bold())
       ForEach(Status.allCases) { unit in
         Toggle("Show \"\(unit.description)\"", systemImage: unit.label,

+ 6 - 2
Todos/View/ProjectPanelView.swift

@@ -62,18 +62,22 @@ struct ProjectPanelView: View {
       .buttonStyle(.borderless)
       .popover(isPresented: $showDialogue) {
         List{
-          Picker("Default Category", selection: $item.category) {
+          Label("Settings", systemImage: "gearshape")
+            .font(.title)
+          Picker("Category", selection: $item.category) {
             Text(empty.name).tag("")
             ForEach(allGroups) { group in
               Text(group.name)
             }
           }
+          Label("Filters", systemImage: "magnifyingglass")
+            .font(.title)
           HStack {
             Label("", systemImage: "arrow.up.arrow.down")
             Toggle("Move Tasks", isOn: $move)
           }
           HStack {
-            Label("", systemImage: "magnifyingglass")
+            Label("", systemImage: "text.magnifyingglass")
             TextField("Filter Tasks", text: $taskFilter)
           }
           StatusChecklist(statuses: $statuses)

+ 1 - 1
Todos/View/TaskView.swift

@@ -62,7 +62,7 @@ struct TaskView: View {
         .buttonStyle(.borderless)
         .popover(isPresented: $showDialogue) {
           List{
-            Picker("Task Category", selection: $task.category) {
+            Picker("Category", selection: $task.category) {
               Text(empty.name).tag("")
               ForEach(allGroups) { group in
                 Text(group.name)