MarBar77 Posted June 8, 2018 Share Posted June 8, 2018 Hi, I want to set style for font with TUniEdit using customCSS (in Trinton theme Text is too light I think). I am trying to do it over 2 hours but sill with no positive results: .x-form-text-default { color: rgb(0, 0, 0) !important; font-weight: initial !important; } If I edit this style settings with Chrome Developer Tools everything works fine, but from CustomCSS it doesn't. Can someone help? Marcin Quote Link to comment Share on other sites More sharing options...
Freeman35 Posted June 8, 2018 Share Posted June 8, 2018 .x-form-text-default -> .MyEditcssName add this css to you edit. function beforeInit(sender, config){ sender.inputCls='MyEditcssName'; } Quote Link to comment Share on other sites More sharing options...
MarBar77 Posted June 11, 2018 Author Share Posted June 11, 2018 Hi, I was always doing class assign in afterCreate event so I checked also beforeInit as you suggested but it still doesn't work I use build 1.10.0.1464 with triton theme. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 11, 2018 Share Posted June 11, 2018 Hi, Sorry, can you explain your issue in more details? Better by making a simple testcase if possible Best regards, Quote Link to comment Share on other sites More sharing options...
MarBar77 Posted June 11, 2018 Author Share Posted June 11, 2018 I want to change edits and comboboxes have black more visible font. I cannot change it using customCSS. I have tried using global classes .x-form-text-default and my own class .myclass .x-form-text-default. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 11, 2018 Share Posted June 11, 2018 Maybe you wanted like this?: function beforeInit(sender, config) { config.fieldStyle = 'color: black; font-size: 14px; font-weight: bold;'; } Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 11, 2018 Share Posted June 11, 2018 Or by using fieldCls config for this ? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 11, 2018 Share Posted June 11, 2018 Or, simply by using Font property for this Quote Link to comment Share on other sites More sharing options...
MarBar77 Posted June 11, 2018 Author Share Posted June 11, 2018 Maybe you wanted like this?: function beforeInit(sender, config) { config.fieldStyle = 'color: black; font-size: 14px; font-weight: bold;'; } It works. Thank you Delphi Developer. BTW why it is not working when I declare my class and change by CustomCSS class .x-form-text-default? Is theme override CustomCSS settings? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.