GerhardV Posted March 21, 2018 Share Posted March 21, 2018 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: http://forums.unigui.com/index.php?/topic/10239-custom-theme-selection-at-design-time/ Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted March 21, 2018 Administrators Share Posted March 21, 2018 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. Quote Link to comment Share on other sites More sharing options...
GerhardV Posted March 22, 2018 Author Share Posted March 22, 2018 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. Quote Link to comment Share on other sites More sharing options...
GerhardV Posted March 22, 2018 Author Share Posted March 22, 2018 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). 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.