浏览代码

Improve non-premium overlay readability in light mode.

Use a dark text color for the locked events message in light mode while preserving white text in dark mode so the premium prompt remains clearly visible.

Made-with: Cursor
huzaifahayat12 1 周之前
父节点
当前提交
53352a5dd5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      meetings_app/ViewController.swift

+ 1 - 1
meetings_app/ViewController.swift

@@ -2799,7 +2799,7 @@ private extension ViewController {
2799
             lockOverlay.layer?.masksToBounds = true
2799
             lockOverlay.layer?.masksToBounds = true
2800
             lockOverlay.layer?.backgroundColor = NSColor.black.withAlphaComponent(darkModeEnabled ? 0.28 : 0.12).cgColor
2800
             lockOverlay.layer?.backgroundColor = NSColor.black.withAlphaComponent(darkModeEnabled ? 0.28 : 0.12).cgColor
2801
 
2801
 
2802
-            let lockLabel = textLabel("Get Premium to see events", font: NSFont.systemFont(ofSize: 12, weight: .semibold), color: .white)
2802
+            let lockLabel = textLabel("Get Premium to see events", font: NSFont.systemFont(ofSize: 12, weight: .semibold), color: darkModeEnabled ? .white : .black)
2803
             lockLabel.alignment = .center
2803
             lockLabel.alignment = .center
2804
 
2804
 
2805
             card.addSubview(lockOverlay)
2805
             card.addSubview(lockOverlay)