45272 Commits

Author SHA1 Message Date
Kovid Goyal
4b946c6743
More pyqt6 enum goodness 2022-07-06 19:19:44 +05:30
Kovid Goyal
62e7a7416a
... 2022-07-06 19:19:44 +05:30
Kovid Goyal
1d4964b366
Update icon theme docs 2022-07-06 19:19:44 +05:30
Kovid Goyal
96c275851c
Bump beta version 2022-07-06 19:19:44 +05:30
Kovid Goyal
4a7d0227b8
Handle loading of dual mode icons missing from user "any" themes 2022-07-06 19:19:43 +05:30
Kovid Goyal
121b7eb7f2
Implement changing of icon theme 2022-07-06 19:19:43 +05:30
Kovid Goyal
6b9bcd001e
... 2022-07-06 19:19:43 +05:30
Kovid Goyal
20efcd0fd6
Misc improvements to choose theme dialog 2022-07-06 19:19:43 +05:30
Kovid Goyal
a56e168f70
Work on UI for color specific icon themes 2022-07-06 19:19:43 +05:30
Kovid Goyal
83d1f1a6c6
Port icon theme usage reporting 2022-07-06 19:19:43 +05:30
Kovid Goyal
985befbb6d
Dont need to restart when changing icon themes any more 2022-07-06 19:19:43 +05:30
Kovid Goyal
168f583396
... 2022-07-06 19:19:43 +05:30
Kovid Goyal
8a33f48874
Support themeing for plugin icons 2022-07-06 19:19:43 +05:30
Kovid Goyal
3650033173
Also include plugin icons when building resource files
And handle sub-directories more efficiently by flattening into a
single theme directory
2022-07-06 19:19:43 +05:30
Kovid Goyal
4bb2cb27b3
Code to migrate a legacy icon theme 2022-07-06 19:19:43 +05:30
Kovid Goyal
eb0f405d9a
Move icon management into its own class 2022-07-06 19:19:43 +05:30
Kovid Goyal
2288a26612
gui clean should remove the RCC file as well 2022-07-06 19:19:43 +05:30
Kovid Goyal
75859ba62b
Ensure icons.rcc exists when running from develop 2022-07-06 19:19:43 +05:30
Kovid Goyal
b73fd715b1
Allow specialising a theme resource for dark/light 2022-07-06 19:19:43 +05:30
Kovid Goyal
2c0325ae68
Simplify function 2022-07-06 19:19:42 +05:30
Kovid Goyal
0d0467b740
Load icons from resource file
Reduces small library startup time on my system by 30%
2022-07-06 19:19:42 +05:30
Kovid Goyal
bffaacd3c2
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-07-06 19:19:42 +05:30
Kovid Goyal
62c8a0dcfb
Function to compile icon dir into themes resource 2022-07-06 19:19:42 +05:30
Kovid Goyal
32d4243e1d
Start work on loading icons from resource files 2022-07-06 19:19:42 +05:30
Kovid Goyal
178f94a271
Dont link rcc_backend against qtgui 2022-07-06 19:19:42 +05:30
Kovid Goyal
a0e1c7b7e3
Code to compile a single qrc file 2022-07-06 19:19:42 +05:30
Kovid Goyal
9f0ab6e40f
Get rcc compiler building 2022-07-06 19:19:42 +05:30
Kovid Goyal
fece62c677
Cleanup right click to visit homepage 2022-07-06 19:19:42 +05:30
Kovid Goyal
9296082375
... 2022-07-06 19:19:42 +05:30
Kovid Goyal
be860b2464
Dont use system dependent fallback icons 2022-07-06 19:19:42 +05:30
Kovid Goyal
10776a9bba
pyqt6: More enum goodness, this time in the font chooser widget 2022-07-06 19:19:42 +05:30
Kovid Goyal
af2fce89fd
... 2022-07-06 19:19:42 +05:30
Kovid Goyal
7fa564da07
Use themes for modified.png 2022-07-06 19:19:42 +05:30
Kovid Goyal
b94ddad134
Use the themes for the dialog close button 2022-07-06 19:19:42 +05:30
Kovid Goyal
d377eedf52
Work on using icon themes 2022-07-06 19:19:41 +05:30
Kovid Goyal
a0e6bbe2bf
... 2022-07-06 19:19:41 +05:30
Kovid Goyal
fc14525e24
more QIcon.ic() usage 2022-07-06 19:19:41 +05:30
Kovid Goyal
2d44370c25
More QIcon.ic usage 2022-07-06 19:19:41 +05:30
Kovid Goyal
aee016b897
Restore QCoreApplication.exec_ 2022-07-06 19:19:41 +05:30
Kovid Goyal
a48fae501f
more QIcon.ic() usage 2022-07-06 19:19:41 +05:30
Kovid Goyal
35aba136ee
more QIcon.ic() usage 2022-07-06 19:19:41 +05:30
Kovid Goyal
7ce05e3097
use QIcon.ic() in rest of calibre source 2022-07-06 19:19:41 +05:30
Kovid Goyal
1e51e4a09a
Use the convenience icon load method in .ui files 2022-07-06 19:19:41 +05:30
Kovid Goyal
0476d5bdf1
A convenience method to load icons 2022-07-06 19:19:41 +05:30
Kovid Goyal
079f89b6c7
pyqt6: Fix handling of CheckStateRole in various models
The idiotic enums strike again
2022-07-06 19:19:41 +05:30
Kovid Goyal
d031538a2e
Workaround QSizePolicy::PolicyFlag broken in pyqt6 2022-07-06 19:19:41 +05:30
Kovid Goyal
3c49d08b2a
pyqt6: Fix QPrinter::pageSize no longer present in pyqt6 2022-07-06 19:19:41 +05:30
Kovid Goyal
483e976ccc
Build linux arm64 in parallel as its the slowest by far 2022-07-06 19:19:40 +05:30
Kovid Goyal
29505f1951
bump beta version 2022-07-06 19:19:40 +05:30
Kovid Goyal
a497e7698b
Some improvements to palette change handling
1) Dont use the paletteChanged signal since it is deprecated in Qt 6
2) Dont apply the workaround for: https://bugreports.qt.io/browse/QTBUG-75321
   as its not needed as far as I can tell i Qt 6 and it causes switching
   back to the light theme to have some incorrect colors
2022-07-06 19:19:40 +05:30