Jump to content

UniTreeview (background) color (old issue #1016)


mierlp

Recommended Posts

16 hours ago, Boghos said:

I have tried the fixes here in the latest release and i cannot seem to get the JS script to make any difference!

Okay. Can you try this approach for now?

1. UniServerModule -> CustomCSS:

.customTreeView .x-grid-item {
    background-color: initial;
}

2.

procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  with UniTreeView1, UniTreeView1.JSInterface do
  begin
    JSConfig('cls', ['customTreeView']);
    JSConfig('bodyStyle', ['background-color:' + uniColor2Web(Color)]);
  end;
end;

3.

Uses ... , UniGUIJSUtils;

 

Link to comment
Share on other sites

Hi Sherzod

 

thank you for your prompt reply. i got my front end developers on the case and they fixed the issue with this in customerCSS:

 

.x-grid-item-container {
    background: #262d36;
}

.x-grid-item {
   background: initial;
}
                            
.x-grid-item:hover {
   background: #2d353D;
}

.x-tree-view {
    background: #262d36;
}

.x-panel-body {
    background: #262d36;
}
.x-grid-item-selected {
    background: #2d353D;
}   
 

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