Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Commit 5a81412

Browse files
committed
Fix welcome view style
1 parent a54cf13 commit 5a81412

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

Snip/Components/Welcome/WelcomeView.swift

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ struct WelcomeView: View {
1313
@EnvironmentObject var settings: Settings
1414

1515
@Environment(\.themeSecondaryColor) var themeSecondaryColor
16+
@Environment(\.themePrimaryColor) var themePrimaryColor
1617
@Environment(\.themeTextColor) var themeTextColor
1718
@Environment(\.themeShadowColor) var themeShadowColor
1819

@@ -49,25 +50,25 @@ struct WelcomeView: View {
4950
HStack {
5051
Spacer()
5152
Text("Welcome!")
52-
.foregroundColor(themeShadowColor)
53+
.foregroundColor(themeTextColor)
5354
.font(.title)
5455
Spacer()
5556
}
56-
Text("Changelog Ver. 1.2")
57+
Text("Changelog Ver. 1.3.0")
5758
.font(.subheadline)
58-
.foregroundColor(themeShadowColor)
59+
.foregroundColor(themeTextColor)
5960
.padding(EdgeInsets(top: 16, leading: 0, bottom: 16, trailing: 0))
6061
HStack {
61-
Text("- Fix 'non clickable' area\n- Add snippet from StackOverflow via a Chrome Ext.\n- A StackOverflow snippet has a special top bar button to open the dedicated StackOverflow Post")
62+
Text("- Added CodeView settings\n- Added app theme selection\n- Updated sidebar UI\n- Add atom file icons\n- GitHub scope updated to only request the minimum needed information")
6263
.font(Font.custom("CourierNewPSMT", size: 12))
63-
.foregroundColor(themeShadowColor)
64+
.foregroundColor(themeTextColor)
6465
Spacer()
6566
}
6667
.padding(EdgeInsets(top: 16, leading: 8, bottom: 16, trailing: 8))
67-
.background(Color.BLACK_200)
68+
.background(themePrimaryColor)
6869
Text("We Need Your Help!")
6970
.font(.subheadline)
70-
.foregroundColor(themeShadowColor)
71+
.foregroundColor(themeTextColor)
7172
.padding(EdgeInsets(top: 16, leading: 0, bottom: 16, trailing: 0))
7273
CodeView(code: .constant("Snip needs your help to grow!\n\nWant to translate snip into your native language?\nWant to have first-day in our next features?\n\nJOIN US now!"),
7374
mode: .constant(CodeMode.text.mode()),
@@ -79,7 +80,7 @@ struct WelcomeView: View {
7980
Button(action: self.viewModel.close) {
8081
Text("Close")
8182
.padding(EdgeInsets(top: 8, leading: 20, bottom: 8, trailing: 20))
82-
.foregroundColor(themeShadowColor)
83+
.foregroundColor(themeTextColor)
8384
.background(Color.transparent)
8485
}
8586
.buttonStyle(PlainButtonStyle())

Snip/Model/AppState.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ class AppState: ObservableObject {
1616

1717
@Published var shouldShowChangelogModel: Bool {
1818
didSet {
19-
UserDefaults.standard.set(Bundle.main.buildVersionNumber, forKey: "previous_launched_version")
19+
UserDefaults.standard.set(Bundle.main.buildVersionNumber, forKey: "previous_launched_version_v1.3.0")
2020
}
2121
}
2222

2323
init() {
24-
self.shouldShowChangelogModel = (UserDefaults.standard.object(forKey: "previous_launched_version") as? String ?? "") != Bundle.main.buildVersionNumber
24+
self.shouldShowChangelogModel = (UserDefaults.standard.object(forKey: "previous_launched_version_v1.3.0") as? String ?? "") != Bundle.main.buildVersionNumber
2525
}
2626
}

0 commit comments

Comments
 (0)