Jump to content

What's the right way?


powergov

Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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;

 

Link to comment
Share on other sites

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;

}

Link to comment
Share on other sites

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 :D

Link to comment
Share on other sites

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 :D

Hello,

For all cases I use Google chrome console and search for what i need. I didn't find any documentations for css. 

Link to comment
Share on other sites

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.

:) 

Link to comment
Share on other sites

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.

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