Jump to content

@Farshad - Theme font override. Why?


GerhardV

Recommended Posts

Farshad,

 

I am looking at the Triton theme, which I quite like as a base to work from, but I have noticed that the you override the font it actually distributes with (Open Sans) with Tahoma 12. It means all button related components like main menus for example only has that font even if you make the size of the button bigger to trigger medium and large fonts. I want the font to be driven by CSS. The Main Menu buttons look in particular very small. I also notice that you downsize the edit boxes for Triton and the Calendar looks quite different from the standard theme.

 

I know I can edit uni-xtheme-triton.css and removed those which then uses the actual fonts but I am not sure what effect that will have that I am not aware of.

 

I would expect it to take the theme as is and looks identical.

 

Any explanation for this?

 

 

Thanks.

 

BTW I have added the following to uni-xtheme-triton.css to center the triggers:

 

.x-form-trigger {
  vertical-align: middle;
}
 
P.S. If you can also see my question on this post:
Link to comment
Share on other sites

  • Administrators

Hi,

 

We have modified Triton theme in Build 1444. Now the standard "triton" theme doesn't change editor font. It is very similar to native Sencha Triton theme.

On the other hand, we have Triton modified theme which is adopted to be more compatible with VCL.

 

It is recommended to use standard trition.

Link to comment
Share on other sites

Thanks Farshad.

 

The only annoying thing is TMainMenu. The buttons are very small and it seems like the height is hard coded as the element.style property {height: 32px} is set, probably in code. Difficult to change as it seems .x-box-inner is also set at a fixed height of 20px.

Link to comment
Share on other sites

Seems we don't have the source code for uniMainMenu.pas.

 

Farshad can we perhaps make it more flexible and add a height property to TUniMainMenu which uniGUI can then use to set the element.style height property and the x-box-inner correspondingly? As well as a property for the button scale (small, medium and large).

Link to comment
Share on other sites

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...