From 87deb5d9f2718ac819e664da45d415ac8f2c8bc8 Mon Sep 17 00:00:00 2001 From: fish Date: Sun, 12 Jul 2026 22:07:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E6=A1=86=E8=83=8C=E6=99=AF=E6=B5=85=E8=89=B2=E5=9B=BA=E5=AE=9A?= =?UTF-8?q?=E7=99=BD=E8=89=B2=E6=B7=B1=E8=89=B2=E4=BD=BF=E7=94=A8=E6=AC=A1?= =?UTF-8?q?=E7=BA=A7=E8=83=8C=E6=99=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Note/FormatLogViewController.swift | 4 +++- Note/FormatNoteViewController.swift | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Note/FormatLogViewController.swift b/Note/FormatLogViewController.swift index d9f000d..ff480b0 100644 --- a/Note/FormatLogViewController.swift +++ b/Note/FormatLogViewController.swift @@ -34,7 +34,9 @@ class FormatLogViewController: UIViewController { textView = UITextView() textView.translatesAutoresizingMaskIntoConstraints = false textView.font = UIFont.systemFont(ofSize: 16) - textView.backgroundColor = .systemBackground + textView.backgroundColor = UIColor { traitCollection in + traitCollection.userInterfaceStyle == .dark ? .secondarySystemBackground : .white + } textView.layer.cornerRadius = 12 textView.layer.borderWidth = 0.5 textView.layer.borderColor = UIColor.separator.cgColor diff --git a/Note/FormatNoteViewController.swift b/Note/FormatNoteViewController.swift index debf38a..a5cebf5 100644 --- a/Note/FormatNoteViewController.swift +++ b/Note/FormatNoteViewController.swift @@ -34,7 +34,9 @@ class FormatNoteViewController: UIViewController { private func setupUI() { textView = UITextView() textView.translatesAutoresizingMaskIntoConstraints = false - textView.backgroundColor = .systemBackground + textView.backgroundColor = UIColor { traitCollection in + traitCollection.userInterfaceStyle == .dark ? .secondarySystemBackground : .white + } textView.layer.cornerRadius = 12 textView.layer.borderWidth = 0.5 textView.layer.borderColor = UIColor.separator.cgColor