powergov Posted May 2, 2021 Share Posted May 2, 2021 There are some CSS files in the folder C:\ program files (x86)\ fmsoft\ framework\ unigui\ uni-1.90.0.1547\ CSS. The height of some objects is set in ".Unigui_theme {}". For example: .Unigui_theme { border-left-width: 6px; border-bottom-width: 6px; window-header-height: 28px; tab-header-height: 29px; menu-band-height: 29px; panel-header-height: 27px; panel-header-width: 27px; } I modified it to a new value, but it didn't run according to the new value. What's the correct way? Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted May 2, 2021 Share Posted May 2, 2021 2 hours ago, powergov said: There are some CSS files in the folder C:\ program files (x86)\ fmsoft\ framework\ unigui\ uni-1.90.0.1547\ CSS. The height of some objects is set in ".Unigui_theme {}". For example: .Unigui_theme { border-left-width: 6px; border-bottom-width: 6px; window-header-height: 28px; tab-header-height: 29px; menu-band-height: 29px; panel-header-height: 27px; panel-header-width: 27px; } I modified it to a new value, but it didn't run according to the new value. What's the correct way? Hello Create a custom css and add it into uniservermodule.customcss Then set component's layoutconfig.Cls Quote Link to comment Share on other sites More sharing options...
powergov Posted May 2, 2021 Author Share Posted May 2, 2021 23 minutes ago, Hayri ASLAN said: Hello Create a custom css and add it into uniservermodule.customcss Then set component's layoutconfig.Cls Is there no other way? It's too much trouble to set every component Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 2, 2021 Share Posted May 2, 2021 13 hours ago, powergov said: Is there no other way? It's too much trouble to set every component Hello, For which components? You can also use this event: procedure TUniMainModule.UniGUIMainModuleNewComponent(AComponent: TComponent); begin end; Quote Link to comment Share on other sites More sharing options...
powergov Posted May 3, 2021 Author Share Posted May 3, 2021 9 hours ago, Sherzod said: Hello, For which components? You can also use this event: procedure TUniMainModule.UniGUIMainModuleNewComponent(AComponent: TComponent); begin end; Thank you very much. Could you give me a simple example .Unigui_theme { border-left-width: 6px; border-bottom-width: 6px; window-header-height: 28px; tab-header-height: 29px; menu-band-height: 29px; panel-header-height: 27px; panel-header-width: 27px; } Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 3, 2021 Share Posted May 3, 2021 3 hours ago, powergov said: Could you give me a simple example Hello, Can you try analyze this post? Quote Link to comment Share on other sites More sharing options...
powergov Posted May 3, 2021 Author Share Posted May 3, 2021 30 minutes ago, Sherzod said: Hello, Can you try analyze this post? If there is an example, I can follow it I want to set tab-header-height: 40px; and set grid row height:36px how to do ? thank you very much! Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 3, 2021 Share Posted May 3, 2021 4 minutes ago, powergov said: I want to set tab-header-height: 40px; and set grid row height:36px Hello, For which component? Quote Link to comment Share on other sites More sharing options...
powergov Posted May 3, 2021 Author Share Posted May 3, 2021 2 minutes ago, Sherzod said: Hello, For which component? pagecontrol dbgrid thank you Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 3, 2021 Share Posted May 3, 2021 Okay, Were you able to achieve what you wanted for one component, for example? Quote Link to comment Share on other sites More sharing options...
powergov Posted May 3, 2021 Author Share Posted May 3, 2021 2 minutes ago, Sherzod said: Okay, Were you able to achieve what you wanted for one component, for example? I want to set 1、all pagecontrol 's header height 2、all dbgrid‘s row height Quote Link to comment Share on other sites More sharing options...
irigsoft Posted May 3, 2021 Share Posted May 3, 2021 2 hours ago, powergov said: 2、all dbgrid‘s row height Please use this for all dbgrid in Your custom css: .x-grid-item { height: 200px; } Quote Link to comment Share on other sites More sharing options...
fraxzi Posted May 4, 2021 Share Posted May 4, 2021 Hi All, Is there any reference document related to CSS for dbGrid (or particular component)? I'm a newbie but I am eager in creating/customizing my dbGrid (or other uniGUI component like Panel). It will help me well if I know where to look. get easy on me Quote Link to comment Share on other sites More sharing options...
irigsoft Posted May 4, 2021 Share Posted May 4, 2021 5 hours ago, fraxzi said: Hi All, Is there any reference document related to CSS for dbGrid (or particular component)? I'm a newbie but I am eager in creating/customizing my dbGrid (or other uniGUI component like Panel). It will help me well if I know where to look. get easy on me Hello, For all cases I use Google chrome console and search for what i need. I didn't find any documentations for css. Quote Link to comment Share on other sites More sharing options...
fraxzi Posted May 6, 2021 Share Posted May 6, 2021 On 5/4/2021 at 1:44 PM, irigsoft said: Hello, For all cases I use Google chrome console and search for what i need. I didn't find any documentations for css. Hi, Thanks for pointing this out.. I slowly absorbing the use of CSS in dbGrid.. I can change a few element now. Quote Link to comment Share on other sites More sharing options...
irigsoft Posted May 6, 2021 Share Posted May 6, 2021 57 minutes ago, fraxzi said: Hi, Thanks for pointing this out.. I slowly absorbing the use of CSS in dbGrid.. I can change a few element now. Hello, In the Google Console we can see how much work has been done by the uniGUI team. Searching the Google console, we can find many things that will help us from css to security. 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.