Prevent Kendo controls from highlighting required fields in red - kendo-ui-angular2

I would like to know how avoid the kendo controls have a border in red color when lost focus because I want to show them in red when the user click on save button.
Examplecode

Related

Ribbon Icon Doesn't Reverse with Black Theme

I'm adding a new ribbon item to a custom ribbon in my Excel workbook using Office RibbonX Editor. The callbacks are all set up, and the image is a 64x64 png file with a transparent background. As you can see, the images all reverse when switching between white and black theme, with the exception of the first one. I can't see anything different between the first image file and the rest, and can't find any reference to image reversal for ribbon icons so wanted to ask here.
This is the ribbon using white theme:
And here is the same ribbon, using Black theme:
As you can see, apart from the first icon, the four right hand icons have all reversed from black on white and red on black to white on black and red on white.
This is the image file for the icon which has been loaded into the editor:
Here is the Xml for the first ribbon 'button', which structurally matches every other 'button' on the ribbon:

JideTabbedPane close button color

I am using JideTabbedPane and i have the close button displayed using the following:
myTabbedPane.setShowCloseButtonOnTab(true);
The problem is my tabbedpane's theme is a dark color and the "X" close button is an "X" which is black in color. The color of my tabs are set using the "ColorProvider", but i don't see anything in the documentation mentioning changing the color of the close button.
That property set in BasicJideTabbedPaneUI :
protected Color _closeButtonSelectedColor;
protected Color _closeButtonColor;
If you want change color of this button you should set new Color via UIDefaults or modify existing code in https://www.javatips.net/api/jide-oss-master/src/com/jidesoft/swing/JideTabbedPane.java

Get correct text color on custom task pane

I am currently building a Excel addin with a custom task pane.
The background color respects the selected theme, i.e. it is Dark Gray when that Office theme has been selected.
However, the text of labels is not. It is still black even with the Dark Gray theme, meaning it is barely readable.
Is there a way to get the correct text color from Office based on the selected theme? If not, how else would you fix that?

Button border issue in LWUIT

I have created button without any border using LWUIT resource editor. I am able to see that button with all my properties set. However, when i am trying to add an image into this button using its image constructor, i am able to see a thick border around my image. I tried changing the button into Label, still image is coming. Please help.
Have you set the button border type as Empty on ResourceEdit? If not, set the button border type as Empty for selected and unselected style on ResourceEdit. It should work.

LWUIT: tabs - how to mark the currently selected tab

I have 4 tabs. Each tab is represented by a button. Those buttons are used to select the currently displayed tab. Each button has an icon and text.
I'd like to highlight the currently selected tab by changing background color and text label color of the corresponding button. I'd like to do it using Theme and Resource Editor.
I created theme and specified unselected, selected and pressed styles for UIID "Tab". My tabs look great in Sun WTK! Fine! But I found that on a real phone the tabs always look like unselected. I tried on Nokia 5800 XPressMusic and C7. Why the difference?
After some experiments I found out the reason - the buttons may be only in 2 states: unselected and pressed. They never be in the selected state. On the emulator when I move to a button using navi keys, it becomes selected.
So, what should I do to mark the current tab?
You can use a few different approaches especially in 1.5.
LWUIT 1.5 has a Tabs component which pretty much does everything for you and is remarkably flexible.
It uses radio buttons on which the method setToggleButton(true) is invoked. Toggle buttons act like radio buttons so when you press a button in the group it stays pressed and is rendered using the ToggleButton style (you can set the UIID to whatever you want). See a sample of using toggle buttons in the font demo portion of LWUIT demo.
An option that will work for older versions of LWUIT is to just set the UIID of the button to a different value when it is pressed (and restore the UIID of the previously selected button to the original value).
I implemented what I needed. Thanks to Shai and his example.
I didn't use theme properties and made all customizations in the code. I did so because I didn't catch how setting unique UIID can help me, since the problem is not in the identifying the UIID for which the props have to be changed, but in identifying the button's style to be changed.
Below some important notes of my solution.
Call addActionListener for the buttons AFTER they have added to the tabs.
When any tab button is pressed, update UNSELECTED styles of the tab buttons. Also you can change their icons.
Call form's repaint() after step 2.

Resources