Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
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: 265
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
Old 12-29-2024, 02:19 PM   #17
retiredbiker
Evangelist
retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.
 
retiredbiker's Avatar
 
Posts: 450
Karma: 3886916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Kobo Forma
I had just gotten to the point of noticing only the preview was changed...so thanks again. This all works perfectly!
retiredbiker is offline   Reply With Quote
Advert
Old 12-29-2024, 02:46 PM   #18
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: 265
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
Quote:
Originally Posted by retiredbiker View Post
I had just gotten to the point of noticing only the preview was changed...so thanks again. This all works perfectly!
Glad it was of use.
philja is offline   Reply With Quote
Old 12-30-2024, 09:18 AM   #19
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: 265
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
Retiredbiker: just a small note about the width of the scrollbar in PreView. It varies according to your zoom setting (bottom right of screen). I set the width in the CSS file to 20px which suits the sort of range of zoom I use.

On the other hand, the CodeView window (which Qt draws) maintains the scrollbar width regardless of your zoom setting.
philja is offline   Reply With Quote
Old 12-30-2024, 11:55 AM   #20
retiredbiker
Evangelist
retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.
 
retiredbiker's Avatar
 
Posts: 450
Karma: 3886916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Kobo Forma
Ah, I had not realised it zoomed with the text, how wonderful. I had already set it down to 10px -- at my zoom level (huge) it matches the other panels at that setting. Very cool!
retiredbiker is offline   Reply With Quote
Advert
Reply

Tags
user interface


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing color of scroll bar? Joseph The Grave Calibre 7 08-02-2024 01:50 AM
Viewer scroll bar Calibre 4.0 qfwfq Calibre 1 10-04-2019 10:26 AM
Scroll bar visibility AMF Calibre 6 08-10-2019 12:09 AM
Options for page scroll bar? ShellShock Marvin 3 12-16-2013 02:48 PM
PDF reader with scroll bar pj123 Android Devices 0 12-12-2011 12:07 PM


All times are GMT -4. The time now is 12:16 AM.


MobileRead.com is a privately owned, operated and funded community.