Commit graph

158 commits

Author SHA1 Message Date
ca5d362267 Fixed issues with saving book and position after relaunching app 2023-11-22 01:33:25 +03:00
cf5ae5c902 Adaptation for AuroraOS 2023-11-17 01:21:05 +03:00
Slava Monich
f554f1f950 [app] Made low battery level configurable via dconf
There's no UI for it, though
2023-05-22 02:32:54 +03:00
Slava Monich
cb9b7f9180 [app] Fixed compilation warning
comparison of integer expressions of different signedness
2023-05-22 02:22:24 +03:00
Slava Monich
34c10653eb [app] Don't keep display on when battery is low
To avoid completely discharging the battery if the reader falls asleep
2023-05-21 04:27:16 +03:00
Slava Monich
b12d1be404 [app] Show book title on top of default cover image 2022-10-31 17:52:02 +02:00
Slava Monich
ed9bf8098a [app] Synced page image with the background
Delay the update of the background color until the page image has been
rendered.
2022-10-30 00:34:09 +03:00
Slava Monich
34eff94867 [app] Fixed color inversion in night mode 2022-10-29 20:10:02 +03:00
Slava Monich
ba04787927 [app] Delay repaint after color scheme change
That allows settings page animation to complete smoothly.

Also switched BooksPageWidget from QTimer to QBasicTimer for better
efficiency.
2022-10-11 02:47:25 +03:00
Slava Monich
a4a868c1c8 [app] Housekeeping 2022-10-11 01:11:42 +03:00
Slava Monich
143f3a3a3b [app] Handle storage change action 2022-10-10 20:25:30 +03:00
Slava Monich
08602a53f8 [app] Housekeeping 2022-10-10 20:20:13 +03:00
Slava Monich
fb8841294e [app] A better way to use Permissions and MediaKey
It has a better chance to survive a Qt upgrade
2022-10-10 18:48:25 +03:00
Slava Monich
4156a16c2f [app] Derive tool colors from the color scheme 2022-10-10 05:49:17 +03:00
Slava Monich
2a64b91cde [app] Made colors configurable 2022-10-10 03:45:18 +03:00
Slava Monich
34075dd73d [app] Delete orphaned marks files too 2021-12-12 17:40:08 +02:00
Slava Monich
79753923cc [app] Fixed deletion of wrong state files
State files in the root state directory were being deleted when
a subdirectory was being scanned.
2021-12-12 17:09:17 +02:00
Slava Monich
091c85d1ce [app] Added option to hide pulley menu in the book view 2021-11-13 18:20:50 +02:00
Slava Monich
fdca2d959e [app] Register OpenRepos app as a file handler 2021-11-13 03:53:17 +02:00
Slava Monich
7378e3982e [app] Bump MarksFileVersion
Recent formatting changes made it necessary to rebuild the model.
2021-11-10 04:14:11 +02:00
Slava Monich
a34c3b529c [app] Fixed compilation against Qt 5.2 2021-11-07 04:42:41 +02:00
Slava Monich
9644aaddf9 [app] Open the book passed in from the command line
This allows to use this app as a viewer for arbitrary ebooks,
not necessarily managed by this app.
2021-11-07 03:11:55 +02:00
Slava Monich
e07cea347a [app] Added BooksStorage::tmpStorage()
To support opening books located outside of the normal directory
hierarchy.
2021-11-07 02:54:06 +02:00
Slava Monich
f79b2f17ad [app] A few book cover rendering tweaks
Edge filling is only performed when both edges consist predominantly
of the same color and the aspect ratio significantly differs from
the target one. Otherwise the cover is stretched pretty much as before
except that stretched image is now centered. That seems to works nicely
in all the cases which I've encoutered so far.
2021-11-02 03:24:55 +02:00
Slava Monich
1083992204 [app] Replaced QImage::pixelColor() with QImage.pixel()
QImage::pixelColor() was introduced in Qt 5.6. Besides, what we really
need here is QRgb rather than QColor.
2021-11-01 01:09:49 +02:00
Slava Monich
d4977b1a1f [app] Improved rendering of book covers
Especially narrow ones.
2021-11-01 00:40:49 +02:00
Slava Monich
a22d4f383a [app] Fixing issues with saving/restoring book position 2020-11-02 05:19:46 +02:00
Slava Monich
4e479a3381 [app] Fixed detection of removable storage for non-nemo users
I'm wondering why it was renamed in the first place :/
2020-11-01 16:32:41 +02:00
Slava Monich
94a5f981a7 [app] Dropped HarbourImageProvider
HarbourHighlightIcon works better
2020-10-23 01:53:04 +03:00
Slava Monich
cfa9a1ad79 [harbour-lib] Pulled in HarbourLib updates
Replaced BooksMediaPlugin and BooksPolicyPlugin with
HarbourMediaPlugin and HarbourPolicyPlugin, respectively.
2020-10-22 04:01:33 +03:00
Slava Monich
b31da67dd3 [app] Explicitly set thread affinity for RenderTask
BooksPageWidget::paint() isn't necessarily called on the main GUI thread.
2020-09-28 05:17:58 +03:00
Slava Monich
04e5a721e8 [app] Added bookPos role to the book model
And fixed a bunch of paging/rotation issues (or at least tried to)
2020-09-28 02:37:14 +03:00
Slava Monich
e4cbab0301 [app] Made night mode brightness configurable
Brightness control is implemented by rendering content with transparent
background, providing background as a separate item behind the content
and adjusting opacity of the content item according to the selected
brightness.
2020-09-21 00:53:21 +03:00
Slava Monich
429c58efb0 [app] Dropped BooksFeedback
Now that QtFeedback is allowed in Jolla Store, it's no longer needed
2020-09-17 01:30:34 +03:00
Slava Monich
902569313a [app] HarbourImageProvider needs HarbourTheme 2020-02-04 19:51:12 +02:00
Slava Monich
7ba8a502b3 [app] Colorize SD-card icon according to ambience 2020-02-04 01:48:10 +02:00
Slava Monich
d2bc2d10cd [app] Made BooksHints a singleton 2020-02-03 04:34:37 +02:00
Slava Monich
4bc47ef775 [app] Made BooksFeedback a singleton
And only do bzzzzz once, when selection is started.
2020-02-03 04:28:00 +02:00
Slava Monich
8529942924 [app] A few more tweaks to reduce jumping between the pages 2020-02-03 03:09:13 +02:00
Slava Monich
6b5fb10b15 [app] React to jumpToPage signal from BooksBookModel
To ensure correct initial position of the view.
2020-02-03 02:50:03 +02:00
Slava Monich
78372a0963 [app] Create sample book on the first time run 2019-04-01 13:34:33 +03:00
Slava Monich
e1f75ed04a [app] Only use those HarbourLib classes that we really need 2019-03-31 04:03:16 +03:00
Slava Monich
e79aa80b83 [app] Bump marks file version to force re-paging
It's necessary because recent changes affect layout.
2018-07-27 01:30:22 +03:00
Slava Monich
278baef519 [app] Added dconf option to turn pages by tapping the screen 2018-07-24 00:06:39 +03:00
Slava Monich
73f4e53933 [app] Allow to fix page layout
Some users are annoyed by page layout changing after accident tap
2018-07-23 00:52:14 +03:00
Slava Monich
7b38eca3f2 [app] Support for SD-card labels containing spaces
Spaces which are part of the path get replaced with \040 in /proc/mounts
2018-06-08 17:26:12 +03:00
Slava Monich
fbadaf142c [app] Support new SD-card mount location in Sailfish OS 2.2.0
It used to be mounted at /media and now it's /run/media
I need to find a better way to detect removable media.
2018-06-08 15:17:57 +03:00
Slava Monich
cfcb0b7fbc [app] Set target thread for HashTask 2018-05-17 20:15:29 +03:00
Slava Monich
3ccc36e335 [app] Added keepDisplayOn option 2018-05-16 23:55:43 +03:00
Slava Monich
57801ed140 [app] Dropped BooksTask in favor of HarbourTask 2018-05-16 18:27:12 +03:00