diff --git a/NeoUI/NeoUI/Appearance/ThemeManager.cs b/NeoUI/NeoUI/Appearance/ThemeManager.cs
index f4a9e54..ad1129f 100644
--- a/NeoUI/NeoUI/Appearance/ThemeManager.cs
+++ b/NeoUI/NeoUI/Appearance/ThemeManager.cs
@@ -86,7 +86,7 @@ namespace NeoUI.Appearance
{
foreach (var key in dict.Keys.OfType
或
- var jsTag = $"";
- htmlContent = htmlContent.Replace("", $"{jsTag} 前
- // int bodyEndIndex = htmlContent.IndexOf("");
- // if (bodyEndIndex >= 0)
- // {
- // htmlContent = htmlContent.Insert(bodyEndIndex, jsInjected);
- // }
-
- // return htmlContent;
- //}
-
- private string InjectCssAndJs(string htmlContent, string cssContent, string jsContent)
- {
- // 注入 CSS 到
- var cssTag = $"";
- htmlContent = htmlContent.Replace("", $"{cssTag}");
-
- // 注入 JS 到
");
-
- return htmlContent;
- }
- private string GetEmbeddedResource(string resourceName)
- {
- var assembly = Assembly.GetExecutingAssembly();
- using (Stream stream = assembly.GetManifestResourceStream(resourceName))
- using (StreamReader reader = new StreamReader(stream, Encoding.UTF8))
- {
- return reader.ReadToEnd();
- }
- }
-
- private void WebMessageReceived(object sender, CoreWebView2WebMessageReceivedEventArgs e)
- {
- string json = e.WebMessageAsJson;
- dynamic data = Newtonsoft.Json.JsonConvert.DeserializeObject(json);
- string newTag = data.newTag;
- ApplyTagToWalls(newTag);
- }
-
- private void ApplyTagToWalls(string tagValue)
- {
- // 执行墙标记批量修改操作
- Document doc = _uiDoc.Document;
- var walls = new FilteredElementCollector(doc)
- .OfCategory(BuiltInCategory.OST_Walls)
- .WhereElementIsNotElementType()
- .Cast()
- .ToList();
-
- using (Transaction tx = new Transaction(doc, "批量修改墙标记"))
- {
- tx.Start();
- foreach (var wall in walls)
- {
- Parameter p = wall.get_Parameter(BuiltInParameter.ALL_MODEL_MARK);
- if (p != null && !p.IsReadOnly)
- p.Set(tagValue);
- }
- tx.Commit();
- }
-
- MessageBox.Show($"共修改 {walls.Count} 面墙的标记为 '{tagValue}'。", "完成", MessageBoxButton.OK, MessageBoxImage.Information);
- }
- }
-}
diff --git a/WebUITest/background.avif b/WebUITest/background.avif
deleted file mode 100644
index 0328316..0000000
Binary files a/WebUITest/background.avif and /dev/null differ