Skip to content

Commit 8f235f7

Browse files
committed
Adaptive dark mode
1 parent bcb9c96 commit 8f235f7

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

V2exOS/Views/TopicDetail/TopicDetailView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ struct TopicDetailView: View {
9595
#if os(iOS)
9696
.listStyle(.plain)
9797
#endif
98-
.task {
98+
.onFirstAppear {
9999
loadComments(page: 1)
100100
}
101101
}

V2exOS/Views/TopicList/TopicListCellView.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ struct TopicListCellView: View {
7070

7171
}
7272
#if os(macOS)
73-
.foregroundColor(Color(NSColor.labelColor))
73+
.foregroundColor(Color(.labelColor))
74+
#endif
75+
#if os(iOS)
76+
.foregroundColor(Color(.label))
7477
#endif
7578
.task {
7679
if let name = topic.lastReplyBy {

V2exOSiOS/Views/HomeView.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,9 @@ struct TitleNavBarItem: View {
5050
var body: some View {
5151
VStack {
5252
Text(title)
53-
.foregroundColor(Color.gray)
5453
.font(.subheadline)
5554
}
5655
.frame(maxWidth: .infinity, maxHeight: .infinity)
57-
.background(Color.white)
5856
}
5957
}
6058

0 commit comments

Comments
 (0)