Angular material theming - angular-material

I am new in to the angular material.
I want to change a theme when a user click on one of the two available options:
1] Dark Theme
2] Light Theme
So when user select Dark Theme / Light Theme then it will change component color(mat-card, mat-toolbar, mat-sidenav-container etc.) as well as font color.

For those looking for the solution, check
this post regarding
switching themes on the fly in general and the stackblitz
implementation of the same
here.
Also shows that it works with mat-card as asked in this question.

Related

Delphi 11.2, IOS, and Dark mode

In my IOS app, I have some components that use custom styles. When run in IOS's Light mode, the components appear correctly. However, when run under Dark mode on the IOS device, the colors of the "text" properties of the custom styles are not being "flipped".
The text properties of those styles are using the TText and TActiveStyleTextObject components. The custom styles are either for the TTreeViewItem or TListBoxItem components, but not sure if the problem is limited to those components only, as I do not use custom styles for other components.
All the the text properties for the custom styles use the same colors as the default styles. I did add a "IOS13 Dark" style to the Style book and flipped the colors within the style hoping that was the problem. But I have confirmed that the app is using the IOS styles regardless of the Light/Dark mode, and not the IOS13 Dark styles.
So it appears the Delphi logic is not flipping any text colors for styles set up in a Style Book when switching between the IOS's Light and Dark modes.
Anyone else seen this problem and had success in fixing it?

Which color palette is used by radio buttons

I am trying to change color of radio button and ink ripple. Overriding individual CSS selectors is painful and error prone. I don't even want to add "md-primary" or "md-accent" classes to my radio buttons across my app. I would like to override default theme. I scavenged documentation and searched Google, SO, Angular Material GitHub and demo page but could not find answer to simple question:
Which color palette of default theme is used by radio buttons?
After a little experiment I figured out that accent palette is used by radio buttons.
There is vague indication at the end on Material Theme introduction page (https://material.angularjs.org/latest/Theming/01_introduction) that states that accent palette is used by "secondary interface elements"; however there is no documentation that states that radio buttons are secondary interface elements.
Update:
API documentation of Radio button mentions that it uses accent color.
https://material.angularjs.org/latest/api/directive/mdRadioGroup

What are the jquery ui themes?

Strangely, I can't find any examples of the themes for the JQuery UI. UI Lightness, UI Darkness, Smoothness, Start, Redmond, Sunny, Overcast, Le Frog, etc. are options displayed in the dropdown menu on http://jqueryui.com/download/. I'd like to know if there's a place on the web that defines what these themes are. It would help me choose the most suitable theme for my website.
you can use the theme roller http://jqueryui.com/themeroller/ and select "Gallery", then click any theme you are interested to see how it look.

Transparency & runtime themes

When runtime themes are disabled for whole project, transparent images are drawn with black background. Is it possible to draw transparent image on button when runtime themes are disabled? The button I am using is from TMS Component Pack, its class name is TAdvToolButton. I need to have themes disabled because I want to fully control how application looks like. This is important request.
Please try to explain the connection between transparency & themes because I don't see it. I think these are two different things.

Applying custom color to jquery ui-icons

I am new to jQuery. I want to use the "ui-icon ui-icon-triangle-1-e" with a color that matches my application ,also I dont want use a differnt .png file with the color I want. Please help me get this done.
Your best option is to use a different PNG file, that's the only option for this really (that works cross-browser). However it's pretty easy to get the color you want, use the jQuery UI ThemeRoller and you can configure/download the exact colors you want in a theme, including the icons.

Resources