Skip to content

Commit db427f2

Browse files
committed
better styling
1 parent 2f3ecf1 commit db427f2

File tree

1 file changed

+47
-4
lines changed

1 file changed

+47
-4
lines changed

src/cascadia/TerminalApp/TasksPaneContent.xaml

+47-4
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,55 @@
5858
HorizontalAlignment="Center"
5959
Fill="{ThemeResource SystemControlBackgroundBaseMediumBrush}"/>-->
6060
<Button Grid.Row="0"
61+
Grid.RowSpan="1"
6162
Grid.Column="0"
62-
Click="_runCommandButtonClicked">
63-
<FontIcon FontFamily="Segoe Fluent Icons, Segoe MDL2 Assets"
64-
FontSize="12"
65-
Glyph="&#xE768;" />
63+
Padding="3"
64+
VerticalAlignment="Bottom"
65+
Background="Transparent"
66+
BorderBrush="Transparent"
67+
Click="_runCommandButtonClicked"
68+
ToolTipService.ToolTip="Input this command">
69+
70+
<Button.Content>
71+
<FontIcon FontFamily="Segoe Fluent Icons, Segoe MDL2 Assets"
72+
FontSize="12"
73+
Glyph="&#xE768;" />
74+
</Button.Content>
75+
76+
<Button.Resources>
77+
<ResourceDictionary>
78+
<ResourceDictionary.ThemeDictionaries>
79+
<ResourceDictionary x:Key="Light">
80+
<SolidColorBrush x:Key="ButtonForegroundPointerOver"
81+
Color="{StaticResource SystemAccentColor}" />
82+
<SolidColorBrush x:Key="ButtonForegroundPressed"
83+
Color="{StaticResource SystemAccentColor}" />
84+
</ResourceDictionary>
85+
<ResourceDictionary x:Key="Dark">
86+
<SolidColorBrush x:Key="ButtonForegroundPointerOver"
87+
Color="{StaticResource SystemAccentColor}" />
88+
<SolidColorBrush x:Key="ButtonForegroundPressed"
89+
Color="{StaticResource SystemAccentColor}" />
90+
</ResourceDictionary>
91+
<ResourceDictionary x:Key="HighContrast">
92+
<SolidColorBrush x:Key="ButtonBackground"
93+
Color="{ThemeResource SystemColorButtonFaceColor}" />
94+
<SolidColorBrush x:Key="ButtonBackgroundPointerOver"
95+
Color="{ThemeResource SystemColorHighlightColor}" />
96+
<SolidColorBrush x:Key="ButtonBackgroundPressed"
97+
Color="{ThemeResource SystemColorHighlightColor}" />
98+
<SolidColorBrush x:Key="ButtonForeground"
99+
Color="{ThemeResource SystemColorButtonTextColor}" />
100+
<SolidColorBrush x:Key="ButtonForegroundPointerOver"
101+
Color="{ThemeResource SystemColorHighlightTextColor}" />
102+
<SolidColorBrush x:Key="ButtonForegroundPressed"
103+
Color="{ThemeResource SystemColorHighlightTextColor}" />
104+
</ResourceDictionary>
105+
</ResourceDictionary.ThemeDictionaries>
106+
</ResourceDictionary>
107+
</Button.Resources>
66108
</Button>
109+
67110
<TextBlock Grid.Column="1"
68111
Margin="12,6,0,0"
69112
Style="{ThemeResource BaseTextBlockStyle}"

0 commit comments

Comments
 (0)