Can I change theme elements in runtime

0
0

Hi,

Can I change theme elements in runtime?

I only need to change focus (current active control) indicator. It is too pale and thin (thin yellow box around text boxes, buttons, grid cells).

If yes, please publish some short demo code.

Thank you!

  • You must to post comments
0
0

Should I do anything else in my code?

Where I can see full properties list and values in order to know how to set each property and value.

Thank you!

  • You must to post comments
0
0

You can edit any of the theme, or simply add a mixin.theme file under the /Themes directory. Use this as an example. Name it Application.mixin.theme. It must be in /Themes.

{
 "name": "Application",

"colors": {
 "focusFrame": "red"
 },

"appearances": {
 "textbox": {
 "inherit": "textbox",
 "states": {
 "focused": {
 "styles": {
 "width": 3
 }
 }
 }
 },
 "button": {
 "inherit": "button",
 "states": {
 "focused": {
 "styles": {
 "width": 3
 }
 }
 }
 },
 "table-scroller/focus-indicator": {
 "states": {
 "default": {
 "styles": {
 "width": 3,
 "color": "focusFrame"
 }
 }
 }
 }
 }
}
  • mgmst
    • mgmst
    • Jun 18, 2018 - 7:54 am
    Thank you!
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.