|
|
Thread Tools | Search this Thread |
04-03-2014, 05:57 AM | #1 |
Zealot
Posts: 142
Karma: 669192
Join Date: Nov 2013
Device: Kindle 4.1.1 no touch
|
Custom Column Colors for "Text but with a fixed list of permitted values"
Could you please tell me how to find the available colors for "Text but with a fixed list of permitted values"?
From browsing through the source code, I found that the names are checked against QColor.colorNames(), but I have no idea what's in that list. I also miss the ability to specify a color in the "#RRGGBB" notation. Or can the set of colors somehow be extended so that I could ad my own color names? |
04-03-2014, 07:27 AM | #2 | ||
Grand Sorcerer
Posts: 11,733
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
|
||
Advert | |
|
04-03-2014, 09:37 AM | #3 |
Zealot
Posts: 142
Karma: 669192
Join Date: Nov 2013
Device: Kindle 4.1.1 no touch
|
Thanks a lot…
I will, for sure, take a look into hacking the source, but as I have a rather old OS X (10.5.8) which is fortunately still supported for the binary download, I have some concerns about whether I will be able to build calibre. |
04-03-2014, 09:55 AM | #4 | |
Grand Sorcerer
Posts: 11,733
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
|
|
04-03-2014, 01:27 PM | #5 | |
Zealot
Posts: 142
Karma: 669192
Join Date: Nov 2013
Device: Kindle 4.1.1 no touch
|
*WOW* Thanks for that! It was dead easy to get it up and running and I already submitted a patch https://bugs.launchpad.net/calibre/+bug/1302078
Now I hope some developer is interested as this did not look too promising: Quote:
|
|
Advert | |
|
04-03-2014, 01:44 PM | #6 |
Grand Sorcerer
Posts: 11,733
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
You could have done a pull request. That is what I and other "known" calibre developers do. The main reasons to submit a patch using launchpad are to avoid learning how github works, to avoid a github account and the associated repo, and to let Kovid get to know you. That last one is the least important, as I know from personal experience that he is fully able and willing to carry on a dialog using github comments.
Welcome to the community! Ahh, email just arrived saying Kovid assigned accepting the patch to me. Could you give me your banking details so that I can verify that you are a real human being? (Smile) More seriously, I will look at it and converse as necessary on launchpad. Once we arrive at a conclusion, I will almost certainly ask you to submit the agreed patch to Kovid using github. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using "Build column from other column" custom-column type | HFC3 | Library Management | 3 | 07-07-2013 03:11 AM |
Default Value for Custom Column (fixed set of permitted values) | Andy P | Calibre | 1 | 06-21-2013 03:25 AM |
Custom Column with list of permitted values | Eugenie | Library Management | 1 | 01-10-2012 03:57 AM |
Custom column: "Updated date", when adding new "versions" of the same file? | enriquep | Library Management | 16 | 11-03-2011 10:46 AM |