ldb68 Posted April 22, 2018 Share Posted April 22, 2018 Color of modern theme can be symple changed with global tag. How I can set this in unigui? Here instruction https://www.sencha.com/blog/material-and-css-variables-in-ext-js-6-2/ Fashion.css.setVariables({"base-color-name": "blue","accent-color-name": "orange"}); where put this ??? Also See: https://www.sencha.com/blog/materializing-the-ext-js-modern-toolkit/ Simply change your $base-color-name and Fashion will handle recalculations and set the proper CSS variables At runtime we can set dark-mode via CSS variable dark-mode .. PS: In file /m/ext-6.5.3/build/modern/theme-material/resources/theme-material-all_2.css I found root{--dark-mode:true;--base-color: but change base-color here has not effect 1 Link to comment Share on other sites More sharing options...
picyka Posted June 11, 2022 Share Posted June 11, 2022 Em 22/04/2018 às 13h55, ldb68 disse: A cor do tema moderno pode ser trocada com tag global. Como posso colocar isso em unigui? Aqui instrução https://www.sencha.com/blog/material-and-css-variables-in-ext-js-6-2/ Moda. Css. setVariáveis ({ "base-color-name": "azul", "nome da cor do sotaque": "laranja" }); onde colocar esta ??? Veja também: https://www.sencha.com/blog/materializing-the-ext-js-modern-toolkit/ Basta alterar seu nome de $base cores e a Moda lidará com recálculos e definirá as variáveis CSS adequadas Na hora do execução, podemos definir o modo escuro através do modo escuro variável CSS .. PS: Em arquivo /m/ext-6.5.3/build/modern/theme-material/resources/theme-material-all_2.css Encontrei o modo raiz{--escuro:true;--base-cor: mas mudar a cor da base aqui não tem efeito Hello, you can change the color based on the css variables. example: --dark-mode = true Link to comment Share on other sites More sharing options...
Recommended Posts