-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #97 from aapis/feature/better-export
New feature: Today modified "view mode"
- Loading branch information
Showing
9 changed files
with
191 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// | ||
// TodaySettings.swift | ||
// DLPrototype | ||
// | ||
// Created by Ryan Priebe on 2023-04-16. | ||
// Copyright © 2023 YegCollective. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import SwiftUI | ||
|
||
struct TodaySettings: View { | ||
@AppStorage("today.numPastDates") public var numPastDates: Int = 20 | ||
@AppStorage("today.viewMode") public var viewMode: Int = 0 | ||
@AppStorage("showSidebar") public var showSidebar: Bool = true | ||
@AppStorage("showTodaySearch") public var showSearch: Bool = true | ||
|
||
var body: some View { | ||
Form { | ||
Picker("Max number of days", selection: $numPastDates) { | ||
Text("7").tag(7) | ||
Text("10").tag(10) | ||
Text("20").tag(20) | ||
Text("30").tag(30) | ||
Text("40").tag(40) | ||
} | ||
|
||
Picker("Default view mode", selection: $viewMode) { | ||
Text("Full").tag(1) | ||
Text("Plain").tag(2) | ||
} | ||
|
||
Toggle("Show sidebar", isOn: $showSidebar) | ||
Toggle("Show search on Today", isOn: $showSearch) | ||
} | ||
.padding(20) | ||
} | ||
} | ||
|
||
struct TodaySettingsPreview: PreviewProvider { | ||
static var previews: some View { | ||
TodaySettings() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.