Closed EpicNet closed 2 years ago
Some of these features are already present
xdid -C dname id +t $rgb(...) set text colour. xdid -C dname id +k $rgb(...) set text background colour. xdid -C dname id +b $rgb(...) set background colour. xdid -C dname id +g $rgb(...) set start of gradient colours. (for background when vgradient or hgradient styles used) xdid -C dname id +G $rgb(...) set end of gradient colours.
Yes, really this it works, but only when the style is set notheme
, which I did not take into account in the test. Nevertheless, this does not help to paint the checkbox (square) itself in different colors and to make all the decorations that I described above.
In addition, if you apply this control style to elements that are inside the "Box" as children, then this looks very different. Obviously, there are still many errors, so this needs a revision of the entire code of the class and a deep modernization.
By the way, to solve the change in the color and appearance of the checkmark ☑ inside the square, I would suggest adding to the command the ability to set the path to your own images with a transparent background in the "PNG" extension.
So I continue to await the release of the update, to run new tests 😎
In addition (as a bonus), it would be nice to be able to customize size of the square "CheckBox" in pixels, in case a different, larger font will be used, or if the default size seems too small, when creating own design for the menu. And it would also be logical that all color settings could be changed on the fly using commands, using the "/dcx Mark" callback events to create custom effects in the control.
checkbox colours added.
I am using "mIRC v7.66" + "DCX dll v3.1-git394" in system "Windows 8.1 x64".
In the process testing, I encountered a number of disadvantages of this control when using dark background colors to create my own dialog design. The light gray standard background and black text simply do not fit into the dark colors, which makes this tool useless when designing design a dialog. It upsets the impossibility of adjusting the color for most things. In addition, the gradient does not work correctly, most likely it is not needed here, and when the dialog is resized, all controls start blinking.
My proposals for what needs to be corrected and added in "CheckBox", to make it maximally functional and beautiful:
+dhns
flags (or something similar) to change colors on hover or mouse click.multi
for to support multi-line text.P.S. Perhaps I did not take into account something, forgot to mention or lost sight of what else needs to be done, or on the contrary, made a request about something useless, or maybe after that you have new interesting ideas, therefore, in order to avoid misunderstandings expressed in multiple corrections and rewriting of the code - we can always preliminarily think about this update and discuss in detail the innovations in the chat, so that this control becomes versatile enough, functional, maximally customizable and suitable for any design, in a own peculiar style. Thanks.
On the left is how it looks now, and on the right is how it could be after the update:
Here is a test piece of script to reproduce this the problem. To run the script click on "F5" or enter the command "/check_test":