Commit Graph

546 Commits

Author SHA1 Message Date
61ac25bb7b Fix full screen button show/hide depending on the theme. 2020-04-07 18:11:36 +02:00
e7922a0e51 Implement a way for setting the title in the main toolbar. 2020-04-07 18:11:36 +02:00
ca5096fba4 Use the new toolbar and search edit.
This enables the use of the any of the supported toolbars in macos.
2020-04-07 18:11:35 +02:00
965e8be2fe Show the full screen button only if it has actions assigned. 2020-04-07 18:11:35 +02:00
655cdc619e Create wrappers for the search edit and the main toolbar.
So we can hide native implementations from classes using these elements.
2020-04-07 18:11:35 +02:00
00f8adfa54 Update theme to include full screen action configuration. 2020-04-07 18:11:35 +02:00
176565d78c Use the native macos toolbar depending on the theme. 2020-04-07 18:11:35 +02:00
a3024a1bee Extract to theme no comics widgets style. 2020-04-07 18:11:34 +02:00
d2c92c0c2d Use theme for choosing the right folder icon in reading lists. 2020-04-07 18:11:34 +02:00
797d7aa723 Control via themes when do we have to use native icons for folders. 2020-04-07 18:11:34 +02:00
8a003dbfa8 Add new them properties to store specific styles for library items. 2020-04-07 18:11:33 +02:00
afdd96c2e0 Use the theme property. 2020-04-07 18:11:32 +02:00
0eebc9af92 Keep the current theme in LibraryWindow and pass it when needed. 2020-04-07 18:11:32 +02:00
7f30709920 Fix ClassicComicsView instantiation. 2020-04-07 18:11:32 +02:00
f808fcfe2e Inject a theme to the comics view manager. 2020-04-07 18:11:32 +02:00
365bf451b1 Replace include. 2020-04-07 18:11:32 +02:00
0830958283 Return the theme from the factory method. 2020-04-07 18:11:31 +02:00
deb1971bc9 Add a theme class to store all the custom UI values used in the code.
It will need a setting for selecting the theme in the factory method.
2020-04-07 18:11:31 +02:00
53fcc52dd6 Inject ComicsViewTransition background color as a string. 2020-04-07 18:11:31 +02:00
730436c3e9 Inject disable collapsing setting into ClassicComicsView. 2020-04-07 18:11:31 +02:00
65a77daa75 Explicitly include <sys/socket.h>
server_config_dialog.cpp:57:30: error: member access into incomplete type 'struct sockaddr'
            if (ifa->ifa_addr->sa_family == AF_INET) { // check it is IP4
                             ^
/usr/local/include/qt5/QtNetwork/qhostaddress.h:50:8: note: forward declaration of 'sockaddr'
struct sockaddr;
       ^
server_config_dialog.cpp:61:27: error: use of undeclared identifier 'AF_INET'
                inet_ntop(AF_INET, tmpAddrPtr, addressBuffer, INET_ADDRSTRLEN);
                          ^
server_config_dialog.cpp:64:37: error: member access into incomplete type 'struct sockaddr'
            } else if (ifa->ifa_addr->sa_family == AF_INET6) { // check it is IP6
                                    ^
/usr/local/include/qt5/QtNetwork/qhostaddress.h:50:8: note: forward declaration of 'sockaddr'
struct sockaddr;
       ^
server_config_dialog.cpp:68:27: error: use of undeclared identifier 'AF_INET6'
                inet_ntop(AF_INET6, tmpAddrPtr, addressBuffer, INET6_ADDRSTRLEN);
                          ^
2019-11-26 19:03:34 +00:00
e1b0e7c96f Fix full screen mode in windows with qt 5.12.4+ 2019-09-28 10:11:44 +02:00
346bcdaf75 Clang format fix. 2019-09-25 17:38:59 +02:00
cfb4e31af9 Fix for story arcs not being parsed from comicvine. 2019-09-25 17:38:59 +02:00
0b83764734 Revert "Thread ping pong" 2019-09-24 12:00:21 +02:00
be547081f2 Fix huge memleak in server code caused by thread pingpong fix.
Stopped QThreads don't process events, so cleanup signals get lost.
Prevent this from happening by keeping the threads alive and the comic
inside the thread (as we already do in the viewer). Cleanup happens by
connecting the comic's destroyed() signal to the thread's quit() slot.
2019-09-24 08:21:14 +02:00
68ae40fda7 Fix restoring the window from a minimized state 2019-09-22 15:04:54 +02:00
6990ba0765 Use showNormal in macos and show in other platforms 2019-09-22 13:27:06 +02:00
1ddf0038b8 Use Trigger in linux, we have seen some setups were double click is not reported 2019-09-22 13:14:02 +02:00
94d17a1d5c Use "show" instead of "showNormal" to keep maximized geometry 2019-09-22 13:08:10 +02:00
fc85f77d15 Use LibraryWindow::closeApp to exit from the system tray context menu 2019-09-21 12:12:19 +02:00
9fafa06063 Move call forward 2019-09-21 12:11:56 +02:00
674fa21717 Pass a more specific instance of our main window 2019-09-21 12:11:39 +02:00
ef8216b338 Make closeApp work with no event
And exit using QApplication.exit so we don't mess with window events to exit the app
2019-09-21 12:11:03 +02:00
7ac331ed41 Do not force macos sdk for now
This was commited by mistake
2019-09-21 11:06:51 +02:00
8e99d9e59f Extract the system tray functionality to its own class
LibraryWindow is already a monster, so we'll try to not make it bigger.
2019-09-21 10:47:01 +02:00
3c07e7269a Update the UI string about system tray support 2019-09-21 10:45:34 +02:00
5b78ef2dae Use new property name and set false as default 2019-09-21 10:44:28 +02:00
b5f3799753 Restore the code to start the app into the system tray 2019-09-21 10:44:03 +02:00
63e16e44b7 Better macos tray icon 2019-09-20 16:38:11 +02:00
403e657062 A new trayicon is needed for macos 2019-09-20 13:41:26 +02:00
6031c81d81 Add better icons for the system tray in macos and windows
I would like to design specific icons for the system tray at some point, but for now this is what we have.
2019-09-20 10:07:20 +02:00
4377ad935c Fixed more merge problems 2019-09-19 22:54:08 +02:00
8f845727ae Fixed more merge problems 2019-09-19 22:49:00 +02:00
a0f682be7b Merge went bad
Hopefully this is all that got messed up
2019-09-19 22:32:07 +02:00
a632480422 Format 2019-09-19 21:16:56 +02:00
e587f59ddb Add support for minimize and start to tray. 2019-09-19 20:22:14 +02:00
a6bfd44aec Remove clear from sql query
It was committed by mistake
2019-09-16 23:44:30 +02:00
ffbe32734e Use the right info.plist file 2019-08-31 10:12:20 +02:00
24fce96220 Disable darkmode for now 2019-08-31 09:35:32 +02:00