|
103 | 103 |
|
104 | 104 | <DataGridTemplateColumn.CellTemplate>
|
105 | 105 | <DataTemplate DataType="m:Commit">
|
106 |
| - <Border Padding="{Binding Margin}" ClipToBounds="True" Background="Transparent"> |
| 106 | + <Border Padding="{Binding LeftMargin, Converter={x:Static c:DoubleConverters.ToLeftMargin}}" ClipToBounds="True" Background="Transparent"> |
107 | 107 | <Grid ColumnDefinitions="Auto,Auto,Auto,*" Margin="2,0,4,0" ClipToBounds="True">
|
108 | 108 | <v:CommitStatusIndicator Grid.Column="0"
|
109 | 109 | CurrentBranch="{Binding $parent[v:Histories].CurrentBranch}"
|
|
140 | 140 | LinkForeground="{DynamicResource Brush.Link}"
|
141 | 141 | Subject="{Binding Subject}"
|
142 | 142 | IssueTrackers="{Binding $parent[v:Histories].IssueTrackers}"
|
143 |
| - FontWeight="{Binding FontWeight}" |
144 |
| - Opacity="{Binding Opacity}"/> |
| 143 | + FontWeight="{Binding IsCurrentHead, Converter={x:Static c:BoolConverters.IsBoldToFontWeight}}" |
| 144 | + Opacity="{Binding IsMerged, Converter={x:Static c:BoolConverters.IsMergedToOpacity}}"/> |
145 | 145 | </Grid>
|
146 | 146 | </Border>
|
147 | 147 | </DataTemplate>
|
|
167 | 167 | HorizontalAlignment="Left"
|
168 | 168 | VerticalAlignment="Center"
|
169 | 169 | User="{Binding Author}"
|
170 |
| - Opacity="{Binding Opacity}" |
| 170 | + Opacity="{Binding IsMerged, Converter={x:Static c:BoolConverters.IsMergedToOpacity}}" |
171 | 171 | IsHitTestVisible="False"/>
|
172 | 172 |
|
173 | 173 | <Border Grid.Column="1" Padding="8,0,4,0" ClipToBounds="True">
|
174 | 174 | <TextBlock Classes="primary"
|
175 | 175 | Text="{Binding Author.Name}"
|
176 |
| - FontWeight="{Binding FontWeight}" |
177 |
| - HorizontalAlignment="Left" |
178 |
| - Opacity="{Binding Opacity}"/> |
| 176 | + FontWeight="{Binding IsCurrentHead, Converter={x:Static c:BoolConverters.IsBoldToFontWeight}}" |
| 177 | + Opacity="{Binding IsMerged, Converter={x:Static c:BoolConverters.IsMergedToOpacity}}" |
| 178 | + HorizontalAlignment="Left"/> |
179 | 179 | </Border>
|
180 | 180 | </Grid>
|
181 | 181 | </DataTemplate>
|
|
192 | 192 | <Border Padding="8,0,0,0" Background="Transparent" ClipToBounds="True">
|
193 | 193 | <TextBlock Classes="primary"
|
194 | 194 | Text="{Binding SHA, Converter={x:Static c:StringConverters.ToShortSHA}}"
|
195 |
| - FontWeight="{Binding FontWeight}" |
196 |
| - Opacity="{Binding Opacity}"/> |
| 195 | + FontWeight="{Binding IsCurrentHead, Converter={x:Static c:BoolConverters.IsBoldToFontWeight}}" |
| 196 | + Opacity="{Binding IsMerged, Converter={x:Static c:BoolConverters.IsMergedToOpacity}}"/> |
197 | 197 | </Border>
|
198 | 198 | </DataTemplate>
|
199 | 199 | </DataGridTemplateColumn.CellTemplate>
|
|
217 | 217 | <DataTemplate DataType="m:Commit">
|
218 | 218 | <Border Padding="8,0" Background="Transparent" ClipToBounds="True">
|
219 | 219 | <v:CommitTimeTextBlock Classes="primary"
|
220 |
| - FontWeight="{Binding FontWeight}" |
221 |
| - Opacity="{Binding Opacity}" |
| 220 | + FontWeight="{Binding IsCurrentHead, Converter={x:Static c:BoolConverters.IsBoldToFontWeight}}" |
| 221 | + Opacity="{Binding IsMerged, Converter={x:Static c:BoolConverters.IsMergedToOpacity}}" |
222 | 222 | UseAuthorTime="{Binding Source={x:Static vm:Preferences.Instance}, Path=ShowAuthorTimeInGraph, Mode=OneWay}"
|
223 | 223 | ShowAsDateTime="{Binding Source={x:Static vm:Preferences.Instance}, Path=!DisplayTimeAsPeriodInHistories}"
|
224 | 224 | DateTimeFormat="{Binding Source={x:Static vm:Preferences.Instance}, Path=DateTimeFormat}"/>
|
|
0 commit comments