Skip to content

Commit

Permalink
some popup background
Browse files Browse the repository at this point in the history
  • Loading branch information
kikipoulet committed Jun 1, 2024
1 parent 4df54dd commit 1c47caf
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SukiUI/ColorTheme/Light.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<LinearGradientBrush x:Key="PopupGradientBrush" StartPoint="0%,0%" EndPoint="100%,100%">
<GradientStop Color="{DynamicResource SukiAccentColor3}" Offset="0"></GradientStop>
<GradientStop Color="{DynamicResource SukiPrimaryColor5}" Offset="1"></GradientStop>
<GradientStop Color="{DynamicResource SukiPrimaryColor3}" Offset="1"></GradientStop>

</LinearGradientBrush>

Expand Down
3 changes: 2 additions & 1 deletion SukiUI/Theme/AutoCompleteBoxStyles.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,15 @@
BorderThickness="1,1,1,1"
BoxShadow="{DynamicResource SukiPopupShadow}"
CornerRadius="{DynamicResource SmallCornerRadius}">

<Panel Background="{DynamicResource PopupGradientBrush}">
<ListBox Name="PART_SelectingItemsControl"
Background="{TemplateBinding Background}"
BorderThickness="0"
Foreground="{TemplateBinding Foreground}"
ItemTemplate="{TemplateBinding ItemTemplate}"
ScrollViewer.HorizontalScrollBarVisibility="Auto"
ScrollViewer.VerticalScrollBarVisibility="Auto" />
</Panel>
</Border>
</Panel>
</Border>
Expand Down
2 changes: 2 additions & 0 deletions SukiUI/Theme/ContextMenu.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@
BorderThickness="{TemplateBinding BorderThickness}"
ClipToBounds="True"
CornerRadius="{TemplateBinding CornerRadius}">
<Panel Background="{DynamicResource PopupGradientBrush}">
<ItemsPresenter Name="PART_ItemsPresenter"
HorizontalAlignment="Left"
VerticalAlignment="Center"
ItemsPanel="{TemplateBinding ItemsPanel}"
KeyboardNavigation.TabNavigation="Continue" />
</Panel>
</Border>
</Panel>
</LayoutTransformControl>
Expand Down
2 changes: 2 additions & 0 deletions SukiUI/Theme/Menu.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,13 @@
BoxShadow="{DynamicResource SukiPopupShadow}"
ClipToBounds="True"
CornerRadius="6">
<Panel Background="{DynamicResource PopupGradientBrush}">
<ScrollViewer>
<ItemsPresenter Name="PART_ItemsPresenter"
Grid.IsSharedSizeScope="True"
ItemsPanel="{TemplateBinding ItemsPanel}" />
</ScrollViewer>
</Panel>
</Border>
</Grid>
</LayoutTransformControl>
Expand Down
2 changes: 2 additions & 0 deletions SukiUI/Theme/MenuItem.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,11 @@
BoxShadow="{DynamicResource SukiPopupShadow}"
ClipToBounds="True"
CornerRadius="5">
<Panel Background="{DynamicResource PopupGradientBrush}">
<ScrollViewer>
<ItemsPresenter Name="PART_ItemsPresenter" ItemsPanel="{TemplateBinding ItemsPanel}" />
</ScrollViewer>
</Panel>
</Border>
</Panel>
</LayoutTransformControl>
Expand Down

0 comments on commit 1c47caf

Please sign in to comment.