Skip to content

Commit

Permalink
Merge pull request #312 from leocb/orapps44-MaterialListView-text
Browse files Browse the repository at this point in the history
Fix MaterialListView text transparency
  • Loading branch information
orapps44 authored Nov 23, 2021
2 parents 4da2b9b + da72afe commit fb74371
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MaterialSkin/Controls/MaterialListView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ protected override void OnDrawColumnHeader(DrawListViewColumnHeaderEventArgs e)
NativeText.DrawTransparentText(
e.Header.Text,
SkinManager.getLogFontByType(MaterialSkinManager.fontType.Subtitle2),
Enabled ? SkinManager.TextHighEmphasisColor : SkinManager.TextDisabledOrHintColor,
Enabled ? SkinManager.TextHighEmphasisNoAlphaColor : SkinManager.TextDisabledOrHintColor,
new Point(e.Bounds.Location.X + PAD, e.Bounds.Location.Y),
new Size(e.Bounds.Size.Width - PAD * 2, e.Bounds.Size.Height),
NativeTextRenderer.TextAlignFlags.Left | NativeTextRenderer.TextAlignFlags.Middle);
Expand Down Expand Up @@ -139,7 +139,7 @@ protected override void OnDrawItem(DrawListViewItemEventArgs e)
NativeText.DrawTransparentText(
subItem.Text,
SkinManager.getLogFontByType(MaterialSkinManager.fontType.Body2),
Enabled ? SkinManager.TextHighEmphasisColor : SkinManager.TextDisabledOrHintColor,
Enabled ? SkinManager.TextHighEmphasisNoAlphaColor : SkinManager.TextDisabledOrHintColor,
new Point(subItem.Bounds.X + PAD, subItem.Bounds.Y),
new Size(subItem.Bounds.Width - PAD * 2, subItem.Bounds.Height),
NativeTextRenderer.TextAlignFlags.Left | NativeTextRenderer.TextAlignFlags.Middle);
Expand Down Expand Up @@ -212,4 +212,4 @@ protected override void OnBackColorChanged(EventArgs e)
BackColor = SkinManager.BackgroundColor;
}
}
}
}

0 comments on commit fb74371

Please sign in to comment.