|
|
#16 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,085
Karma: 4000129
Join Date: Jan 2017
Location: Poland
Device: Various
|
As for the clipboard itself, adding a Pyperclip would probably solve the problem.
|
|
|
|
|
|
#17 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29,879
Karma: 212736631
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I should be able to fix it for all platforms. I'll probably need to subclass QColorDialog so I can override the accept/reject routines (as well as force Qt's cross-platform color chooser rather than Linux and macOS built-in ones). Stay tuned.
|
|
|
|
|
|
#18 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 55,485
Karma: 182544230
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
If only there was a box where a colour name i.e. rebeccapurple could be typed...
For a different program, that was a request for it's colour picker which the creator responded to by suggesting just typing the name in the CSS if you wanted a named colour. |
|
|
|
|
|
#19 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29,879
Karma: 212736631
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I think I'm close to having something that will work for both Linux and Windows (and hopefully macOS). Writing stuff to the system clipboard on Linux with Qt is a huge pain in the butt. It's mostly intended to work from within a gui MainWindow where buttons will be used to copy/paste the clipboard content while the gui continues to run. Linux requires a running QApplication event loop to manipulate the system clipboard, while Windows does not.
|
|
|
|
|
|
#20 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29,879
Karma: 212736631
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I think I have it working on Windows and Linux. New icon, custom colors are preserved to and from preferences.
|
|
|
|
|
|
#21 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,085
Karma: 4000129
Join Date: Jan 2017
Location: Poland
Device: Various
|
New: It now works with color names as well – you can have "red" or "rebeccapurple" in your clipboard, and the palette will display the correct color. The idea was adapted from a C# macro for ClipboardFusion: https://www.clipboardfusion.com/Macr...6-739ff1fab8ba
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| header color cannot be change with CSS | issam.seghir99 | Viewer | 0 | 11-24-2022 03:38 AM |
| css background-color: | jwilson5153 | Conversion | 1 | 07-18-2019 11:16 PM |
| Button to add CSS class | maicol07 | Sigil | 3 | 03-15-2019 02:25 PM |
| add css to specific page | Etshy | Calibre | 1 | 08-09-2017 08:33 AM |
| when does calibre add/not add page_styles css | cybmole | Calibre | 5 | 07-14-2014 03:58 AM |