Commit graph

304 commits

Author SHA1 Message Date
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
7700148381 [app] Define app version in a more obvious place 2021-11-01 00:57:34 +02:00
Slava Monich
d4977b1a1f [app] Improved rendering of book covers
Especially narrow ones.
2021-11-01 00:40:49 +02:00
Slava Monich
d06e08a4de [app] Added 172x172 icon 2021-08-10 04:14:49 +03:00
Slava Monich
7ceb720633 [app] Show book count as menu label when appropriate 2021-08-07 04:49:49 +03:00
Slava Monich
902d6c20af [app] Mark more properties as readonly 2021-08-07 04:47:20 +03:00
Slava Monich
21c278dae6 [settings] Show app version and icon in the settings page
But only when it's opened from jolla-settings
2021-08-06 05:08:37 +03:00
Slava Monich
a2d1214e36 [settings] Perserve the layout when VKB is opened 2021-08-06 04:30:08 +03:00
Slava Monich
a952d3daa4 [build] Tweaked .qm file generation 2021-08-06 04:06:17 +03:00
Slava Monich
564a56bc56 [settings] Added dummy properties expected by jolla-settings 2021-05-15 22:41:53 +03:00
Slava Monich
ccff6a3ab6 [app] Use HarbourPressEffect 2021-05-15 22:17:28 +03:00
Slava Monich
a54415ba55 [settings] Added scroll decorator to the settings page 2021-05-15 22:00:34 +03:00
Slava Monich
1fc1d647a9 [app] Integration with My Backup 2021-05-15 21:51:45 +03:00
1Zgp
fa1911103e
Update harbour-books-hu.ts 2021-02-23 18:32:45 +02:00
Slava Monich
a8f4912409 [settings] Another way of fixing the problem of overlapping in landscape
Don't hide anything, just make the context menu as wide as the associated
grid slot. Works quite nicely.
2020-11-17 20:25:02 +02:00
dashinfantry
ecb19607bd
Update harbour-books-zh_CN.ts 2020-11-03 17:01:13 +08:00
Slava Monich
01736c1390 [app] Fixed page layout menu on Sailfish OS 2.0
Not sure what the problem was but this one works better.
2020-11-03 05:51:24 +02:00
Slava Monich
b220cbd60d [app] Avoid QML runtime warnings
"Unable to assign undefined to bool"
2020-11-03 05:30:56 +02:00
Slava Monich
a39ad381b0 [app] Tweaking look loading UI 2020-11-03 05:13:33 +02:00
Slava Monich
cf51192137 [app] Implemented a fancy way of closing the book
By swiping it up
2020-11-03 03:12:22 +02:00
Slava Monich
a22d4f383a [app] Fixing issues with saving/restoring book position 2020-11-02 05:19:46 +02:00
Slava Monich
6c2354d2e5 [app] Make pulley menus initially invisible
They will be made visible by BooksMainPage when needed.
2020-11-02 02:29:00 +02:00
Slava Monich
b74d57291c [app] Reduced number of flickables
That makes scrolling easier. It appears that nested flickables with the
same flicking direction are having hard time fighting for mouse events.
2020-11-01 19:03:59 +02:00
Slava Monich
7d4cd543c5 [app] Don't auto-scroll storage view if it's not visible
User expects to return to the same place where he/she opened the book
or the settings page.
2020-11-01 17:23:16 +02:00
Slava Monich
5fb0779519 [app] Fixed scrolling of storage view on SD card insertion
It was producing strange results if contentX was non-zero
2020-11-01 17:07:33 +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
carlosgonz
ad78da0107
Update harbour-books-es.ts 2020-10-26 21:37:43 -04:00
Slava Monich
c0bf4f92fb [settings] Optimized settings page for landscape orientation 2020-10-27 02:47:15 +02:00
Slava Monich
85c1f819f3 [app] Fixed a problem with marking pushed position as the current one 2020-10-26 02:08:30 +02:00
Slava Monich
f29facea94 [settings] Tweaked a string 2020-10-24 18:37:28 +03:00
Slava Monich
94a5f981a7 [app] Dropped HarbourImageProvider
HarbourHighlightIcon works better
2020-10-23 01:53:04 +03:00
Slava Monich
a03e4e3dc7 [app] Added UI to configure night mode brightnesss 2020-10-23 01:21:24 +03:00
Slava Monich
ca6f60132c [app] Release media keys when book page is inactive
E.g. when settings page is open on top of it.
2020-10-22 04:13:25 +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
8a247fb7e2 [settings] Fixed initial selection of orientation combo box 2020-10-10 19:02:42 +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
2646d8ad4f [app] Fixed some references to non-existent QML properties
QML desperately needs a compiler or at least a validator
2020-09-28 03:28:52 +03:00
Slava Monich
57ba89da1b [translations] pt_BR => pt 2020-09-28 02:59:17 +03:00
Slava Monich
f1f9dc226e [app] Allow to access settings from the book view
... at least in the Jolla store version. Most of those settings are
related to the book view, it may be quite convenient to access them
without closing the book.
2020-09-28 02:54:49 +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
19c28e5c51 [app] Avoid unpleasant flicking when pages are being dragged 2020-09-17 01:44:58 +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
4a4a78e769 [harbour-lib] Pulled in HarbourLib updates
Now this code has a chance to work on a 64-bit system
2020-09-15 17:55:20 +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
d1f8cf015b
Merge pull request #56 from dashinfantry/patch-4
[app] Updated Chinese translations
2020-02-03 03:12:20 +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
dashinfantry
e081bc202b
Update harbour-books-zh_CN.ts 2020-01-04 02:28:41 +08:00
Slava Monich
0bd4373862 [app] Use fixed color for folder title
Because the background color is fixed too.
2019-12-10 03:43:58 +03:00
Slava Monich
e76e6489dc [app] Added Chinese translation to the build 2019-12-04 12:27:07 +02:00
Slava Monich
8737d39840 [app] Fixed errors in harbour-books-zh_CN.ts 2019-12-04 12:26:20 +02:00
dashinfantry
35b6770bcd
Create harbour-books-zh_CN.ts 2019-12-04 13:20:49 +08:00
Slava Monich
78372a0963 [app] Create sample book on the first time run 2019-04-01 13:34:33 +03:00
Slava Monich
85473cb2b4 [app] Use HarbourLib QML components 2019-04-01 02:06:55 +03:00
Slava Monich
9422fa4f68 [app] Slightly tweaked the toolbar 2019-04-01 01:25:37 +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
8441340207
Merge pull request #48 from atlochowski/patch-2
[app] Updated Polish translations
2018-07-24 10:55:19 +03:00
A
ae511ba4fb
Update harbour-books-pl.ts 2018-07-24 09:46:05 +02:00
Åke Engelbrektson
61b6537915
Update harbour-books-sv.ts
new strings translated
2018-07-24 08:28:23 +02:00
Slava Monich
4af6dfe06f [app] Added settings UI for "Turn page by tap" option 2018-07-24 00:29:52 +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
be2b66f955 [app] Fixed a problem with paging animation 2018-07-23 23:55:24 +03:00
Slava Monich
5a765e391f [app] Added settings UI for page payout 2018-07-23 23:30:20 +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
6ee937d06e [app] Added Polish translations to the build 2018-05-21 17:26:37 +03:00
A
0d10315090
Create harbour-books-pl.ts 2018-05-21 13:47:43 +02:00
Slava Monich
c6fefd05fe [app] Translate app name to Brazilian Portuguese 2018-05-19 12:46:50 +03:00
Slava Monich
654b2b6c94 [app] Added Brazilian Portuguese translations
Thanks to TamarindoJuice from OpenRepos.net
2018-05-19 12:08:10 +03:00
Slava Monich
e1b87d528b
Merge pull request #44 from 1Zgp/patch-1
[app] Updated Hungarian translations
2018-05-18 11:26:25 +03:00
1Zgp
a1fc2c3354
Update harbour-books-hu.ts 2018-05-18 08:12:03 +03:00
Åke Engelbrektson
d823075f96
Update harbour-books-sv.ts
Translated new strings
2018-05-18 06:30:25 +02:00
Slava Monich
cfcb0b7fbc [app] Set target thread for HashTask 2018-05-17 20:15:29 +03:00
Slava Monich
6c62bad2a7 [app] Added settings UI for keepDisplayOn option
New strings are only translated to English, Finnish and Russian.
Help is needed to translate them to other languages.
2018-05-17 11:52:04 +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
Slava Monich
b78201060b [app] Fixed a few memory leaks 2018-05-06 02:02:15 +03:00
Slava Monich
12eb3919dc [app] Added openrepos variant 2018-04-27 01:06:15 +03:00
Slava Monich
5cd1036db7 [app] Added translations for the app grid label (es, hu, nl) 2018-02-26 17:43:41 +02:00
Slava Monich
c8f643d8e3 [app] Fixed compatibility with Sailfish OS < 2.1.0
Notification object didn't have the "icon" property until Sailfish OS 2.1.0.
Its presense needs to be checked at run time.
2018-02-26 17:39:30 +02:00
Slava Monich
7822f05631 [app] Added Hungarian translations to the build 2018-02-18 20:35:02 +02:00
1Zgp
0545fc6312 [app] Create harbour-books-hu.ts
Hungarian translation for Books.
2018-02-18 20:32:49 +02:00
Slava Monich
8e9def08eb [app] One more place where currentPageChanged should be emitted 2018-02-10 20:26:08 +03:00
Slava Monich
fb23764d9c [app] Use separate task queue for the hashing task 2018-02-04 13:11:07 +03:00
Slava Monich
9e9d954722 [app] UI tweaks 2018-02-04 13:09:08 +03:00
Slava Monich
fec438e494 [app] When renaming the folder, rename the config/cache directory too 2018-02-04 11:55:16 +03:00
Slava Monich
bf38202e31 [app] Added missing BooksStorage::fullConfigPath implementation 2018-02-04 11:14:22 +03:00
Slava Monich
28a814dd26 [app] Handle the case if hash can't be stored as fs attr (e.g. SD-card)
Assume that the hash from page marks file is correct and verify it
later when the file hash gets recalculated.
2018-02-02 11:51:32 +03:00
Slava Monich
01987a8fa5
Merge pull request #37 from p4moedo/master
Spanish (es) translation
2018-02-02 01:35:39 +03:00
Slava Monich
76b1e20e1a [app] BooksUtil::computeFileHash should take const BooksTask pointer
And so should BooksUtil::computeFileHashAndSetAttr
2018-02-02 01:11:23 +03:00
p4moedo
eb105f7f9d
Added Spanish (es) translation 2018-02-01 22:45:13 +01:00
p4moedo
0ff9832450
Create harbour-books-es.ts
Spanish (es) translation
2018-02-01 22:44:01 +01:00
Slava Monich
09fc0cbe3e [app] Turned some warnings into debug messages 2018-01-31 15:15:57 +02:00
Slava Monich
7b7f8b9e97 [app] Tweaked the selection background 2018-01-31 15:00:27 +02:00