Jump to content

Recommended Posts

Posted

Someone knows how I can change the font size of the UniTreeMenu, and modify the background color.

I am trying to replace my menus made with complicated panels framed by this component.

post-202-0-14327900-1527735093_thumb.png

Posted

Hi,

 

background color.

 

Try this:

 

1. UniTreeMenu -> LayoutConfig -> Cls = _treemenu

 

2. CustomCSS:

._treemenu .x-treelist, ._treemenu .x-treelist-row{
  background-color: green;
}
Posted

Maybe like this?:

._treemenu .x-treelist, ._treemenu .x-treelist-row{
  background-color: green;
}

._treemenu .x-treelist-row-over, ._treemenu .x-treelist-nav .x-treelist-item-selected > .x-treelist-row{
  background-color: #295C29;
}

._treemenu .x-treelist-item-text, ._treemenu .x-treelist-item-icon, ._treemenu .x-treelist-item-expander {
  color: black;
  font-size: 14px;
}
  • 2 weeks later...
  • 2 weeks later...
  • 3 months later...
  • 1 month later...
Posted

By crawling through the uniGUI sources I found another nice one for me:

.x-treelist-nav .x-treelist-item-selected>.x-treelist-row:before {
    background-color: #c0d4ed
}

For own experiments i recommend a closer look into the file "theme-classic-all_1.css".

Posted
On 6/15/2018 at 2:03 PM, zanona said:
If the menu is micro active the css color is not respected!

Try this:

.x-treelist-nav .x-treelist-item-selected.x-treelist-item-tool {
    color: green;
    background-color: red;
}

 

 

 

 

 

 

 

 

 

  • 5 months later...
  • 2 weeks later...
Posted
I would like to know how to change the color and background of the selected row.

For defualt the color of semlected row is white and therefore if I change the background color

._treemenu .x-treelist, ._treemenu .x-treelist-row{
  background-color: white;
}

I can't see the selected row again

i tried

._treemenu .x-treelist-row-over, ._treemenu .x-treelist-nav .x-treelist-item-selected > .x-treelist-row{
  background-color: red;
}

but with UNIGUI v.1.90.0.1498 and Delphi Rio it  has no effect

 

 

Posted
16 minutes ago, azago said:

but with UNIGUI v.1.90.0.1498 and Delphi Rio it  has no effect

Hello,

Can you make a simple testcase for reproduce?

Posted
1 hour ago, azago said:

Attached testcase

...

._treemenu .x-treelist-row-over, ._treemenu .x-treelist-nav .x-treelist-item-selected > .x-treelist-row{
  background-color: red !important;
}

...

 

Posted

Thanks. It Works.

 

 

There is only one problem. If I click on an item and then move to another item, I find myself with 2 items selected as shown

image.png.8814bbc651f59f9536eb6ab26764cedf.png

 

with

_treemenu .x-treelist, ._treemenu .x-treelist-row{
  background-color: white;
}

._treemenu .x-treelist-row-over, ._treemenu .x-treelist-nav .x-treelist-item-selected > .x-treelist-row{
  background-color: #286090 !important;
}

._treemenu .x-treelist-item-text, ._treemenu .x-treelist-item-icon, ._treemenu .x-treelist-item-expander {
  color: #286090;
  font-size: 14px;
}
 

 

it becomes so

image.png.122a57df9749148ca99a70831f325bb0.png

 

 

image.png

  • 2 years later...
Posted
On 5/31/2018 at 8:38 PM, Sherzod said:

Maybe like this?:


._treemenu .x-treelist, ._treemenu .x-treelist-row{
  background-color: green;
}

._treemenu .x-treelist-row-over, ._treemenu .x-treelist-nav .x-treelist-item-selected > .x-treelist-row{
  background-color: #295C29;
}

._treemenu .x-treelist-item-text, ._treemenu .x-treelist-item-icon, ._treemenu .x-treelist-item-expander {
  color: black;
  font-size: 14px;
}

Hi.

This works, but not when Micro = true.

Is possible?

Thanks.

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