<commit_before><UserControl xmlns="https://github.com/avaloniaui"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             x:Class="ControlCatalog.Pages.ButtonsPage">

  <UserControl.Resources>

    <MenuFlyout x:Key="SharedMenuFlyout"
                Placement="Bottom">
      <MenuItem Header="Item 1">
        <MenuItem Header="Subitem 1" />
        <MenuItem Header="Subitem 2" />
        <MenuItem Header="Subitem 3" />
      </MenuItem>
      <MenuItem Header="Item 2"
                InputGesture="Ctrl+A" />
      <MenuItem Header="Item 3" />
    </MenuFlyout>

  </UserControl.Resources>
      
  <UserControl.Styles >

    <Style Selector="Border.header-border">
      <Setter Property="Background">
        <Setter.Value>
          <SolidColorBrush Color="Gray" Opacity="0.5" />
        </Setter.Value>
      </Setter>
      <Setter Property="BorderBrush" Value="Gray" />
      <Setter Property="BorderThickness" Value="0.5" />
      <Setter Property="CornerRadius" Value="5,5,0,0" />
      <Setter Property="MaxWidth" Value="450" />
      <Setter Property="Padding" Value="10" />
    </Style>
    
    <Style Selector="TextBlock.header">
      <Setter Property="FontSize" Value="18" />
      <Setter Property="FontWeight" Value="Bold" />
    </Style>

    <Style Selector="Border.thin">
      <Setter Property="BorderBrush" Value="Gray" />
      <Setter Property="BorderThickness" Value="0.5" />
      <Setter Property="CornerRadius" Value="0,0,5,5" />
      <Setter Property="Margin" Value="0,0,0,15" />
    </Style>

  </UserControl.Styles>

  <!-- Styles and overall page design based on AcrylicPage -->

  <StackPanel Orientation="Vertical"
              Width="450">

    <!-- Button -->
    <Border Classes="header-border">
      <StackPanel Orientation="Vertical"
                  Spacing="4">
        <TextBlock Text="Button" Classes="header" />
        <TextBlock TextWrapping="Wrap">A standard button control</TextBlock>
      </StackPanel>
    </Border>

    <Border Classes="thin"
            Padding="15">
      <StackPanel Orientation="Horizontal"
                  HorizontalAlignment="Center"
                  Spacing="10">
        <StackPanel Orientation="Vertical"
                    Spacing="8"
                    Width="200">
          <Button>Standard _XAML Button</Button>
          <Button Foreground="White">Foreground</Button>
          <Button Background="{DynamicResource SystemAccentColor}">Background</Button>
          <Button IsEnabled="False">Disabled</Button>
          <Button Content="Re-themed">
            <Button.Styles>
              <Style>
                <Style.Resources>
                  <SolidColorBrush x:Key="ThemeBorderMidBrush">Red</SolidColorBrush>
                  <SolidColorBrush x:Key="ThemeControlHighBrush">DarkRed</SolidColorBrush>
                  <SolidColorBrush x:Key="ButtonBorderBrush">Red</SolidColorBrush>
                  <SolidColorBrush x:Key="ButtonBackground">DarkRed</SolidColorBrush>
                  <SolidColorBrush x:Key="ButtonBackgroundPointerOver">Red</SolidColorBrush>
                  <SolidColorBrush x:Key="ButtonBackgroundPressed">OrangeRed</SolidColorBrush>
                  <SolidColorBrush x:Key="ButtonForeground">White</SolidColorBrush>
                  <SolidColorBrush x:Key="ButtonForegroundPointerOver">Black</SolidColorBrush>
                  <SolidColorBrush x:Key="ButtonForegroundPressed">Black</SolidColorBrush>
                </Style.Resources>
              </Style>
            </Button.Styles>
          </Button>
        </StackPanel>

        <StackPanel Orientation="Vertical"
                    Spacing="8"
                    Width="200">
          <Button BorderThickness="0">No Border</Button>
          <Button BorderBrush="{DynamicResource SystemAccentColor}">Border Color</Button>
          <Button BorderBrush="{DynamicResource SystemAccentColor}"<commit_msg>Add accent button to control catalog.<commit_after><UserControl xmlns="https://github.com/avaloniaui"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             x:Class="ControlCatalog.Pages.ButtonsPage">

  <UserControl.Resources>

    <MenuFlyout x:Key="SharedMenuFlyout"
                Placement="Bottom">
      <MenuItem Header="Item 1">
        <MenuItem Header="Subitem 1" />
        <MenuItem Header="Subitem 2" />
        <MenuItem Header="Subitem 3" />
      </MenuItem>
      <MenuItem Header="Item 2"
                InputGesture="Ctrl+A" />
      <MenuItem Header="Item 3" />
    </MenuFlyout>

  </UserControl.Resources>
      
  <UserControl.Styles >

    <Style Selector="Border.header-border">
      <Setter Property="Background">
        <Setter.Value>
          <SolidColorBrush Color="Gray" Opacity="0.5" />
        </Setter.Value>
      </Setter>
      <Setter Property="BorderBrush" Value="Gray" />
      <Setter Property="BorderThickness" Value="0.5" />
      <Setter Property="CornerRadius" Value="5,5,0,0" />
      <Setter Property="MaxWidth" Value="450" />
      <Setter Property="Padding" Value="10" />
    </Style>
    
    <Style Selector="TextBlock.header">
      <Setter Property="FontSize" Value="18" />
      <Setter Property="FontWeight" Value="Bold" />
    </Style>

    <Style Selector="Border.thin">
      <Setter Property="BorderBrush" Value="Gray" />
      <Setter Property="BorderThickness" Value="0.5" />
      <Setter Property="CornerRadius" Value="0,0,5,5" />
      <Setter Property="Margin" Value="0,0,0,15" />
    </Style>

  </UserControl.Styles>

  <!-- Styles and overall page design based on AcrylicPage -->

  <StackPanel Orientation="Vertical"
              Width="450">

    <!-- Button -->
    <Border Classes="header-border">
      <StackPanel Orientation="Vertical"
                  Spacing="4">
        <TextBlock Text="Button" Classes="header" />
        <TextBlock TextWrapping="Wrap">A standard button control</TextBlock>
      </StackPanel>
    </Border>

    <Border Classes="thin"
            Padding="15">
      <StackPanel Orientation="Horizontal"
                  HorizontalAlignment="Center"
                  Spacing="10">
        <StackPanel Orientation="Vertical"
                    Spacing="8"
                    Width="200">
          <Button>Standard _XAML Button</Button>
          <Button Foreground="White">Foreground</Button>
          <Button Background="{DynamicResource SystemAccentColor}">Background</Button>
          <Button IsEnabled="False">Disabled</Button>
          <Button Content="Re-themed">
            <Button.Styles>
              <Style>
                <Style.Resources>
                  <SolidColorBrush x:Key="ThemeBorderMidBrush">Red</SolidColorBrush>
                  <SolidColorBrush x:Key="ThemeControlHighBrush">DarkRed</SolidColorBrush>
                  <SolidColorBrush x:Key="ButtonBorderBrush">Red</SolidColorBrush>
                  <SolidColorBrush x:Key="ButtonBackground">DarkRed</SolidColorBrush>
                  <SolidColorBrush x:Key="ButtonBackgroundPointerOver">Red</SolidColorBrush>
                  <SolidColorBrush x:Key="ButtonBackgroundPressed">OrangeRed</SolidColorBrush>
                  <SolidColorBrush x:Key="ButtonForeground">White</SolidColorBrush>
                  <SolidColorBrush x:Key="ButtonForegroundPointerOver">Black</SolidColorBrush>
                  <SolidColorBrush x:Key="ButtonForegroundPressed">Black</SolidColorBrush>
                </Style.Resources>
              </Style>
            </Button.Styles>
          </Button>
          <Button Classes="accent">Accent</Button>
        </StackPanel>

        <StackPanel Orientation="Vertical"
                    Spacing="8"
                    Width="200">
          <Button BorderThickness="0">No Border</Button>
          <Button BorderBrush="{DynamicResource SystemAccentColor}">Border Color</Button>
          <Button BorderBrush="{DynamicResource SystemAccentColor}"
{'fraction_non_alphanumeric': 0.13470521398813282, 'fraction_numerical': 0.013382148718596137, 'mean_word_length': 2.471516213847502, 'pattern_counts': {'":': 0, '<': 185, '<?xml version=': 0, '>': 183, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5554516', 'n_tokens_mistral': 2373, 'n_tokens_neox': 2089, 'n_words': 350}