Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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.

post-6052-0-74865100-1528697190_thumb.jpg

Posted

Maybe you wanted like this?:

function beforeInit(sender, config)
{
    config.fieldStyle = 'color: black; font-size: 14px; font-weight: bold;';
}
Posted

 

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?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...