|
48 | 48 | <DockPanel>
|
49 | 49 | <Slider DockPanel.Dock="Bottom"
|
50 | 50 | Margin="-8 8"
|
51 |
| - Minimum="16" |
| 51 | + Minimum="14" |
52 | 52 | Maximum="48"
|
53 | 53 | TickFrequency="1"
|
54 | 54 | IsSnapToTickEnabled="True"
|
|
75 | 75 | <TextBlock Text="Stroke width:" FontWeight="SemiBold" DockPanel.Dock="Left"/>
|
76 | 76 | </DockPanel>
|
77 | 77 |
|
78 |
| - <Button Content="Reset" Classes="Basic" Cursor="Hand" Command="{Binding ResetCommand}"/> |
| 78 | + <Button Content="Reset" |
| 79 | + Classes="Basic" |
| 80 | + Cursor="Hand" |
| 81 | + Command="{Binding ResetCommand}"/> |
79 | 82 |
|
80 | 83 | </StackPanel>
|
81 | 84 |
|
82 | 85 | <StackPanel DockPanel.Dock="Bottom">
|
83 |
| - <Button Content="Switch Theme" Cursor="Hand" Command="{Binding SwitchBaseThemeCommand}"/> |
| 86 | + <Button Content="{LucideIconContent SunMoon, StrokeWidth=1}" |
| 87 | + Classes="Icon" |
| 88 | + Cursor="Hand" |
| 89 | + HorizontalAlignment="Left" |
| 90 | + Command="{Binding SwitchBaseThemeCommand}"/> |
84 | 91 | </StackPanel>
|
85 | 92 |
|
86 | 93 | </DockPanel>
|
|
98 | 105 | theme:TextBoxExtensions.AddDeleteButton="True">
|
99 | 106 | </TextBox>
|
100 | 107 |
|
101 |
| - <ScrollViewer Margin="0 20 0 0"> |
102 |
| - |
103 |
| - <ItemsControl ItemsSource="{Binding Icons}"> |
104 |
| - <ItemsControl.ItemTemplate> |
105 |
| - <DataTemplate x:DataType="vm:IconViewModel"> |
106 |
| - <suki:GlassCard Margin="6" |
107 |
| - Padding="10" |
108 |
| - CornerRadius="8" |
109 |
| - Cursor="Hand" |
110 |
| - IsAnimated="False" |
111 |
| - ToolTip.Tip="{Binding Tip}"> |
112 |
| - |
113 |
| - <LucideIcon Kind="{Binding Kind}" |
114 |
| - Size="{Binding Size}" |
115 |
| - StrokeWidth="{Binding StrokeWidth}"/> |
116 |
| - |
117 |
| - <suki:GlassCard.ContextMenu> |
118 |
| - <ContextMenu> |
119 |
| - <MenuItem Header="Copy name" |
120 |
| - Command="{Binding CopyNameCommand}" |
121 |
| - Icon="{LucideIconContent Copy, 16, 2}"/> |
122 |
| - <MenuItem Header="Copy control" |
123 |
| - Command="{Binding CopyControlCommand}" |
124 |
| - Icon="{LucideIconContent Copy, 16, 2}"/> |
125 |
| - <MenuItem Header="Copy content extension" |
126 |
| - Command="{Binding CopyExtensionCommand}" |
127 |
| - Icon="{LucideIconContent Copy, 16, 2}"/> |
128 |
| - <ContextMenu.Styles> |
129 |
| - <Style Selector="LucideIcon"> |
130 |
| - <Setter Property="StrokeWidth" Value="1.5"/> |
131 |
| - </Style> |
132 |
| - </ContextMenu.Styles> |
133 |
| - </ContextMenu> |
134 |
| - </suki:GlassCard.ContextMenu> |
135 |
| - |
136 |
| - </suki:GlassCard> |
137 |
| - </DataTemplate> |
138 |
| - </ItemsControl.ItemTemplate> |
139 |
| - <ItemsControl.ItemsPanel> |
140 |
| - <ItemsPanelTemplate> |
141 |
| - <WrapPanel/> |
142 |
| - </ItemsPanelTemplate> |
143 |
| - </ItemsControl.ItemsPanel> |
144 |
| - </ItemsControl> |
145 |
| - |
146 |
| - </ScrollViewer> |
| 108 | + <suki:BusyArea BusyText="Loading..." IsBusy="{Binding IsBusy}"> |
| 109 | + |
| 110 | + <ScrollViewer Margin="0 20 0 0"> |
| 111 | + |
| 112 | + <ItemsControl ItemsSource="{Binding Icons}"> |
| 113 | + <ItemsControl.ItemTemplate> |
| 114 | + <DataTemplate x:DataType="vm:IconViewModel"> |
| 115 | + <suki:GlassCard Margin="6" |
| 116 | + Padding="10" |
| 117 | + CornerRadius="8" |
| 118 | + Cursor="Hand" |
| 119 | + IsAnimated="False" |
| 120 | + ToolTip.Tip="{Binding Tip}"> |
| 121 | + |
| 122 | + <LucideIcon Kind="{Binding Kind}" |
| 123 | + Size="{Binding Size}" |
| 124 | + StrokeWidth="{Binding StrokeWidth}"/> |
| 125 | + |
| 126 | + <suki:GlassCard.ContextMenu> |
| 127 | + <ContextMenu> |
| 128 | + <MenuItem Header="Copy name" |
| 129 | + Command="{Binding CopyNameCommand}" |
| 130 | + Icon="{LucideIconContent Copy, 16, 2}"/> |
| 131 | + <MenuItem Header="Copy control" |
| 132 | + Command="{Binding CopyControlCommand}" |
| 133 | + Icon="{LucideIconContent Copy, 16, 2}"/> |
| 134 | + <MenuItem Header="Copy content extension" |
| 135 | + Command="{Binding CopyExtensionCommand}" |
| 136 | + Icon="{LucideIconContent Copy, 16, 2}"/> |
| 137 | + <ContextMenu.Styles> |
| 138 | + <Style Selector="LucideIcon"> |
| 139 | + <Setter Property="StrokeWidth" Value="1.5"/> |
| 140 | + </Style> |
| 141 | + </ContextMenu.Styles> |
| 142 | + </ContextMenu> |
| 143 | + </suki:GlassCard.ContextMenu> |
| 144 | + |
| 145 | + </suki:GlassCard> |
| 146 | + </DataTemplate> |
| 147 | + </ItemsControl.ItemTemplate> |
| 148 | + <ItemsControl.ItemsPanel> |
| 149 | + <ItemsPanelTemplate> |
| 150 | + <WrapPanel/> |
| 151 | + </ItemsPanelTemplate> |
| 152 | + </ItemsControl.ItemsPanel> |
| 153 | + </ItemsControl> |
| 154 | + |
| 155 | + </ScrollViewer> |
| 156 | + |
| 157 | + </suki:BusyArea> |
147 | 158 |
|
148 | 159 | </DockPanel>
|
149 | 160 |
|
|
0 commit comments