Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No text showing in windows forms #99

Open
beauholland opened this issue Nov 1, 2022 · 1 comment
Open

No text showing in windows forms #99

beauholland opened this issue Nov 1, 2022 · 1 comment

Comments

@beauholland
Copy link

beauholland commented Nov 1, 2022

Similar to: #79

screenshot

Visual Studio 2022

Targeting .Net 6.0

Windows Forms

DiffPlex.Wpf 1.3.2

Tried modifying font, fore/back colors - no luck

Tested in another older project targeting .Net 4.6.1 - same behaviour

Repo replicating the issue here: https://github.com/beauholland/diffplexwinformstest

@beauholland
Copy link
Author

beauholland commented Nov 1, 2022

Finally figured it out.

Default ForeColor is Alpha'd out, set to: Color.FromArgb(0, 0, 0, 0) which is transparent.

Update the ForeColor to:

diffViewer1.ForeColor = Color.FromArgb(255, 0, 0, 0); OR

(0, 0, 0); in properties

Setting the .ForeColor is NOT enough given the other Fore Colors for things like Unchanged, Inserted etc are all set at (0, 0, 0, 0), and are still transparent

Therefore you need to update all the (0, 0, 0, 0) to at least (255, 0, 0, 0) or (0, 0, 0) - no alpha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant