Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 02-10-2022, 07:33 AM   #1
AxaRu
Member
AxaRu will become famous soon enoughAxaRu will become famous soon enoughAxaRu will become famous soon enoughAxaRu will become famous soon enoughAxaRu will become famous soon enoughAxaRu will become famous soon enough
 
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.
AxaRu is offline   Reply With Quote
Old 02-10-2022, 09:42 AM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
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;
}
DiapDealer is offline   Reply With Quote
Old 02-10-2022, 09:58 AM   #3
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
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.
KevinH is offline   Reply With Quote
Old 02-10-2022, 10:29 AM   #4
AxaRu
Member
AxaRu will become famous soon enoughAxaRu will become famous soon enoughAxaRu will become famous soon enoughAxaRu will become famous soon enoughAxaRu will become famous soon enoughAxaRu will become famous soon enough
 
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.
AxaRu is offline   Reply With Quote
Old 02-11-2022, 09:50 AM   #5
AxaRu
Member
AxaRu will become famous soon enoughAxaRu will become famous soon enoughAxaRu will become famous soon enoughAxaRu will become famous soon enoughAxaRu will become famous soon enoughAxaRu will become famous soon enough
 
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;
}
AxaRu is offline   Reply With Quote
Old 02-11-2022, 10:25 AM   #6
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
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.
DiapDealer is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 04:07 AM.


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