Skip to content

Commit

Permalink
Merge pull request #505 from irihitech/semi
Browse files Browse the repository at this point in the history
Utilize InnerIconThem in Semi
  • Loading branch information
zdpcdt authored Dec 10, 2024
2 parents 370c0d6 + 91b02a8 commit a8891cf
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 19 deletions.
2 changes: 1 addition & 1 deletion demo/Ursa.Demo/Ursa.Demo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="$(AvaloniaVersion)" />
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.0" />
<PackageReference Include="Semi.Avalonia" Version="11.2.1" />
<PackageReference Include="Semi.Avalonia" Version="11.2.1.1" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/Ursa.Themes.Semi/Controls/DatePicker.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<Button
Name="ClearButton"
Grid.Column="1"
Padding="0,0,8,0"
Margin="8,0"
Command="{Binding $parent[u:DatePicker].Clear}"
Content="{DynamicResource IconButtonClearData}"
Focusable="False"
Expand All @@ -60,7 +60,7 @@
<Button
Name="PART_Button"
Grid.Column="1"
Padding="0,0,8,0"
Margin="8,0"
IsVisible="{Binding !#ClearButton.IsVisible}"
Content="{DynamicResource CalendarDatePickerIconGlyph}"
Focusable="False"
Expand Down
4 changes: 2 additions & 2 deletions src/Ursa.Themes.Semi/Controls/DateRangePicker.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<Button
Name="ClearButton"
Grid.Column="3"
Padding="8,0"
Margin="8,0"
Command="{Binding $parent[u:DateRangePicker].Clear}"
Content="{DynamicResource IconButtonClearData}"
Focusable="False"
Expand All @@ -67,7 +67,7 @@
<Button
Name="{x:Static u:DateRangePicker.PART_Button}"
Grid.Column="3"
Padding="8,0"
Margin="8,0"
Content="{DynamicResource CalendarDatePickerIconGlyph}"
Focusable="False"
IsVisible="{Binding !#ClearButton.IsVisible}"
Expand Down
4 changes: 2 additions & 2 deletions src/Ursa.Themes.Semi/Controls/DateTimePicker.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<Button
Name="ClearButton"
Grid.Column="1"
Padding="0,0,8,0"
Margin="8 0"
Command="{Binding $parent[u:DateTimePicker].Clear}"
Content="{DynamicResource IconButtonClearData}"
Focusable="False"
Expand All @@ -59,7 +59,7 @@
<Button
Name="PART_Button"
Grid.Column="1"
Padding="0,0,8,0"
Margin="8 0"
IsVisible="{Binding !#ClearButton.IsVisible}"
Content="{DynamicResource DateTimePickerGlyph}"
Focusable="False"
Expand Down
3 changes: 1 addition & 2 deletions src/Ursa.Themes.Semi/Controls/KeyGestureInput.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
Text="{TemplateBinding Gesture,
Converter={StaticResource KeyGestureConverter}}" />
<Button Grid.Column="0" Grid.ColumnSpan="3"
<Button Grid.Column="1"
Name="PART_ClearButton"
Margin="0,0,8,0"
HorizontalAlignment="Right"
Command="{Binding $parent[u:KeyGestureInput].Clear}"
Content="{DynamicResource IconButtonClearData}"
Expand Down
11 changes: 5 additions & 6 deletions src/Ursa.Themes.Semi/Controls/MultiComboBox.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="{TemplateBinding CornerRadius}">
<Grid Name="PART_RootGrid" ColumnDefinitions="Auto, *, Auto, Auto, 32">
<Grid Name="PART_RootGrid" ColumnDefinitions="Auto, *, Auto, Auto, Auto">
<Border
Name="{x:Static u:MultiComboBox.PART_BackgroundBorder}"
Grid.Column="0"
Expand Down Expand Up @@ -84,19 +84,17 @@
<PathIcon
x:Name="DropDownGlyph"
Grid.Column="4"
Width="12"
Height="12"
Margin="0,0,10,0"
HorizontalAlignment="Right"
VerticalAlignment="Center"
IsVisible="{Binding #ClearButton.IsVisible, Converter={x:Static BoolConverters.Not}}"
Theme="{DynamicResource InnerPathIcon}"
Width="{DynamicResource ComboBoxIconWidth}"
Data="{DynamicResource ComboBoxIcon}"
Foreground="{DynamicResource ComboBoxIconDefaultForeground}"
IsHitTestVisible="False"
UseLayoutRounding="False" />
<Button
Name="ClearButton"
Grid.Column="4"
Width="{DynamicResource ComboBoxIconWidth}"
Command="{Binding $parent[u:MultiComboBox].Clear}"
Content="{DynamicResource IconButtonClearData}"
IsVisible="False"
Expand Down Expand Up @@ -232,6 +230,7 @@
Grid.Column="0"
Width="{DynamicResource CheckBoxBoxGlyphWidth}"
Height="{DynamicResource CheckBoxBoxGlyphHeight}"
Theme="{DynamicResource InnerPathIcon}"
Margin="8,0"
VerticalAlignment="Center"
Data="{DynamicResource CheckBoxCheckGlyph}"
Expand Down
7 changes: 3 additions & 4 deletions src/Ursa.Themes.Semi/Controls/TreeComboBox.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
<Button
Name="PART_ClearButton"
Grid.Column="3"
Margin="0,0,8,0"
Margin="8 0"
Command="{Binding $parent[u:TreeComboBox].Clear}"
Content="{DynamicResource IconButtonClearData}"
IsVisible="False"
Expand All @@ -88,11 +88,10 @@
<PathIcon
x:Name="DropDownGlyph"
Grid.Column="3"
Width="12"
Height="12"
Margin="0,0,12,0"
Margin="8 0"
HorizontalAlignment="Right"
VerticalAlignment="Center"
Theme="{DynamicResource InnerPathIcon}"
Data="{DynamicResource ComboBoxIcon}"
Foreground="{DynamicResource ComboBoxIconDefaultForeground}"
IsHitTestVisible="True"
Expand Down

0 comments on commit a8891cf

Please sign in to comment.