Преглед изворни кода

feat: 替换房间内个人卡片举报按钮

陈文艺 пре 1 недеља
родитељ
комит
978ae95d91

+ 6 - 0
Lanu/Assets.xcassets/Common/Warning/Contents.json

@@ -0,0 +1,6 @@
+{
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

+ 22 - 0
Lanu/Assets.xcassets/Common/Warning/ic_warning.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "filename" : "ic_warning@2x.png",
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "filename" : "ic_warning@3x.png",
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

BIN
Lanu/Assets.xcassets/Common/Warning/ic_warning.imageset/ic_warning@2x.png


BIN
Lanu/Assets.xcassets/Common/Warning/ic_warning.imageset/ic_warning@3x.png


+ 1 - 1
Lanu/Views/Room/Profile/LNRoomProfileCardPanel.swift

@@ -138,7 +138,7 @@ private extension LNRoomProfileCardPanel {
         }
         
         reportButton.tintColor = UIColor.text_2.withAlphaComponent(0.6)
-        reportButton.setImage(UIImage(systemName: "exclamationmark.triangle"), for: .normal)
+        reportButton.setImage(.icWarning, for: .normal)
         reportButton.addAction(UIAction(handler: { [weak self] _ in
             guard let self else { return }
             guard let curDetail else { return }