Commit graph

44724 commits

Author SHA1 Message Date
Kovid Goyal
cfe4673240
Allow serializing integer valued enums in JSON config dicts 2022-03-09 08:21:54 +05:30
Kovid Goyal
ca4b56a1fc
Bump beta version 2022-03-09 08:21:54 +05:30
Kovid Goyal
092b172495
Windows: Automatically change colors between light and dark when the system wide preference is changed 2022-03-09 08:21:54 +05:30
Kovid Goyal
83da0b5c26
Windows: Fix error if calibre is launched before the previous instance has fully shutdown 2022-03-09 08:21:53 +05:30
Kovid Goyal
685909a972
More pyqt6 enum goodness 2022-03-09 08:21:53 +05:30
Kovid Goyal
ddcd2d3a0c
... 2022-03-09 08:21:53 +05:30
Kovid Goyal
4b1812cac9
Update icon theme docs 2022-03-09 08:21:53 +05:30
Kovid Goyal
2d78ef313b
Bump beta version 2022-03-09 08:21:53 +05:30
Kovid Goyal
7a8cc098b0
Handle loading of dual mode icons missing from user "any" themes 2022-03-09 08:21:53 +05:30
Kovid Goyal
9039d2a979
Implement changing of icon theme 2022-03-09 08:21:53 +05:30
Kovid Goyal
a226e1b71a
... 2022-03-09 08:21:53 +05:30
Kovid Goyal
f68a1da573
Misc improvements to choose theme dialog 2022-03-09 08:21:53 +05:30
Kovid Goyal
e59ea11000
Work on UI for color specific icon themes 2022-03-09 08:21:53 +05:30
Kovid Goyal
a0c260c25b
Port icon theme usage reporting 2022-03-09 08:21:53 +05:30
Kovid Goyal
a116c83239
Dont need to restart when changing icon themes any more 2022-03-09 08:21:53 +05:30
Kovid Goyal
0bfd24db5d
... 2022-03-09 08:21:53 +05:30
Kovid Goyal
91b8909160
Support themeing for plugin icons 2022-03-09 08:21:53 +05:30
Kovid Goyal
23665e98ad
Also include plugin icons when building resource files
And handle sub-directories more efficiently by flattening into a
single theme directory
2022-03-09 08:21:53 +05:30
Kovid Goyal
5c5bf91aa3
Code to migrate a legacy icon theme 2022-03-09 08:21:52 +05:30
Kovid Goyal
6254804be4
Move icon management into its own class 2022-03-09 08:21:52 +05:30
Kovid Goyal
7d559fb1a7
gui clean should remove the RCC file as well 2022-03-09 08:21:52 +05:30
Kovid Goyal
d73144440c
Ensure icons.rcc exists when running from develop 2022-03-09 08:21:52 +05:30
Kovid Goyal
29888ac339
Allow specialising a theme resource for dark/light 2022-03-09 08:21:52 +05:30
Kovid Goyal
4a5016d3f0
Simplify function 2022-03-09 08:21:52 +05:30
Kovid Goyal
357d5aff20
Load icons from resource file
Reduces small library startup time on my system by 30%
2022-03-09 08:21:52 +05:30
Kovid Goyal
2b58d33f0c
Build a Qt resource file containing the icon themes generated from the actual image files
Loading from a resource file should be considerably faster
2022-03-09 08:21:52 +05:30
Kovid Goyal
83e8a061c7
Function to compile icon dir into themes resource 2022-03-09 08:21:52 +05:30
Kovid Goyal
500d7aeda0
Start work on loading icons from resource files 2022-03-09 08:21:52 +05:30
Kovid Goyal
da2f64167a
Dont link rcc_backend against qtgui 2022-03-09 08:21:52 +05:30
Kovid Goyal
237b375a8c
Code to compile a single qrc file 2022-03-09 08:21:52 +05:30
Kovid Goyal
25c44fc2f0
Get rcc compiler building 2022-03-09 08:21:52 +05:30
Kovid Goyal
f2b4ae454e
Cleanup right click to visit homepage 2022-03-09 08:21:52 +05:30
Kovid Goyal
d7e134b105
... 2022-03-09 08:21:52 +05:30
Kovid Goyal
634d96ff94
Dont use system dependent fallback icons 2022-03-09 08:21:52 +05:30
Kovid Goyal
a1b7ec4637
pyqt6: More enum goodness, this time in the font chooser widget 2022-03-09 08:21:51 +05:30
Kovid Goyal
c3cf64bbdd
... 2022-03-09 08:21:51 +05:30
Kovid Goyal
4085f72005
Use themes for modified.png 2022-03-09 08:21:51 +05:30
Kovid Goyal
e38198d574
Use the themes for the dialog close button 2022-03-09 08:21:51 +05:30
Kovid Goyal
7a13f4e2e8
Work on using icon themes 2022-03-09 08:21:51 +05:30
Kovid Goyal
e6eca4eb0e
... 2022-03-09 08:21:51 +05:30
Kovid Goyal
9a77da3df7
more QIcon.ic() usage 2022-03-09 08:21:51 +05:30
Kovid Goyal
2243d331b0
More QIcon.ic usage 2022-03-09 08:21:51 +05:30
Kovid Goyal
7475ded979
Restore QCoreApplication.exec_ 2022-03-09 08:21:51 +05:30
Kovid Goyal
c370c2c522
more QIcon.ic() usage 2022-03-09 08:21:51 +05:30
Kovid Goyal
e642743642
more QIcon.ic() usage 2022-03-09 08:21:51 +05:30
Kovid Goyal
c0d7828834
use QIcon.ic() in rest of calibre source 2022-03-09 08:21:51 +05:30
Kovid Goyal
ba275bae71
Use the convenience icon load method in .ui files 2022-03-09 08:21:51 +05:30
Kovid Goyal
53143c6342
A convenience method to load icons 2022-03-09 08:21:50 +05:30
Kovid Goyal
0ae41075d5
pyqt6: Fix handling of CheckStateRole in various models
The idiotic enums strike again
2022-03-09 08:21:50 +05:30
Kovid Goyal
8af9d34435
Workaround QSizePolicy::PolicyFlag broken in pyqt6 2022-03-09 08:21:50 +05:30