Skip to content

Commit 8264403

Browse files
committed
fix calendar picker style
1 parent 6fce369 commit 8264403

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

GitContentSearch.UI/App.axaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,5 +165,52 @@
165165
<Style Selector="ProgressBar">
166166
<Setter Property="Background" Value="#2A2B2F"/>
167167
</Style>
168+
169+
<!-- CalendarDatePicker Styles -->
170+
<Style Selector="CalendarDatePicker">
171+
<Setter Property="Background" Value="#2A2B2F"/>
172+
<Setter Property="Foreground" Value="White"/>
173+
<Setter Property="BorderThickness" Value="1"/>
174+
<Setter Property="BorderBrush" Value="#3A3B3F"/>
175+
<Setter Property="CornerRadius" Value="8"/>
176+
<Setter Property="Padding" Value="12,8"/>
177+
</Style>
178+
179+
<Style Selector="CalendarDatePicker:focus">
180+
<Setter Property="Background" Value="#1A1B1F"/>
181+
<Setter Property="BorderBrush" Value="#00A3D9"/>
182+
</Style>
183+
184+
<Style Selector="CalendarDatePicker:pointerover">
185+
<Setter Property="Background" Value="#3A3B3F"/>
186+
</Style>
187+
188+
<Style Selector="CalendarDatePicker:focus:pointerover">
189+
<Setter Property="Background" Value="#1A1B1F"/>
190+
</Style>
191+
192+
<Style Selector="CalendarDatePicker /template/ Button#PART_Button">
193+
<Setter Property="Width" Value="32"/>
194+
<Setter Property="Height" Value="32"/>
195+
<Setter Property="Background" Value="Transparent"/>
196+
<Setter Property="Template">
197+
<ControlTemplate>
198+
<Border Background="Transparent"
199+
BorderThickness="0"
200+
CornerRadius="4"
201+
Width="32"
202+
Height="32">
203+
<PathIcon Data="M9,10H7V12H9V10M13,10H11V12H13V10M17,10H15V12H17V10M19,3H18V1H16V3H8V1H6V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M19,19H5V8H19V19Z"
204+
Width="16"
205+
Height="16"
206+
Foreground="#CCCCCC"/>
207+
</Border>
208+
</ControlTemplate>
209+
</Setter>
210+
</Style>
211+
212+
<Style Selector="CalendarDatePicker:focus /template/ Button#PART_Button /template/ PathIcon">
213+
<Setter Property="Foreground" Value="#00A3D9"/>
214+
</Style>
168215
</Application.Styles>
169216
</Application>

0 commit comments

Comments
 (0)