123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484 |
- <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
- <!-- Design Token for subtool -->
- <Style x:Key="LinkToolbarTgb" TargetType="{x:Type ToggleButton}">
- <Setter Property="FocusVisualStyle" Value="{x:Null}" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ToggleButton}">
- <Border
- x:Name="border"
- Background="{TemplateBinding Panel.Background}"
- BorderBrush="{StaticResource color.field.border.norm}"
- BorderThickness="1"
- CornerRadius="{StaticResource border-radius.4}"
- SnapsToDevicePixels="True">
- <ContentPresenter
- x:Name="contentPresenter"
- Margin="{TemplateBinding Padding}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Content="{TemplateBinding Content}"
- ContentStringFormat="{TemplateBinding ContentStringFormat}"
- ContentTemplate="{TemplateBinding ContentTemplate}"
- Focusable="False"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="border" Property="BorderBrush" Value="{StaticResource color.field.border.focus}" />
- <!--<Setter TargetName="border" Property="Panel.Background" Value="{StaticResource color.field.border.focus}" />-->
- </Trigger>
- <Trigger Property="IsPressed" Value="True">
- <Setter TargetName="border" Property="BorderBrush" Value="{StaticResource color.field.border.focus}" />
- </Trigger>
- <Trigger Property="IsChecked" Value="True">
- <Setter TargetName="border" Property="BorderBrush" Value="{StaticResource color.field.border.focus}" />
- </Trigger>
- <Trigger Property="IsChecked" Value="False">
- <Setter TargetName="border" Property="BorderBrush" Value="{StaticResource color.field.border.norm}" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="border" Property="Panel.Background" Value="Transparent" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="SubToolbarTgb" TargetType="{x:Type ToggleButton}">
- <Setter Property="FocusVisualStyle" Value="{x:Null}" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Foreground" Value="{StaticResource color.icon.base.neutral.norm.lv1}" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ToggleButton}">
- <Border
- x:Name="border"
- Background="{TemplateBinding Panel.Background}"
- BorderBrush="{TemplateBinding Border.BorderBrush}"
- BorderThickness="{TemplateBinding Border.BorderThickness}"
- CornerRadius="{StaticResource border-radius.4}"
- SnapsToDevicePixels="True">
- <ContentPresenter
- x:Name="contentPresenter"
- Margin="{TemplateBinding Padding}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Content="{TemplateBinding Content}"
- ContentStringFormat="{TemplateBinding ContentStringFormat}"
- ContentTemplate="{TemplateBinding ContentTemplate}"
- Focusable="False"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="border" Property="Panel.Background" Value="{StaticResource color.item-state.hov.bg}" />
- </Trigger>
- <Trigger Property="IsPressed" Value="True">
- <Setter TargetName="border" Property="Panel.Background" Value="{StaticResource color.item-state.sel.bg.lv2}" />
- </Trigger>
- <Trigger Property="IsChecked" Value="True">
- <Setter TargetName="border" Property="Panel.Background" Value="{StaticResource color.item-state.sel.bg.lv2}" />
- <Setter Property="Foreground" Value="{StaticResource color.icon.base.neutral.sel}" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="border" Property="Panel.Background" Value="Transparent" />
- <Setter Property="Foreground" Value="{StaticResource color.sys.text.neutral.dis}" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="infoText1" TargetType="{x:Type ToggleButton}">
- <Setter Property="Background" Value="{StaticResource color.btn.sec.bg.norm}" />
- <Setter Property="Foreground" Value="{StaticResource color.btn.sec.text.def}" />
- <Setter Property="BorderBrush" Value="{StaticResource color.btn.sec.border-color}" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ToggleButton}">
- <Border
- x:Name="border"
- Background="{TemplateBinding Panel.Background}"
- BorderBrush="{TemplateBinding Border.BorderBrush}"
- BorderThickness="{TemplateBinding Border.BorderThickness}"
- CornerRadius="{StaticResource border-radius.4}"
- SnapsToDevicePixels="True">
- <Grid
- x:Name="grid"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
- <StackPanel x:Name="state1" Visibility="Collapsed">
- <Rectangle
- Width="14"
- Height="1.5"
- HorizontalAlignment="Left"
- Fill="#252629" />
- <Rectangle
- Width="8"
- Height="1.5"
- Margin="0,2.5"
- HorizontalAlignment="Left"
- Fill="#252629" />
- <Rectangle
- Width="14"
- Height="1.5"
- Margin="0,0,0,2.5"
- HorizontalAlignment="Left"
- Fill="#252629" />
- <Rectangle
- Width="8"
- Height="1.5"
- HorizontalAlignment="Left"
- Fill="#252629" />
- </StackPanel>
- <StackPanel
- x:Name="state2"
- HorizontalAlignment="Center"
- VerticalAlignment="Center">
- <Rectangle
- Width="14"
- Height="1.5"
- HorizontalAlignment="Left"
- Fill="#616469" />
- <Rectangle
- Width="8"
- Height="1.5"
- Margin="0,2.5"
- HorizontalAlignment="Left"
- Fill="#616469" />
- <Rectangle
- Width="14"
- Height="1.5"
- Margin="0,0,0,2.5"
- HorizontalAlignment="Left"
- Fill="#616469" />
- <Rectangle
- Width="8"
- Height="1.5"
- HorizontalAlignment="Left"
- Fill="#616469" />
- </StackPanel>
- </Grid>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="state2" Property="Visibility" Value="Visible" />
- <Setter TargetName="state1" Property="Visibility" Value="Collapsed" />
- <Setter TargetName="border" Property="Background" Value="#EDEEF0" />
- </Trigger>
- <Trigger Property="IsChecked" Value="True">
- <Setter TargetName="state1" Property="Visibility" Value="Visible" />
- <Setter TargetName="state2" Property="Visibility" Value="Collapsed" />
- <Setter TargetName="border" Property="Background" Value="#CED0D4" />
- <!--<Setter TargetName="border" Property="BorderBrush" Value="{StaticResource color.btn.sec.border-color}" />
- <Setter TargetName="border" Property="BorderThickness" Value="{StaticResource border-width.1}" />-->
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="state1" Property="Visibility" Value="Collapsed" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="infoText2" TargetType="{x:Type ToggleButton}">
- <Setter Property="Background" Value="{StaticResource color.btn.sec.bg.norm}" />
- <Setter Property="Foreground" Value="{StaticResource color.btn.sec.text.def}" />
- <Setter Property="BorderBrush" Value="{StaticResource color.btn.sec.border-color}" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ToggleButton}">
- <Border
- x:Name="border"
- Background="{TemplateBinding Panel.Background}"
- BorderBrush="{TemplateBinding Border.BorderBrush}"
- BorderThickness="{TemplateBinding Border.BorderThickness}"
- CornerRadius="{StaticResource border-radius.4}"
- SnapsToDevicePixels="True">
- <Grid
- x:Name="grid"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
- <StackPanel x:Name="state1" Visibility="Collapsed">
- <Rectangle
- Width="14"
- Height="1.5"
- HorizontalAlignment="Center"
- Fill="#252629" />
- <Rectangle
- Width="8"
- Height="1.5"
- Margin="0,2.5"
- HorizontalAlignment="Center"
- Fill="#252629" />
- <Rectangle
- Width="14"
- Height="1.5"
- Margin="0,0,0,2.5"
- HorizontalAlignment="Center"
- Fill="#252629" />
- <Rectangle
- Width="8"
- Height="1.5"
- HorizontalAlignment="Center"
- Fill="#252629" />
- </StackPanel>
- <StackPanel
- x:Name="state2"
- HorizontalAlignment="Center"
- VerticalAlignment="Center">
- <Rectangle
- Width="14"
- Height="1.5"
- HorizontalAlignment="Center"
- Fill="#616469" />
- <Rectangle
- Width="8"
- Height="1.5"
- Margin="0,2.5"
- HorizontalAlignment="Center"
- Fill="#616469" />
- <Rectangle
- Width="14"
- Height="1.5"
- Margin="0,0,0,2.5"
- HorizontalAlignment="Center"
- Fill="#616469" />
- <Rectangle
- Width="8"
- Height="1.5"
- HorizontalAlignment="Center"
- Fill="#616469" />
- </StackPanel>
- </Grid>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="state2" Property="Visibility" Value="Visible" />
- <Setter TargetName="state1" Property="Visibility" Value="Collapsed" />
- <Setter TargetName="border" Property="Background" Value="#EDEEF0" />
- </Trigger>
- <Trigger Property="IsChecked" Value="True">
- <Setter TargetName="state1" Property="Visibility" Value="Visible" />
- <Setter TargetName="state2" Property="Visibility" Value="Collapsed" />
- <Setter TargetName="border" Property="Background" Value="#CED0D4" />
- <!--<Setter TargetName="border" Property="BorderBrush" Value="{StaticResource color.btn.sec.border-color}" />
- <Setter TargetName="border" Property="BorderThickness" Value="{StaticResource border-width.1}" />-->
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="state1" Property="Visibility" Value="Collapsed" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="infoText3" TargetType="{x:Type ToggleButton}">
- <Setter Property="Background" Value="{StaticResource color.btn.sec.bg.norm}" />
- <Setter Property="Foreground" Value="{StaticResource color.btn.sec.text.def}" />
- <Setter Property="BorderBrush" Value="{StaticResource color.btn.sec.border-color}" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="HorizontalAlignment" Value="Center" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ToggleButton}">
- <Border
- x:Name="border"
- Background="{TemplateBinding Panel.Background}"
- BorderBrush="{TemplateBinding Border.BorderBrush}"
- BorderThickness="{TemplateBinding Border.BorderThickness}"
- CornerRadius="{StaticResource border-radius.4}"
- SnapsToDevicePixels="True">
- <Grid
- x:Name="grid"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
- <StackPanel
- x:Name="state1"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Visibility="Collapsed">
- <Rectangle
- Width="14"
- Height="1.5"
- HorizontalAlignment="Right"
- Fill="#252629" />
- <Rectangle
- Width="8"
- Height="1.5"
- Margin="0,2.5"
- HorizontalAlignment="Right"
- Fill="#252629" />
- <Rectangle
- Width="14"
- Height="1.5"
- Margin="0,0,0,2.5"
- HorizontalAlignment="Right"
- Fill="#252629" />
- <Rectangle
- Width="8"
- Height="1.5"
- HorizontalAlignment="Right"
- Fill="#252629" />
- </StackPanel>
- <StackPanel
- x:Name="state2"
- HorizontalAlignment="Center"
- VerticalAlignment="Center">
- <Rectangle
- Width="14"
- Height="1.5"
- HorizontalAlignment="Right"
- Fill="#616469" />
- <Rectangle
- Width="8"
- Height="1.5"
- Margin="0,2.5"
- HorizontalAlignment="Right"
- Fill="#616469" />
- <Rectangle
- Width="14"
- Height="1.5"
- Margin="0,0,0,2.5"
- HorizontalAlignment="Right"
- Fill="#616469" />
- <Rectangle
- Width="8"
- Height="1.5"
- HorizontalAlignment="Right"
- Fill="#616469" />
- </StackPanel>
- </Grid>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="state2" Property="Visibility" Value="Visible" />
- <Setter TargetName="state1" Property="Visibility" Value="Collapsed" />
- <Setter TargetName="border" Property="Background" Value="#EDEEF0" />
- </Trigger>
- <Trigger Property="IsChecked" Value="True">
- <Setter TargetName="state1" Property="Visibility" Value="Visible" />
- <Setter TargetName="state2" Property="Visibility" Value="Collapsed" />
- <Setter TargetName="border" Property="Background" Value="#CED0D4" />
- <!--<Setter TargetName="border" Property="BorderBrush" Value="{StaticResource color.btn.sec.border-color}" />
- <Setter TargetName="border" Property="BorderThickness" Value="{StaticResource border-width.1}" />-->
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="state1" Property="Visibility" Value="Collapsed" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="infoText4" TargetType="{x:Type ToggleButton}">
- <Setter Property="Background" Value="{StaticResource color.btn.sec.bg.norm}" />
- <Setter Property="Foreground" Value="{StaticResource color.btn.sec.text.def}" />
- <Setter Property="BorderBrush" Value="{StaticResource color.btn.sec.border-color}" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ToggleButton}">
- <Border
- x:Name="border"
- Background="{TemplateBinding Panel.Background}"
- BorderBrush="{TemplateBinding Border.BorderBrush}"
- BorderThickness="{TemplateBinding Border.BorderThickness}"
- CornerRadius="{StaticResource border-radius.4}"
- SnapsToDevicePixels="True">
- <Grid
- x:Name="grid"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
- <StackPanel x:Name="state1" Visibility="Collapsed">
- <Rectangle
- Width="14"
- Height="1.5"
- HorizontalAlignment="Center"
- Fill="#252629" />
- <Rectangle
- Width="14"
- Height="1.5"
- Margin="0,2.5"
- HorizontalAlignment="Center"
- Fill="#252629" />
- <Rectangle
- Width="14"
- Height="1.5"
- Margin="0,0,0,2.5"
- HorizontalAlignment="Center"
- Fill="#252629" />
- <Rectangle
- Width="14"
- Height="1.5"
- HorizontalAlignment="Center"
- Fill="#252629" />
- </StackPanel>
- <StackPanel
- x:Name="state2"
- HorizontalAlignment="Center"
- VerticalAlignment="Center">
- <Rectangle
- Width="14"
- Height="1.5"
- HorizontalAlignment="Center"
- Fill="#616469" />
- <Rectangle
- Width="14"
- Height="1.5"
- Margin="0,2.5"
- HorizontalAlignment="Center"
- Fill="#616469" />
- <Rectangle
- Width="14"
- Height="1.5"
- Margin="0,0,0,2.5"
- HorizontalAlignment="Center"
- Fill="#616469" />
- <Rectangle
- Width="14"
- Height="1.5"
- HorizontalAlignment="Center"
- Fill="#616469" />
- </StackPanel>
- </Grid>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="state2" Property="Visibility" Value="Visible" />
- <Setter TargetName="state1" Property="Visibility" Value="Collapsed" />
- <Setter TargetName="border" Property="Background" Value="#EDEEF0" />
- </Trigger>
- <Trigger Property="IsChecked" Value="True">
- <Setter TargetName="state1" Property="Visibility" Value="Visible" />
- <Setter TargetName="state2" Property="Visibility" Value="Collapsed" />
- <Setter TargetName="border" Property="Background" Value="#CED0D4" />
- <!--<Setter TargetName="border" Property="BorderBrush" Value="{StaticResource color.btn.sec.border-color}" />
- <Setter TargetName="border" Property="BorderThickness" Value="{StaticResource border-width.1}" />-->
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="state1" Property="Visibility" Value="Collapsed" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </ResourceDictionary>
|