Skip to main content
1-Visitor
April 7, 2022
Solved

I want to change the scrollbar style

  • April 7, 2022
  • 1 reply
  • 6929 views

Hey everyone !
I am design a good loking ui interface, anyone know if it's possible to change the color/style of the scrollbar in the mashup ?

here is a screen of my front-end application :

 

Best answer by BR_10233040

Hello,

I did tried to add the following code in the custom CSS:

body * ::-webkit-scrollbar {
width:5px;
height:10px;
}
/* Track */
body * ::-webkit-scrollbar-track {
background:#3c6380;
}
/* Handle */
body * ::-webkit-scrollbar-thumb {
background: #12243a;
}

 but I got no change from it. I did noticed however when running the application on firefox, all the scrollbar were actually dark (I don't know why) so as it is not meant to be a deployed app but more like a demo project, I'll use firefox for it instead of Chrome.

For user that wants to make dark ui, it would be very appreciated to be able t change scrollbar easily through Thingworx.

1 reply

1-Visitor
April 7, 2022

Hey thanks for your reply !

I checked the documentation already but what i want is "change the color/style" of a scrollbar, no removing it or disabling it which is what your link is referring about.

Thanks again,

 

B.

1-Visitor
April 7, 2022

just saw that:
body * ::-webkit-scrollbar {
width:5px;
height:10px;
}
/* Track */
body * ::-webkit-scrollbar-track {
background:#3c6380;
}
/* Handle */
body * ::-webkit-scrollbar-thumb {
background: #12243a;
}

will test it, ty !