Explorar o código

Adjust settings page typography to match sidebar navigation.

Use the same font sizing/weight and secondary text treatment as the home/sidebar buttons for visual consistency.

Co-authored-by: Cursor <cursoragent@cursor.com>
AhtashamShahzad1 hai 3 semanas
pai
achega
3a5d7c68bf
Modificáronse 1 ficheiros con 5 adicións e 6 borrados
  1. 5 6
      App for Indeed/Views/DashboardView.swift

+ 5 - 6
App for Indeed/Views/DashboardView.swift

@@ -49,7 +49,6 @@ final class DashboardView: NSView, NSTextFieldDelegate {
49 49
         static let settingsGroupBackground = NSColor(srgbRed: 1, green: 1, blue: 1, alpha: 1)
50 50
         static let settingsIconBackground = NSColor(srgbRed: 239 / 255, green: 244 / 255, blue: 252 / 255, alpha: 1)
51 51
         static let settingsDivider = NSColor(srgbRed: 228 / 255, green: 228 / 255, blue: 228 / 255, alpha: 1)
52
-        static let settingsPrimaryText = NSColor(srgbRed: 45 / 255, green: 45 / 255, blue: 45 / 255, alpha: 1)
53 52
     }
54 53
 
55 54
     /// Multiline `NSTextField` often ignores `alignment` for wrapped runs; explicit paragraph alignment matches the title.
@@ -908,8 +907,8 @@ final class DashboardView: NSView, NSTextFieldDelegate {
908 907
         ])
909 908
 
910 909
         let aboutTitle = NSTextField(labelWithString: "About")
911
-        aboutTitle.font = .systemFont(ofSize: 15, weight: .bold)
912
-        aboutTitle.textColor = Theme.settingsPrimaryText
910
+        aboutTitle.font = .systemFont(ofSize: 12, weight: .semibold)
911
+        aboutTitle.textColor = Theme.secondaryText
913 912
         aboutTitle.alignment = .left
914 913
 
915 914
         let aboutSection = makeSettingsSection(rows: [
@@ -999,13 +998,13 @@ final class DashboardView: NSView, NSTextFieldDelegate {
999 998
 
1000 999
         let icon = NSImageView()
1001 1000
         icon.translatesAutoresizingMaskIntoConstraints = false
1002
-        icon.symbolConfiguration = NSImage.SymbolConfiguration(pointSize: 15, weight: .medium)
1001
+        icon.symbolConfiguration = NSImage.SymbolConfiguration(pointSize: 13, weight: .medium)
1003 1002
         icon.image = NSImage(systemSymbolName: systemImage, accessibilityDescription: title)
1004 1003
         icon.contentTintColor = Theme.brandBlue
1005 1004
 
1006 1005
         let titleLabel = NSTextField(labelWithString: title)
1007
-        titleLabel.font = .systemFont(ofSize: 17, weight: .semibold)
1008
-        titleLabel.textColor = Theme.settingsPrimaryText
1006
+        titleLabel.font = .systemFont(ofSize: 14, weight: .medium)
1007
+        titleLabel.textColor = Theme.secondaryText
1009 1008
         titleLabel.alignment = .left
1010 1009
 
1011 1010
         let rowStack = NSStackView()