-
-
Notifications
You must be signed in to change notification settings - Fork 345
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
Allow selection of text in mod info panel #2610
Conversation
Changed MetadataModuleName, MetadataIdentifier and MetadataModuleAuthor labels to textboxes so you can copy the text
Which version/commit did you test @yalov? The first one with I'm not sure if it is needed to have the version number, the license or the release status as a textbox. I can't image that someone wants to copy that text. But for the sake of everything being the same, it would make sense indeed. |
|
Ooooookay, I got it now, really: See: I begin to assume this might be a mono implementation bug? Nevertheless, either we go the complex way and set the background color of the labels during runtime with OS checks, or we just change all labels in the right column to textboxes, so at least they have the same colors. That would solve @yalov's request to. |
It's not a bug, just different styles of tabstrips. Mono's is how tabs looked in Windows 98. Can you check what value |
On Windows it throws the following error:
-> The control element does not support transparent backgrounds.
|
Hmm, apparently the TextBox has some https://stackoverflow.com/questions/16050249/transparency-for-windows-forms-textbox |
Created partial class TransparentTextBox : TextBox in mainModInfo.Designer.cs to be able to have a transparent background
Moved TransparentTextBox to new file and changed the other labels to textboxes too
Feature request
#2591 asked for the ability to select and copy the text out of some labels in the mod info panel.
This was not possible because you cant copy text out of labels.
Changes
I changed the mod name (at the top), the mod author and the mod identifier label to not-editable textboxes with the same background and text color as the labels had before. Also I removed the per standard in textboxes activated border, so they are seamless.

They look like the labels before (in dark and in white themes, at least with mono on Kubuntu), but now you can copy text.
Some pics:
Important
I directly manipulated the
MainModInfo.Designer.cs
in MonoDevelop, and as far as I know, Visual Studio doesn't really like this, so someone using VS should verify whether VS complains/changes something back by itself or not.I also renamed the comments inside the Designer.cs for this, but you never know.
Closes #2591