| 1 | <UserControl xmlns="https://github.com/avaloniaui" |
| 2 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 3 | x:Class="CascadeIDE.Views.UiKit.EcamSoftKeyBar" |
| 4 | x:Name="Root" |
| 5 | x:CompileBindings="False"> |
| 6 | <UserControl.Styles> |
| 7 | <!-- ECAM-ish softkey: flat, outlined, green text; subtle hover. --> |
| 8 | <Style Selector="Button.ecamSoftKey"> |
| 9 | <Setter Property="Background" Value="Transparent"/> |
| 10 | <Setter Property="BorderBrush" Value="#00FF6A"/> |
| 11 | <Setter Property="BorderThickness" Value="1"/> |
| 12 | <Setter Property="CornerRadius" Value="2"/> |
| 13 | <Setter Property="Foreground" Value="#00FF6A"/> |
| 14 | <Setter Property="FontSize" Value="11"/> |
| 15 | <Setter Property="FontWeight" Value="SemiBold"/> |
| 16 | <Setter Property="Padding" Value="12,6"/> |
| 17 | <Setter Property="MinWidth" Value="96"/> |
| 18 | </Style> |
| 19 | <Style Selector="Button.ecamSoftKey:pointerover"> |
| 20 | <Setter Property="Background" Value="#112018"/> |
| 21 | </Style> |
| 22 | <Style Selector="Button.ecamSoftKey:pressed"> |
| 23 | <Setter Property="Background" Value="#163020"/> |
| 24 | </Style> |
| 25 | <Style Selector="Button.ecamSoftKey:disabled"> |
| 26 | <Setter Property="Opacity" Value="0.45"/> |
| 27 | </Style> |
| 28 | </UserControl.Styles> |
| 29 | <StackPanel Orientation="Horizontal" |
| 30 | Spacing="8" |
| 31 | HorizontalAlignment="Left"> |
| 32 | <Button Content="{Binding Button1Text, ElementName=Root}" |
| 33 | Command="{Binding Button1Command, ElementName=Root}" |
| 34 | Classes="ecamSoftKey"/> |
| 35 | <Button Content="{Binding Button2Text, ElementName=Root}" |
| 36 | Command="{Binding Button2Command, ElementName=Root}" |
| 37 | Classes="ecamSoftKey"/> |
| 38 | <Button Content="{Binding Button3Text, ElementName=Root}" |
| 39 | Click="OnButton3Click" |
| 40 | Classes="ecamSoftKey"/> |
| 41 | </StackPanel> |
| 42 | </UserControl> |
| 43 | |
| 44 | |