Show warning icon on the azure devops work item field - azure-devops

We are developing an azure devops custom extension for boards, where we need to make some field as required based on some condition. We can display an error message and disable the save button, but how to show red color icon on that field??

According to your description, you needs to show red color icon on your custom field.
You could assign red color to a tag which can display an error message or just be a red color icon as the linked capture shows:
Assign a color to a tag
The following steps are:
1.Before setting tag colors, add tags to work items that you want to highlight with color that circled in red in the linked capture.
add tags to work items
2.From the Settings dialog, choose Tag colors and then choose the "+" plus icon to add a tag color. Then, name the tag as "!" and select the red color.
3.When done with your changes, choose Save.
Then you could show red color icon on your custom field.

Related

Change the text color only of selected text in Vs Code

I want to change the color of selected text only not the background so what is the way to do it because I am not getting anything to change the selected text only, I am getting solution to change the background but not the text.
Here I have attached one image in which I have selected editor but text color is still green so want the text color in black after selection so is there any way to change it.
Please let me know if you have any suggestion.
Unfortunately this is a long-time open bug in VS Code:
https://github.com/microsoft/vscode/issues/36490

Is there a more customizable way to create embedded hyperlinks?

I'm trying to create a generalized function/class that builds embedded hyperlinks. I am using an NSAttributedString with NSAttributedString.Key.link attribute and assigning a URL to the specified range. I can even specify multiple links within the body of text, with specific styles for the text. However the only caveat that I am seeing is that the highlighted state of the links have a grey background color. Is there a way to get rid of this background color, and on top of that assign a specified highlight state color for the link?
I am open to other means of creating the text and links, but I feel like NSAttributedString is the right means.
Again:
the body of text should be able to handle any number of links
each link can contain any number of words
the highlighted state shouldn't have a background color of grey, and be able to accept a specified color for a highlight state
the text should be able to wrap if needed

Change the border's color of a button in Unity3D

I began to work with Unity3D since one month and I'm trying to do an application which contains a menu, composed by a panel and several buttons. At this moment, I'm trying to customize the menu, I change the fill color of the panel and buttons, but until now I could not change the border color of the buttons. There is any way to customize the border's color of the UI buttons? I would appreciate your help. :)
The easiest way to add an outline to your button is to use the Outline component (doc).
Simply add the Outline component where your button image or text is. Then configure it how you like it :)
The above results in the following button:
No, you can not change just border color. If you use default buttons, take a look at Source image. It is basically a grey square with black borders. So when you change color of image black color remains black.
To customize buttons as you want you need either create nested UI elements:
or create sprites with colors you want and replace source image
I find nested UI elements to be the easiest way to do something like this. Simple example:
Start out by creating a panel and change the scale until you get the desired size for your button. This will be your "borders".
Next create another panel as a child of the panel you just made and change the scale to be just slightly smaller than your first panel and change the color.
In the Inspector for your panel, add component and type in Button and add it as a component.
Finally, add a text as a child of your panel for a label and you're done.

Adobe Acrobat Pro DC form textfield background gray color not going away

I have a form field text-field and I have set its fill color to no color, but it still shows background gray-ish color in the preview and also after saving the file. I want transparent/white background for the textfield so that reading the text in it can be easy.
Thanks in advance.
Go to Edit-Preferences-Forms and deselect "show border hover color for fields".

Change the color of object at runtime in opengles

I want to change the color of my object dynamically in OpenGLES.I put one button on the screen and whenever I click the button, it will show the color picker(Here I am using HUE color picker). And I want to apply that selected color to my object.As I am importing CPP class to colorpickerview class, it will giving the so many errors.Can any one help me out.