Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
manmadha
Contributor III
Contributor III

Custom color changes in list box selection

Hi Experts,

I need your help to changes list box parameter selection custom color change (the default color is Green).

kindly help me on that.

Labels (1)
18 Replies
EliGohar
Partner - Creator III
Partner - Creator III

Hi,

Can you please attach a screenshot as an example? what exactly do you want to change?

Eli.

manmadha
Contributor III
Contributor III
Author

default application color is Green. I want change some other color.

EliGohar
Partner - Creator III
Partner - Creator III

You'll need to use a custom theme to apply CSS changes:

https://help.qlik.com/en-US/sense-developer/February2022/Subsystems/Extensions/Content/Sense_Extensi...

For this specific change, you can use this CSS:

.qv-listbox .serverLocked, .qv-listbox .serverSelected, .qv-listbox li.selected {
    background-color: navy;
    border-bottom: 1px solid navy;
    color: #fff;
}

EliGohar_0-1650976218891.png

 

AJerbi
Partner - Contributor II
Partner - Contributor II

Hi @EliGohar  ! 

Any idea on how to change the selection color from green to another within a table? (Also using CSS code, since I'm working on a custom theme)

Thanks.

EliGohar
Partner - Creator III
Partner - Creator III

Hi @AJerbi 

Do you mean this selection? (see highlighted in red)

EliGohar_1-1671017766242.png

If so, this is the CSS you need - in the example below I changed the color to blue (background-color and border-bottom):

.qv-st-data-cell.qv-st-data-cell-selected-highlighted {
    background-color: blue;
    border-bottom: 1px solid blue;
    color: #fff;
}

 

Result:

EliGohar_2-1671017911987.png

 

AJerbi
Partner - Contributor II
Partner - Contributor II

Hi @EliGohar , 

Thank you for your reply, that's exactly what i wanted , the only issue is that multiple selections aren't taken in consideration, only the color of the first selected value changed as you can see in the screensot below. Any idea on how to fix that ? 

AJerbi_0-1671206842984.png

 

EliGohar
Partner - Creator III
Partner - Creator III

@AJerbi You're right, please add the following element:

.qv-st-data-cell.qv-st-data-cell-selected {
    background-color: blue;
    border-bottom: 1px solid blue;
    color: #fff;
}

 

Eli.

AJerbi
Partner - Contributor II
Partner - Contributor II

@EliGohar It works perfectly, thank you for your kind support 🙂

ester_pr
Partner - Creator
Partner - Creator

Hi @EliGohar ,

I would appreciate it if you could help me, how do I write the excluded colors in the code, I have a black model and I want that the excluded data will also be in white and their background in dark gray

 

thank you,

Ester