View Single Post
Old 12-29-2024, 12:02 PM   #16
philja
Addict
philja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enough
 
Posts: 269
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
Hi retiredbiker, I forgot but the css file only does the Preview window in Sigil. If you want to modify the scrollbars in the other windows, you need to attack the Qt with a qt_styles.qss file located in the same place as the CSS file.

I pinched a bit of code from Qt's website and added it to my qt_styles.qss file.

The first line was something I did a long time ago to ensure I had a white background in CodeView to improve some screenshots I was making. The rest is what I 'borrowed' from Qt's website.

Thanks, Turtle91, for the tip about 'Spoiler' and code pasting.

Spoiler:
CodeViewEditor {
background: white;
}
QScrollBar:vertical {
border: 2px solid grey;
background: #d8d6df;
width: 15px;
margin: 22px 0 22px 0;
}
QScrollBar::handle:vertical {
background: #0ea0f2;
min-height: 30px;
}
QScrollBar::add-line:vertical {
border: 2px solid grey;
background: #ff0000;
height: 20px;
subcontrol-position: bottom;
subcontrol-origin: margin;
}

QScrollBar::sub-line:vertical {
border: 2px solid grey;
background: #ff0000;
height: 20px;
subcontrol-position: top;
subcontrol-origin: margin;
}
QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical {
border: 2px solid grey;
width: 3px;
height: 3px;
background: white;
}

QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
background: none;
}




Last edited by philja; 12-29-2024 at 12:06 PM.
philja is offline   Reply With Quote