Jump to content

Colors and style of a TUniTreeView


bbm

Recommended Posts

Hi,

I use an external css-file for  treeview.

.tvcolor .x-tree-view {
  background-color: #F0F0F0;
}
.tvcolor .x-tree-view  .x-grid-cell-inner-treecolumn {
  background-color: #F0F0F0;
}

Now I have the problem, that I want to have a special color for a selected item (also mouse move over) and no border for the selected item.

 

image.png.c13f1f798f387c2ff59eab78e9623757.png

Any body who can help me?

Best regards

Link to comment
Share on other sites

14 minutes ago, bbm said:

Now I have the problem, that I want to have a special color for a selected item (also mouse move over)

Hi,

.tvcolor .x-tree-view {
  background-color: #F0F0F0;
}
.tvcolor .x-tree-view .x-grid-item {
  background-color: #F0F0F0;
}

.tvcolor .x-tree-view .x-grid-item-over {
  background-color: lime;
}

.tvcolor .x-tree-view .x-grid-item-selected {
  background-color: limegreen;
}

 

Link to comment
Share on other sites

1 hour ago, bbm said:

Now I have the problem, that I want to have a special color for a selected item (also mouse move over) and no border for the selected item.

.tvcolor .x-tree-view {
  background-color: #F0F0F0;
}
.tvcolor .x-tree-view .x-grid-item {
  background-color: #F0F0F0;
}

.tvcolor .x-tree-view .x-grid-item-over {
  background-color: lime;
}

.tvcolor .x-tree-view .x-grid-item-selected {
  background-color: limegreen;
  
}

.tvcolor .x-tree-view .x-grid-item-focused .x-grid-cell-inner:before {
  border: none;
}

 

Link to comment
Share on other sites

15 minutes ago, bbm said:

Where can I find this information? Or is that years of experience and corresponding knowledge?

Hi,

This is a difficult question than the previous one. :) 

Well, here mainly need to learn ExtJS CSS classes, also analyze them using web tools...

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