|
103 | 103 |
|
104 | 104 | <TextBlock Classes="monospace"
|
105 | 105 | Text="{Binding Subject}"
|
106 |
| - Opacity="{Binding IsMerged, Converter={x:Static c:BoolConverters.HalfIfFalse}}" |
107 |
| - FontWeight="{Binding IsCurrentHead, Converter={x:Static c:BoolConverters.BoldIfTrue}}"/> |
| 106 | + Opacity="{Binding Opacity}" |
| 107 | + FontWeight="{Binding FontWeight}"/> |
108 | 108 | </StackPanel>
|
109 | 109 | </Border>
|
110 | 110 | </DataTemplate>
|
|
124 | 124 | VerticalAlignment="Center"
|
125 | 125 | IsHitTestVisible="False"
|
126 | 126 | User="{Binding Author}"
|
127 |
| - Opacity="{Binding IsMerged, Converter={x:Static c:BoolConverters.HalfIfFalse}}"/> |
| 127 | + Opacity="{Binding Opacity}"/> |
128 | 128 | <TextBlock Grid.Column="1"
|
129 | 129 | Classes="monospace"
|
130 | 130 | Text="{Binding Author.Name}"
|
131 | 131 | Margin="8,0,0,0"
|
132 |
| - Opacity="{Binding IsMerged, Converter={x:Static c:BoolConverters.HalfIfFalse}}" |
133 |
| - FontWeight="{Binding IsCurrentHead, Converter={x:Static c:BoolConverters.BoldIfTrue}}"/> |
| 132 | + Opacity="{Binding Opacity}" |
| 133 | + FontWeight="{Binding FontWeight}"/> |
134 | 134 | </Grid>
|
135 | 135 | </DataTemplate>
|
136 | 136 | </DataGridTemplateColumn.CellTemplate>
|
|
147 | 147 | Text="{Binding SHA, Converter={x:Static c:StringConverters.ToShortSHA}}"
|
148 | 148 | Margin="8,0"
|
149 | 149 | HorizontalAlignment="Center"
|
150 |
| - Opacity="{Binding IsMerged, Converter={x:Static c:BoolConverters.HalfIfFalse}}" |
151 |
| - FontWeight="{Binding IsCurrentHead, Converter={x:Static c:BoolConverters.BoldIfTrue}}"/> |
| 150 | + Opacity="{Binding Opacity}" |
| 151 | + FontWeight="{Binding FontWeight}"/> |
152 | 152 | </DataTemplate>
|
153 | 153 | </DataGridTemplateColumn.CellTemplate>
|
154 | 154 | </DataGridTemplateColumn>
|
|
169 | 169 | <v:CommitTimeTextBlock Classes="monospace"
|
170 | 170 | Margin="8,0"
|
171 | 171 | HorizontalAlignment="Center"
|
172 |
| - Opacity="{Binding IsMerged, Converter={x:Static c:BoolConverters.HalfIfFalse}}" |
173 |
| - FontWeight="{Binding IsCurrentHead, Converter={x:Static c:BoolConverters.BoldIfTrue}}" |
| 172 | + Opacity="{Binding Opacity}" |
| 173 | + FontWeight="{Binding FontWeight}" |
174 | 174 | Timestamp="{Binding CommitterTime}"
|
175 | 175 | ShowAsDateTime="{Binding Source={x:Static vm:Preference.Instance}, Path=!DisplayTimeAsPeriodInHistories}"/>
|
176 | 176 | </DataTemplate>
|
|
0 commit comments