Sfoglia il codice sorgente

Improve light mode meetings panel contrast.

Adjust light palette and panel/button borders so the home meetings panel reads clearly on light backgrounds.

Made-with: Cursor
huzaifahayat12 3 mesi fa
parent
commit
e20a765048
1 ha cambiato i file con 8 aggiunte e 4 eliminazioni
  1. 8 4
      zoom_app/ViewController.swift

+ 8 - 4
zoom_app/ViewController.swift

@@ -43,7 +43,8 @@ class ViewController: NSViewController {
         var secondaryCardBackground: NSColor {
             isDarkMode
                 ? NSColor(calibratedRed: 22 / 255, green: 23 / 255, blue: 26 / 255, alpha: 1)
-                : NSColor(calibratedWhite: 0.98, alpha: 1)
+                // Slightly darker than pure white so cards are visible on Light background.
+                : NSColor(calibratedWhite: 0.93, alpha: 1)
         }
         var appShellBackground: NSColor { appBackground }
         var contentShellBackground: NSColor { appBackground }
@@ -2303,7 +2304,7 @@ class ViewController: NSViewController {
         panel.layer?.backgroundColor = secondaryCardBackground.withAlphaComponent(0.94).cgColor
         panel.layer?.cornerRadius = 16
         panel.layer?.borderWidth = 1
-        panel.layer?.borderColor = NSColor.white.withAlphaComponent(0.07).cgColor
+        panel.layer?.borderColor = palette.inputBorder.cgColor
         
         let todaysDateFormatter = DateFormatter()
         todaysDateFormatter.dateFormat = "EEEE, MMM d"
@@ -2348,10 +2349,13 @@ class ViewController: NSViewController {
             refreshMeetingsButton.imageScaling = .scaleNone
         }
         refreshMeetingsButton.wantsLayer = true
-        refreshMeetingsButton.layer?.backgroundColor = NSColor(calibratedRed: 36 / 255, green: 39 / 255, blue: 46 / 255, alpha: 1).cgColor
+        refreshMeetingsButton.layer?.backgroundColor = (palette.isDarkMode
+            ? NSColor(calibratedRed: 36 / 255, green: 39 / 255, blue: 46 / 255, alpha: 1)
+            : NSColor.black.withAlphaComponent(0.06)
+        ).cgColor
         refreshMeetingsButton.layer?.cornerRadius = 11
         refreshMeetingsButton.layer?.borderWidth = 1
-        refreshMeetingsButton.layer?.borderColor = NSColor.white.withAlphaComponent(0.07).cgColor
+        refreshMeetingsButton.layer?.borderColor = palette.inputBorder.cgColor
         self.refreshMeetingsButton = refreshMeetingsButton
 
         let placeholder = makeLabel("Coming soon", size: 22, color: secondaryText, weight: .semibold, centered: true)