texstudio icon indicating copy to clipboard operation
texstudio copied to clipboard

How to change the color of the scroll bar for the texstudio editor?

Open hongyi-zhao opened this issue 4 years ago • 8 comments

Hi,

The default color of the scroll bar for the texstudio editor is using a very similar color with the scroll column in which the bar resided. This let me so difficult to find the location of scroll bar.

So, I want to change the scroll bar into some color which is very different with the scroll column. Any hints for doing this?

Regards

hongyi-zhao avatar Mar 20 '20 05:03 hongyi-zhao

Do you mean image

muzimuzhi avatar Mar 20 '20 05:03 muzimuzhi

I mean change the color of the scroll-bar-click-button on the above right highlight region so that the the button is not have a very similar color as the highlight region.

To be more specifically, when a tex source file is very long, you will see a scroll-bar-click-button, which can be used to scroll up/down the tex source file when clicked on and hold up the mouse on it. But the issue is this button has a very similar color with the region it located and thus difficult to find it.

Regards

Hongyi Zhao [email protected]

hongyi-zhao avatar Mar 20 '20 06:03 hongyi-zhao

You mean this bottom, but at the upper right corner of editor area? image

muzimuzhi avatar Mar 20 '20 09:03 muzimuzhi

Could you please tell me how to upload the sreenshot? I'll let you see it.

Regards

hongyi-zhao avatar Mar 20 '20 10:03 hongyi-zhao

Just paste from the clipboard (CTRL+V)

timhoffm avatar Mar 20 '20 13:03 timhoffm

@timhoffm OMG! Thanks a lot.

111

See the red circle marked by me on the screenshot, you should see a little slider button there when the tex file is very long. And you can use mouse to drop up/down that button to quickly browse through the tex file.

hongyi-zhao avatar Mar 20 '20 14:03 hongyi-zhao

txs supports automatically loading stylesheets. It needs to placed in the config directory (where texstudio.ini is located) as stylesheet.qss. For details on stylesheets, see qt documentation or qt example ('Qt/Examples/Qt-5.14.1/widgets/widgets/stylesheet/qss') With stylesheets you have a lot on influence on the colorscheme and sizes of elements.

sunderme avatar Apr 05 '20 07:04 sunderme

You have to add an stylesheet.qss file in the directory where your texstudio.ini is (in debian: ~/.config/texstudio/ ). Here you'll find examples and how to proceed: https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qscrollbar

mlmateos avatar Feb 26 '22 17:02 mlmateos