Skip to content

Commit

Permalink
Fix colors.
Browse files Browse the repository at this point in the history
  • Loading branch information
clovett committed Feb 21, 2022
1 parent d2af4a5 commit b58e56c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Source/WPF/MyMoney/MyMoney.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -907,10 +907,10 @@
<ItemGroup>
<PublishFile Include="Setup\changes.xml">
<Visible>False</Visible>
<Group></Group>
<TargetPath></TargetPath>
<PublishState>Include</PublishState>
<IncludeHash>True</IncludeHash>
<Group></Group>
<TargetPath></TargetPath>
<FileType>File</FileType>
</PublishFile>
</ItemGroup>
Expand Down
4 changes: 3 additions & 1 deletion Source/WPF/MyMoney/Setup/ChangeInfoFormatter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,10 @@ public void Generate(IReportWriter writer)
string trimmed = line.Trim();
if (!string.IsNullOrEmpty(trimmed))
{
string brush = found ? "ListItemForegroundBrush" : "ListItemSelectedForegroundBrush";
FlowDocumentReportWriter fwriter = (FlowDocumentReportWriter)writer;
Paragraph p = fwriter.WriteParagraph(trimmed, FontStyles.Normal, FontWeights.Normal, found ? Brushes.Gray : Brushes.Black, null);
Paragraph p = fwriter.WriteParagraph(trimmed, FontStyles.Normal, FontWeights.Normal,
AppTheme.Instance.GetThemedBrush(brush), null);
p.TextIndent = 20;
p.Margin = new Thickness(0);
p.Padding = new Thickness(0);
Expand Down

0 comments on commit b58e56c

Please sign in to comment.