Prechádzať zdrojové kódy

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 2 mesiacov pred
rodič
commit
3a5d7c68bf
1 zmenil súbory, kde vykonal 5 pridanie a 6 odobranie
  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 {
         static let settingsGroupBackground = NSColor(srgbRed: 1, green: 1, blue: 1, alpha: 1)
         static let settingsIconBackground = NSColor(srgbRed: 239 / 255, green: 244 / 255, blue: 252 / 255, alpha: 1)
         static let settingsDivider = NSColor(srgbRed: 228 / 255, green: 228 / 255, blue: 228 / 255, alpha: 1)
-        static let settingsPrimaryText = NSColor(srgbRed: 45 / 255, green: 45 / 255, blue: 45 / 255, alpha: 1)
     }
 
     /// Multiline `NSTextField` often ignores `alignment` for wrapped runs; explicit paragraph alignment matches the title.
@@ -908,8 +907,8 @@ final class DashboardView: NSView, NSTextFieldDelegate {
         ])
 
         let aboutTitle = NSTextField(labelWithString: "About")
-        aboutTitle.font = .systemFont(ofSize: 15, weight: .bold)
-        aboutTitle.textColor = Theme.settingsPrimaryText
+        aboutTitle.font = .systemFont(ofSize: 12, weight: .semibold)
+        aboutTitle.textColor = Theme.secondaryText
         aboutTitle.alignment = .left
 
         let aboutSection = makeSettingsSection(rows: [
@@ -999,13 +998,13 @@ final class DashboardView: NSView, NSTextFieldDelegate {
 
         let icon = NSImageView()
         icon.translatesAutoresizingMaskIntoConstraints = false
-        icon.symbolConfiguration = NSImage.SymbolConfiguration(pointSize: 15, weight: .medium)
+        icon.symbolConfiguration = NSImage.SymbolConfiguration(pointSize: 13, weight: .medium)
         icon.image = NSImage(systemSymbolName: systemImage, accessibilityDescription: title)
         icon.contentTintColor = Theme.brandBlue
 
         let titleLabel = NSTextField(labelWithString: title)
-        titleLabel.font = .systemFont(ofSize: 17, weight: .semibold)
-        titleLabel.textColor = Theme.settingsPrimaryText
+        titleLabel.font = .systemFont(ofSize: 14, weight: .medium)
+        titleLabel.textColor = Theme.secondaryText
         titleLabel.alignment = .left
 
         let rowStack = NSStackView()