File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ struct AppearanceSettingsView: View {
2828
2929 var body : some View {
3030 Form {
31- Slider ( value: $SettingsConfig. fontSize, in: 10 .0 ... 30.0 ) {
31+ Slider ( value: $SettingsConfig. fontSize, in: 14 .0 ... 20.0 , step : 2 ) {
3232 Text ( " 字体大小 " )
3333 }
3434 }
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ struct CommentListView: View {
6868 Text ( LocalizedStringKey ( comment. content) )
6969 . foregroundColor ( . label)
7070#if os(macOS)
71- . font( . system( size: settingsConfig. fontSize) )
71+ . font( . system( size: settingsConfig. fontSize - 1 ) )
7272#endif
7373 }
7474 }
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import V2exAPI
1212struct TopicListCellView : View {
1313 @State var isMemberLoading = false
1414
15+ @EnvironmentObject private var settingsConfig : SettingsConfig
1516 @Environment ( \. colorScheme) var colorScheme
1617
1718 let topic : V2Topic
@@ -37,6 +38,7 @@ struct TopicListCellView: View {
3738 VStack ( alignment: . leading, spacing: 6 ) {
3839 Text ( topic. title ?? " " )
3940 . lineLimit ( 2 )
41+ . font ( Font . system ( size: settingsConfig. fontSize - 1 ) )
4042
4143 HStack {
4244 if let username = topic. member? . username ?? topic. lastReplyBy {
You can’t perform that action at this time.
0 commit comments