Skip to content

Commit

Permalink
add pseudo
Browse files Browse the repository at this point in the history
  • Loading branch information
workgroupengineering committed Apr 17, 2024
1 parent a22da07 commit 26d6e67
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Avalonia.Controls;
using Avalonia.VisualTree;

Expand Down Expand Up @@ -206,8 +205,9 @@ private static string GetVisualSelector(Visual visual)
var classes = string.Concat(visual.Classes
.Where(c => !c.StartsWith(":"))
.Select(c => '.' + c));
var pseudo = string.Concat(visual.Classes.Where(c => c[0] == ':').Select(c => c));
var type = StyledElement.GetStyleKey(visual);
return $$"""{{{type.Assembly.FullName}};{{type.Namespace}}.}{{type.Name}}{{name}}{{classes}}""";
return $$"""{{{type.Assembly.FullName}};{{type.Namespace}}|}{{type.Name}}{{name}}{{classes}}{{pseudo}}""";
}

private void ExpandNode(TreeNode? node)
Expand Down

0 comments on commit 26d6e67

Please sign in to comment.