|
13 | 13 | BorderBrush="{DynamicResource Brush.Border2}" |
14 | 14 | CornerRadius="4"> |
15 | 15 | <Grid RowDefinitions="*,24"> |
16 | | - <Grid Grid.Row="0"> |
| 16 | + <Grid Grid.Row="0"> |
17 | 17 | <v:CommitMessageTextBox x:Name="Editor" |
18 | | - Classes="no_border" |
| 18 | + Classes="no_border no_background" |
19 | 19 | CornerRadius="4,4,0,0" |
20 | 20 | Background="Transparent" |
21 | 21 | Text="{Binding #ThisControl.CommitMessage, Mode=TwoWay}" |
22 | 22 | Watermark="{DynamicResource Text.CommitMessageTextBox.Placeholder}" |
23 | 23 | SubjectGuideLength="{Binding Source={x:Static vm:Preferences.Instance}, Path=SubjectGuideLength, Mode=OneWay}" |
24 | | - FontSize="{Binding Source={x:Static vm:Preferences.Instance}, Path=EditorFontSize, Mode=OneWay}"/> |
25 | | - |
26 | | - <v:CommitMessageSubjectEndIndicator LineBrush="{DynamicResource Brush.Border2}" |
27 | | - FontFamily="{DynamicResource Fonts.Default}" |
28 | | - SubjectEndY="{Binding #Editor.SubjectEndY, Mode=OneWay}"/> |
| 24 | + GuideLineBrush="{DynamicResource Brush.Border2}" |
| 25 | + FontFamily="{DynamicResource Fonts.Monospace}"> |
| 26 | + <v:CommitMessageTextBox.Styles> |
| 27 | + <Style Selector="ContentPresenter"> |
| 28 | + <Setter Property="FontFamily" Value="{DynamicResource Fonts.Monospace}"/> |
| 29 | + </Style> |
| 30 | + </v:CommitMessageTextBox.Styles> |
| 31 | + </v:CommitMessageTextBox> |
29 | 32 |
|
30 | 33 | <Popup PlacementTarget="{Binding #Editor, Mode=OneWay}" |
31 | 34 | Placement="AnchorAndGravity" |
|
85 | 88 | BorderThickness="0,1,0,0" |
86 | 89 | BorderBrush="{DynamicResource Brush.Border2}" |
87 | 90 | CornerRadius="0,0,4,4"> |
88 | | - <Grid ColumnDefinitions="Auto,Auto,Auto,*" > |
| 91 | + <Grid ColumnDefinitions="Auto,Auto,Auto,*"> |
89 | 92 | <Button Grid.Column="0" |
90 | 93 | Classes="icon_button" |
91 | 94 | Width="28" |
|
119 | 122 | Margin="0,0,6,0" |
120 | 123 | HorizontalAlignment="Right" VerticalAlignment="Stretch" |
121 | 124 | Orientation="Horizontal"> |
122 | | - <Rectangle Width=".5" |
123 | | - Margin="8,0" |
124 | | - Fill="{DynamicResource Brush.Border2}" |
125 | | - HorizontalAlignment="Center" |
126 | | - VerticalAlignment="Stretch"/> |
127 | | - |
128 | | - <TextBlock Classes="info_label" |
129 | | - FontSize="13" |
130 | | - HorizontalAlignment="Left" |
131 | | - Text="{DynamicResource Text.CommitMessageTextBox.Column}"/> |
132 | | - <TextBlock Margin="8,0,0,0" |
133 | | - FontSize="11" |
134 | | - Text="{Binding #Editor.Column, Mode=OneWay}"/> |
135 | | - |
136 | | - <Rectangle Width=".5" |
137 | | - Margin="8,0" |
138 | | - Fill="{DynamicResource Brush.Border2}" |
139 | | - HorizontalAlignment="Center" |
140 | | - VerticalAlignment="Stretch"/> |
141 | | - |
142 | 125 | <TextBlock Classes="info_label" |
143 | 126 | FontSize="13" |
144 | 127 | HorizontalAlignment="Left" |
|
0 commit comments