![]() |
#1 |
Member
![]() ![]() ![]() ![]() ![]() ![]() Posts: 22
Karma: 624
Join Date: May 2013
Location: Moscow
Device: Kobo Aura H2o, Kobo Aura One, Kobo Forma
|
How can I change background color?
Hi.
OS - Linux Mint Sigil - 1.8 How can I change background color? ![]() Thanks, Alexey. Last edited by AxaRu; 02-10-2022 at 07:38 AM. |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,341
Karma: 203719646
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
The easiest way on Linux is to use qt5ct and/or kvantum to pick a qt style for Sigil that you like.
If you don't want to do that, you can create a custom qt style file for Sigil and use Qt's qss (much like css) to style individual elements. Create a file named qt_styles.qss in your Sigil preferences folder and it will automatically be loaded whenever Sigil starts. Something like below will allow you to modify the various colors of ALL QTreeView objects in Sigil: Code:
QTreeView { alternate-background-color: blue; background: yellow; selection-color: white; selection-background-color: red; } You can limit it to the Clip Editor's TreeView with: Code:
QTreeView#ClipEditorTree { alternate-background-color: blue; background: yellow; selection-color: white; selection-background-color: red; } |
![]() |
![]() |
![]() |
#3 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,439
Karma: 5703082
Join Date: Nov 2009
Device: many
|
I noticed the "[std]" in the main window titlebar which means your build is from master sometime over the last month. Please note current master has many internal changes that have not been adequately tested yet and should be considered Beta quality and used with caution. It has not even been released as a Beta yet. There has been a number of important fixes to master in recent days that fix issues with search and spine order.
If this is production, I would stick with the official Sigil 1.8.0 release. Otherwise, I would update to latest master immediately and treat it as Beta. Last edited by KevinH; 02-10-2022 at 10:05 AM. |
![]() |
![]() |
![]() |
#4 |
Member
![]() ![]() ![]() ![]() ![]() ![]() Posts: 22
Karma: 624
Join Date: May 2013
Location: Moscow
Device: Kobo Aura H2o, Kobo Aura One, Kobo Forma
|
Thanks
![]() ~/.local/share/sigil-ebook/sigil/qt_styles.qss Code:
QTreeView { alternate-background-color: #EBEACA; background: #F2F2DB; selection-color: white; selection-background-color: red; } Last edited by AxaRu; 02-10-2022 at 10:34 AM. |
![]() |
![]() |
![]() |
#5 |
Member
![]() ![]() ![]() ![]() ![]() ![]() Posts: 22
Karma: 624
Join Date: May 2013
Location: Moscow
Device: Kobo Aura H2o, Kobo Aura One, Kobo Forma
|
Hastily i tuned color in sand style.
![]() Code:
QTreeView { alternate-background-color: #E1D9C0; background: #E7E0CC; selection-color: white; selection-background-color: red; } QTreeView#ClipEditorTree { alternate-background-color: #E1D9C0; background: #E7E0CC; selection-color: white; selection-background-color: red; } QTreeView#TOCTree { alternate-background-color: #E1D9C0; background: #E7E0CC; selection-color: white; selection-background-color: red; } QTreeView#tvTOCDisplay{ alternate-background-color: #E1D9C0; background: #E7E0CC; selection-color: white; selection-background-color: red; } QPlainTextEdit { alternate-background-color: #E1D9C0; background: #EDE8D9; selection-color: white; selection-background-color: #887D5A; } |
![]() |
![]() |
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,341
Karma: 203719646
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Why not make it easy on yourself and use qt(6|5)ct and Kvantum to theme Sigil? That way, you can start with something that already "works" for the most part. No need to come up with your own qss to customize every aspect of Sigil when there's likely a Kvantum theme that will get you very close.
I'm also not certain why you have 3 extra TreeView# selectors with identical colors when the original global TreeView selector would suffice. It would be one thing if you wanted different colors for the different Sigil TreeViews, but that doesn't seem to be the case. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to change the background color of tiles on the homescreen? | ItalianUruguayan | Kobo Developer's Corner | 2 | 03-22-2018 06:37 AM |
change background color? | suniram | Calibre | 8 | 05-26-2016 01:17 PM |
How to change background color in TOC of EZPDF? | Talayero | Android Devices | 0 | 01-15-2013 04:28 PM |
Change Link2SD background color | giosa | Sony Reader Dev Corner | 0 | 03-01-2012 06:33 PM |
change book page background color | jtpryan | Nook Color & Nook Tablet | 1 | 01-26-2011 04:13 PM |