poire-z
3dd18d2a3b
Fix "start with history" misalignment
...
due to a side effect with coverbrowser. CenterContainer is no
more needed as History is now full screen.
2017-08-18 10:37:46 +02:00
robert00s
7919026a19
Fix: crash when incorrect value in input page number
2017-08-06 15:58:37 +02:00
Qingping Hou
23c2955500
chore: style cleanup for infomessage
2017-05-08 09:38:48 +02:00
Frans de Jonge
e1aa57f27e
Font: unify font styling
2017-04-29 03:01:38 -07:00
Bastien Dejean
ee54e127b1
FileManager: replace arrows by ellipsis to indicate cut-off long filenames
2017-02-20 18:08:28 -08:00
Frans de Jonge
bec5f46245
Merge pull request #2524 from Hzj-jie/master2
...
Add characters in menu items to indicate sub menus
2017-02-08 10:43:40 +01:00
Hzj_jie
18117584c0
Resolve review comments
2017-02-03 20:26:47 -08:00
Hzj_jie
c33d1aa43b
Use 25b9 instead of >
2017-02-01 19:52:47 -08:00
Hzj_jie
fa848719ae
>
2017-02-01 08:17:01 -08:00
Hzj_jie
98a86ba62f
prepose plus signal
2017-02-01 07:46:35 -08:00
Hzj_jie
c90a484d01
Add a + for menu items with sub menu
2017-02-01 07:34:51 -08:00
Hzj_jie
f91ad679d9
swithItemTable -> switchItemTable
2017-02-01 06:26:06 -08:00
robert00s
7ff1731aab
Fix #2326
2017-01-10 19:02:46 +01:00
Qingping Hou
f95ad00b9e
feat: add logger module & rewrite kobo suspend script in lua
2017-01-02 19:52:09 -08:00
retrue
eae730d140
Some uppercase fixes ( #2421 )
2016-12-14 11:08:57 -08:00
poire-z
0aa19d72a0
FileManager: show files with sidecar dir in bold ( #2391 )
...
docsettings : added hasSidecarDir() and made getSidecarDir() more robust
widget/menu : allow items to specify themselves to be displayed in bold
2016-12-04 15:51:12 -08:00
chrox
6ec30376a6
fix two crashes
2016-06-28 00:45:01 +08:00
Qingping Hou
11ee8d6fcc
refactor: use new KeyValuePage widget for displaying statistics
2016-02-14 21:54:17 -08:00
Alex Pletnev
a6ebbe9adb
#1807 FR: Add separator into menu
2016-02-11 18:47:27 +02:00
Qingping Hou
4759def09c
chore: fix static-check errors
2016-01-02 23:45:23 -08:00
chrox
b0df6d53e9
add Basic Authentication for OPDS catalog
...
use coroutine to support ad-hoc callback in login button so that when
the username/password is incorrect it will retry automatically
currently tested with COPS on apache
This should fix #1001 .
2015-09-15 00:59:00 +08:00
NiLuJe
6309df9dec
Guard against nil text in menu widget
...
Allow one to go further in the FM's setting menu on legacy devices...
... and potentially shoot oneself in the foot because of the unusable
confirmdialogs (among other things ;p).
2015-09-06 17:23:48 +02:00
frankyifei
d0a44b9152
style
2015-08-01 19:20:10 +09:30
frankyifei
f7fb103abc
loop menu pages when it reaches ends
...
the following graph shows my idea.
1->2->3->4->5->6->7->8->9->10
└----------------------------------------┘
2015-08-01 19:14:40 +09:30
NiLuJe
c847807322
Turns out that also looks better as ui refreshes
2015-04-26 20:10:18 +02:00
NiLuJe
50dbf6b581
Switch a few widgets to ui refresh modes
...
More closely matches native behavior on REAGL devices.
Closing those widgets should still trigger a partial refresh though,
because we usually get back to the reader, and text, so we want REAGL
;).
2015-04-26 20:07:17 +02:00
chrox
ebdd374c93
Add 'input page number' function in filemanager
...
by holding on the page info label at the buttom of the filemanager
2015-04-13 14:45:05 +08:00
chrox
c6f6699644
fix empty menu widget won't trigger screen refresh
...
This should fix #1398 .
2015-02-01 20:41:23 +08:00
Qingping Hou
6ed8f30f35
fix: empty item_table crashes menu widget
2014-12-18 03:16:11 -05:00
chrox
b3d79b053a
workaround to fix #1340
2014-12-04 10:09:09 +08:00
Hans-Werner Hilse
ff0fbbdb4b
fix widget closing
2014-12-01 16:21:42 +00:00
Hans-Werner Hilse
94ce08937a
clean up refreshes
...
This is a larger clean-up of the refresh situation.
The general shift is that refreshes are now mainly triggered by
the (top-level) widgets when they get shown or closed via UIManager.
All refreshes for the widgets when they are in use were handled by
themselves before. This adds the case of showing/closing.
It is the desired result of not having UIManager:show()/:close()
do (full screen) refreshes on its own.
2014-12-01 16:03:40 +00:00
Hans-Werner Hilse
f02be20a65
refresh fixes for the menus
...
this will only refresh the areas that actually need to be refreshed.
2014-11-30 12:04:33 +00:00
Hans-Werner Hilse
82c26b1f18
adapt widgets to new refresh/repaint API
2014-11-30 00:17:50 +00:00
chrox
ca60ceacd0
make radius field respects popout flag
2014-11-27 22:01:57 +08:00
Hans-Werner Hilse
22697adf20
switch from scaleByDPI() to scaleBySize()
2014-11-23 12:13:32 +00:00
chrox
d11dba0558
fix #1169 and #1170
2014-11-23 18:06:20 +08:00
Frans de Jonge
d701d9b198
First util.template encapsulated strings
2014-11-19 12:23:37 +01:00
Hans-Werner Hilse
3066c86e38
Refactoring hardware abstraction
...
This is a major overhaul of the hardware abstraction layer.
A few notes:
General platform distinction happens in
frontend/device.lua
which will delegate everything else to
frontend/device/<platform_name>/device.lua
which should extend
frontend/device/generic/device.lua
Screen handling is implemented in
frontend/device/screen.lua
which includes the *functionality* to support device specifics.
Actually setting up the device specific functionality, however,
is done in the device specific setup code in the relevant
device.lua file.
The same goes for input handling.
2014-11-02 21:19:04 +01:00
Qingping Hou
394c847e2b
fix(app): initilize menu properly in reader and filemanager
2014-10-25 05:46:02 -04:00
Qingping Hou
d1627337e0
fix(ui): fix dynamic menu height calculation
2014-10-25 04:03:37 -04:00
Hans-Werner Hilse
5982e24d57
unify color specification
...
colors were a mixture of 4bpp integers (0=white, 15=black) and
fractional blackness levels (0=white, 1.0=black) before. This is
now unified to use the color specification of the Blitbuffer API.
2014-10-24 13:48:42 +02:00
chrox
c994e30cff
fix #1024
...
if toc item has expand/collapse state and tap select on the left side
the state switch action is triggered, otherwise goto the
linked page.
2014-10-21 22:18:07 +08:00
chrox
7c9130744c
add collapsable TOC menu
2014-10-14 21:34:56 +08:00
Hans-Werner Hilse
7b1777e095
adapt widgets and text rendering to new font rendering
...
no background for text rendering anymore
2014-10-04 15:54:03 +02:00
chrox
cf882a078a
fix page number of sub-menu is not updated
2014-09-13 14:00:57 +08:00
chrox
69bb4a3df3
add return button in menu
2014-09-05 21:07:43 +08:00
chrox
2bec0017a0
refactor out global functions showHomePage and showReaderUI
2014-09-05 21:07:42 +08:00
chrox
c74c258fc7
add filemanager icon in reader menu
...
now we can access the filemanager in all launcher configurations
2014-09-05 21:07:42 +08:00
WS64
dd70023c2c
Add a parameter to swithItemTable to jump directly to this item
2014-08-12 09:36:23 +02:00
NiLuJe
8b6c5a2e2e
Tweak the spacer appearance condition
...
Make it sync with the first/last icon, instead of always showing it.
Doesn't change much, since it's invisible, but, still, more correct this
way ;).
2014-08-05 17:52:29 +02:00
NiLuJe
bd32e1f10a
Add some breathing room to the FM icons.
...
In the form of a spacer icon between the first/last icon and the
next/prev one. Should help with fatfingeritis.
2014-08-05 17:41:36 +02:00
WS64
2968960a35
Filemanager: Added "first" and "last" page functionality
2014-07-30 09:00:02 +02:00
chrox
f13a165c4b
tweaks of font size
2014-06-10 21:33:31 +08:00
chrox
b8626f6098
pass onClose gesture to Menu widget
2014-06-10 21:33:31 +08:00
chrox
e624695d54
the Back key on Android should close the popup window and menu
2014-06-10 21:33:31 +08:00
chrox
857bd6fcc8
strings not shown on GUI will not be translated
...
This may encourage users in transifex to join Koreader project.
2014-06-05 14:59:06 +08:00
nicolua
90d9c3ddb1
menu on k3
2014-05-30 17:11:46 +03:00
chrox
5b99b478b2
fix not fully filled items in filechooser
...
reported by mobileread user @ignacy
2014-05-02 12:48:00 +08:00
chrox
877cff2933
invert button on tap
2014-05-01 18:37:12 +08:00
chrox
4a32f4415e
use borderless flat bookmark/toc window
2014-04-04 23:37:50 +08:00
chrox
ac396e3aa9
highlight current toc entry
2014-04-04 23:02:29 +08:00
chrox
92219a1f1e
cleanup: expand tab to 4 spaces
2014-03-13 21:52:43 +08:00
chrox
b3b0844f34
basic functionality on file copy/paste/cut/delete in filemanager
...
There file operations will popup when holding on file entries
in filemanager.
This should implement #244 .
2014-01-18 23:17:13 +08:00
chrox
b0d27a021d
tweaks on menu font size
2013-12-26 06:19:48 +08:00
chrox
42c5ae2ac0
add option to display file size in filemanager
...
file size is not shown by default
2013-12-19 23:20:16 +08:00
chrox
ea91cdb4be
set title bar height to height of text widget in Menu widget
...
without the height of the close button widget
This will make room for one more menu item entry and fix #355 and #394 .
The larger tap zone for close button widget is still there.
2013-12-15 13:51:17 +08:00
HW
748a443cd5
Merge remote-tracking branch 'upstream/master'
...
resolved conflicts with refactored structure
2013-10-22 17:19:08 +02:00
HW
2154e7e852
Further refactoring
...
This should finish the work to make all globals to local variables.
That allows LuaJIT to properly compile things by interning the
references to the relevant parts (rather than looking up globals
all the time which stops a trace).
2013-10-22 17:11:31 +02:00
HW
ef111b99c6
Refactored to use strictly locals
2013-10-18 22:38:07 +02:00
Giorgio Micotti
a7d545632a
Nicer close button, solves #321 .
2013-10-18 21:03:28 +02:00
chrox
c829b01d67
fix onSelect revert on config and menu
2013-10-16 20:54:53 +08:00
chrox
5cc8fc4c10
update page info layout in menu
...
this should fix #281
2013-10-13 16:50:28 +08:00
chrox
3934176b6c
emulator has keyboard now
2013-10-13 15:28:40 +08:00
chrox
1c728d6945
fix widget out-of-bound in bookmark and toc menus
...
The original menu layout needs manual dimension calculations
such as white padding for displaying page information in
footer as the title, all item contents and footer are stacked
in one VerticalGroup. Out-of-bound error(koreader/koreader-base#43 )
will occur in some corner cases if we missed something in
the calculation. The patch sent in this PR invented a new
layout for menu widget in which no manual calculation is needed
for displaying the footer. And the footer will be placed well
inside the menu frame.
+--------------+
| +----------+ |
| |+--------+| |
| || Header || |
| |+--------+| |
| |+--------+| |
| || Item || |
| || Item || |
| |+--------+| |
| |(Vertical | |
| | Group) | |
| +----------+ |
| Footer |
|(OverlapGroup)|
+--------------+
2013-09-01 16:36:45 +08:00
Qingping Hou
c951eacc35
fix: reset current page on item_table switch for menu widget
2013-08-22 12:01:00 +08:00
Qingping Hou
c66429c903
add is_popout and no_title to menu widget
2013-08-14 05:18:09 -04:00
Qingping Hou
a0676790cd
fix unnecessary frontlight module require
2013-08-10 02:07:01 -04:00
Giorgio Micotti
cea353323e
Initial light control widget; final fixes for kobo light
2013-08-05 23:06:26 +02:00
chrox
1520fd7974
add page up/down buttons in menus that have more than one pages
2013-08-02 22:44:47 +08:00
Giorgio Micotti
8fa01bc76c
Fixes for higher DPI; make the X easier to reach.
2013-07-31 11:38:13 +02:00
Huang Xin
b6fcc85a45
Merge pull request #44 from th0mass/fe3fc9039909e6051321dd7d0b5ffbd42c886b8a
...
having a bigger close icon could be a good idea
2013-04-09 03:28:03 -07:00
Qingping Hou
ce0ab36908
add gettext to all widgets
2013-04-08 15:29:23 +08:00
th0mass
fe3fc90399
having an easy to press close button
...
though it is a bit "ugly" hence I'm not sure everybody will happy with this
2013-04-07 10:31:13 +03:00
chrox
ae40aad56e
use new directions in pan/swipe gesture
2013-03-28 21:07:38 +08:00
Qingping Hou
7f03dcd82b
remove LvDEBUG call
2013-03-16 14:40:51 -04:00
Qingping Hou
935ed5576c
add show_parent to menu widget
2013-03-16 14:15:50 -04:00
Qingping Hou
2a4282e8f5
bug fix in item_table_stack
...
should create a new one for each menu widget invoke
2013-03-16 13:45:00 -04:00
Qingping Hou
3c97c65f5c
minor fixes, add TouchMenu example to wtest.lua
2013-03-14 13:59:59 +08:00
Qingping Hou
c5ff50abdf
remove trailing spaces
2013-03-13 10:43:15 +08:00
Qingping Hou
10d980ed87
rearranged source tree
2013-03-13 01:18:53 +08:00