Styles.xaml 4.51 KB
Newer Older
1 2 3 4
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:sys="clr-namespace:System;assembly=mscorlib"      
                    >
潘栩锋's avatar
潘栩锋 committed
5 6 7 8 9
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Converter/Dictionary_MyConv.xaml"/>
        <ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/Dictionary_MyStyle.xaml"/>
    </ResourceDictionary.MergedDictionaries>
    
10 11 12 13 14 15 16 17 18 19 20 21 22
    <SolidColorBrush x:Key="Color_title" Color="#FF464646"/>
    <SolidColorBrush x:Key="Color_unit" Color="#FF464646"/>
    <SolidColorBrush x:Key="Color_text" Color="#FF0b0b0b"/>
    <SolidColorBrush x:Key="Color_title_activity" Color="#FF008BE5"/>
    <SolidColorBrush x:Key="Color_text_activity" Color="#FF005083"/>


    <SolidColorBrush x:Key="Color_button1_b" Color="#FF008BE5"/>
    <SolidColorBrush x:Key="Color_button2_b" Color="#FF919191"/>
    <SolidColorBrush x:Key="Color_button_f" Color="#FFf1f1f1"/>
    <sys:Double x:Key="FontSize_title">18</sys:Double>
    <sys:Double x:Key="FontSize_unit">18</sys:Double>
    <sys:Double x:Key="FontSize_text">48</sys:Double>
潘栩锋's avatar
潘栩锋 committed
23 24
    
    
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
    <Style x:Key="TextBlockStyle_title" TargetType="TextBlock">
        <Setter Property="FontSize" Value="{StaticResource FontSize_title}"/>
        <Setter Property="Foreground" Value="{DynamicResource Color_title}"/>
    </Style>
    <Style x:Key="RunStyle_unit" TargetType="Run">
        <Setter Property="FontSize" Value="{StaticResource FontSize_unit}"/>
        <Setter Property="Foreground" Value="{DynamicResource Color_unit}"/>
    </Style>
    <Style x:Key="RunStyle_text" TargetType="Run">
        <Setter Property="FontSize" Value="{StaticResource FontSize_text}"/>
        <Setter Property="Foreground" Value="{DynamicResource Color_text}"/>
    </Style>
    <Style x:Key="TextBlockStyle_title_activity" TargetType="TextBlock">
        <Setter Property="FontSize" Value="{StaticResource FontSize_title}"/>
        <Setter Property="Foreground" Value="{DynamicResource Color_title_activity}"/>
    </Style>
    <Style x:Key="RunStyle_text_activity" TargetType="Run">
        <Setter Property="FontSize" Value="{StaticResource FontSize_text}"/>
        <Setter Property="Foreground" Value="{DynamicResource Color_text_activity}"/>
    </Style>

46
    <!--<Style x:Key="TextBlockStyle_FieldHeaderEditable" TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle_FieldHeaderEditable}">
潘栩锋's avatar
潘栩锋 committed
47 48 49 50 51 52 53 54 55
        <Setter Property="Foreground" Value="{StaticResource AccentBaseColorBrush}"/>
    </Style>

    <Style TargetType="TextBlock" x:Key="TextBlockStyle_FieldContent_mm" BasedOn="{StaticResource TextBlockStyle_FieldContent_mm}">
        <Setter Property="Foreground" Value="{StaticResource GrayBrush2}"/>
    </Style>
    <Style TargetType="TextBlock" x:Key="TextBlockStyle_FieldContent_mm_interval" BasedOn="{StaticResource TextBlockStyle_FieldContent_mm_interval}">
        <Setter Property="Foreground" Value="{StaticResource GrayBrush2}"/>
    </Style>
潘栩锋's avatar
潘栩锋 committed
56
    <Style TargetType="TextBlock" x:Key="TextBlockStyle_FieldContent" BasedOn="{StaticResource TextBlockStyle_FieldContent}">
潘栩锋's avatar
潘栩锋 committed
57
        <Setter Property="Foreground" Value="{StaticResource GrayBrush1}"/>
58
    </Style>-->
潘栩锋's avatar
潘栩锋 committed
59 60 61 62 63 64 65

    <Style x:Key="AccentedSquareButtonStyle2" TargetType="Button" BasedOn="{StaticResource AccentedSquareButtonStyle}">
        <Setter Property="FontSize" Value="18"/>
        <Setter Property="Width" Value="120"/>
        <Setter Property="Height" Value="40"/>
        <Setter Property="Margin" Value="5"/>
    </Style>
潘栩锋's avatar
潘栩锋 committed
66 67 68 69 70 71 72 73

    <Style x:Key="HeaderBroadTextStyle" TargetType="TextBlock">
        <Setter Property="FontSize" Value="35"/>
        <Setter Property="Foreground" Value="{StaticResource WhiteBrush}"/>
        <Setter Property="Background" Value="{StaticResource GrayBrush2}"/>
        <Setter Property="Margin" Value="3"/>
        <Setter Property="Padding" Value="7,0"/>
    </Style>
74 75 76 77 78 79 80 81 82 83
    <sys:Double x:Key="ViewboxH_fs25">34</sys:Double>
    <sys:Double x:Key="ViewboxW_fs25_00p0">57</sys:Double>
    <sys:Double x:Key="ViewboxW_fs25_0000">64</sys:Double>
    <sys:Double x:Key="ViewboxW_fs25_0000p0">85</sys:Double>

    <sys:Double x:Key="ViewboxH_fs35">48</sys:Double>
    <sys:Double x:Key="ViewboxW_fs35_00p0">71</sys:Double>
    <sys:Double x:Key="ViewboxW_fs35_000p0">88</sys:Double>
    <sys:Double x:Key="ViewboxW_fs35_0000">93</sys:Double>
    <sys:Double x:Key="ViewboxW_fs35_00000p0">121</sys:Double>
84
</ResourceDictionary>