Frans de Jonge
cda148e4b7
[UX] Add CheckMark and use in TouchMenu checkable indicator
...
Uses `✓` overlaid on `▢` to create the checkbox.
7 years ago
Frans de Jonge
e1aa57f27e
Font: unify font styling
8 years ago
Qingping Hou
76e427cbb4
kodev: add device simulation option for run command ( #2802 )
8 years ago
Frans de Jonge
89099e2c94
Swipe for menu and quickstart guide ( #2761 )
...
* Swipe for menu and quickstart guide
Because swiping for the menu is a big change from what we're used to, this commit includes a new quickstart guide.
Fixes #2608 .
* add some dev docs
* add FileConverter spec
* add QuickStart spec
* add Version module
* add Version spec
8 years ago
Frans de Jonge
cee3603436
TouchMenu: keep hamburger menu on the right
8 years ago
Hzj_jie
ed461c7f30
InputDialog is broken by #2672 ( #2690 )
...
This change also adds a tap_input_func in both TouchMenu and Button.
8 years ago
Frans de Jonge
99349173be
TouchMenu [widget]: remove check for missing menu item
8 years ago
Frans de Jonge
8f31a81601
MenuSorter: some documentation
...
MenuSorter: forgot to add plugin style change
MenuSorter: worked out the final quirks
* Menu always compressed into tables without missing indexes for ipairs compatibility
* Orphans attached
* Separators no longer count as items
8 years ago
Frans de Jonge
5b20106db7
MenuSorter: initial implementation
...
* Menus are now sanely configurable
* Custom separator placement for clearer menus
8 years ago
Hzj_jie
8f4ec13841
Remove powerd:refreshCapacity() ( #2671 )
8 years ago
Frans de Jonge
ce8f568486
Revert "TouchMenu: keep file/exit button on the right"
8 years ago
Bastien Dejean
f72514f99d
Use a simple gray line to separate menu items
8 years ago
Frans de Jonge
a9b969b58f
TouchMenu: keep file/exit button on the right
...
References #2555 .
8 years ago
Frans de Jonge
d1785e1863
Reorganize menus
...
* Replace "home" (exit) menu with hamburger
* Discard pokeball and put items in hamburger
* Introduce search menu in reader
Cf. #2562
8 years ago
Hzj_jie
18117584c0
Resolve review comments
8 years ago
Hzj_jie
c33d1aa43b
Use 25b9 instead of >
8 years ago
Hzj_jie
fa848719ae
>
8 years ago
Hzj_jie
98a86ba62f
prepose plus signal
8 years ago
Hzj_jie
c90a484d01
Add a + for menu items with sub menu
8 years ago
Qingping Hou
29578d74eb
touchmenu(fix): reset page num before switching to sub menu
8 years ago
Qingping Hou
20eb36a03d
feat: add network management UI for kobo
8 years ago
Qingping Hou
a10a4f65a5
minor: use predefined color instead of gray method
8 years ago
Qingping Hou
0772fd1439
touchmenu: fix menu height calculation
9 years ago
Qingping Hou
6a6469fa09
more luacheck fixes
9 years ago
Qingping Hou
11ee8d6fcc
refactor: use new KeyValuePage widget for displaying statistics
9 years ago
Qingping Hou
4759def09c
chore: fix static-check errors
9 years ago
NiLuJe
bfb2ee703a
Force poll the battery when showing the menu.
...
Making sure to always show up to date info.
Also fix the battery polling cache invalidation logic to actually
work?
Should make it behave properly on devices where we handle resuming
ourselves.
9 years ago
Qingping Hou
63e88baf33
fix: stop self.dimen polution for inputcontainers
...
Without this fix, self.dimen is shared among all inputcontainers
intances, which breaks some of the UI rendering. All widget should
set/initialize their own self.dimen in self:init() method.
9 years ago
NiLuJe
ce5f66ccbc
Prefix battery percentage w/ a + when charging.
...
Adresses comments on MR.
Add a comment explaining the magic behind CRe's charging icon when using
CRE's full (top) status bar.
9 years ago
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
└----------------------------------------┘
9 years ago
NiLuJe
c847807322
Turns out that also looks better as ui refreshes
10 years ago
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
;).
10 years ago
chrox
ebdd374c93
Add 'input page number' function in filemanager
...
by holding on the page info label at the buttom of the filemanager
10 years ago
chrox
cf124eb72f
refresh menu instead of closing if menu item is a check option
10 years ago
Hans-Werner Hilse
ff0fbbdb4b
fix widget closing
10 years ago
Hans-Werner Hilse
f02be20a65
refresh fixes for the menus
...
this will only refresh the areas that actually need to be refreshed.
10 years ago
Hans-Werner Hilse
82c26b1f18
adapt widgets to new refresh/repaint API
10 years ago
Hans-Werner Hilse
22697adf20
switch from scaleByDPI() to scaleBySize()
10 years ago
chrox
dbf8faa9b1
remove hardcoded footer height of reader menu
10 years ago
Frans de Jonge
8b9bbf918c
Fix typo in #1176
10 years ago
Frans de Jonge
d701d9b198
First util.template encapsulated strings
10 years ago
NiLuJe
e9573ebe58
Try to avoid more update_regions_func mismatches
...
scheduling tricks
10 years ago
chrox
efbd7f7b5d
schedule in menu option callback
...
so that new reginal update on menu entry don't
affect screen update from callback results
10 years ago
Qingping Hou
123d0a1230
Merge pull request #1126 from chrox/wifi_toggler
...
add network settings in reader menu
10 years ago
Qingping Hou
fac2e121d2
Merge pull request #1124 from chrox/remember_menutab
...
remember menu tab index when showing reader menu
10 years ago
chrox
590073e4a8
add network settings in reader menu
...
and remove the wifi toggler on the footer of each menu page,
so that network status is only checked (currently with the stdout of ip cmd)
when navigating to the "Network settings" submenu instead of checking
on each menu popup.
10 years ago
NiLuJe
b88e304845
Make TouchMenu updates regional
10 years ago
chrox
95ac27df5c
remember menu tab index when showing reader menu
10 years ago
chrox
8ddca4bf49
close reader config panel when touching reader menu
10 years ago
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.
10 years ago
chrox
dfcd67c5bf
move screenshot settings to submenu of Screenshot entry in readermenu
...
And also fix a touchmenu bug that prevent some menu entries
(always at the bottom of the menu) from showing submenus. The reason is
that the onTapSelect method of TouchMenuItem doesn't return true, so that
the tap gesture will propagate to the parent widget and be captured by
touchmenu itself. But at this time the dimen of touchmenu is changed to
the submenu of the tapped menuitem. If the submenu is short enough the
tap will be outside of touchmenu which will cause a TapCloseAllMenus
event and the submenu will never be shown.
10 years ago
Michael Hall
dd80d61155
Leave both readerconfig and readermenu open on wifi toggle
10 years ago
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.
10 years ago
Hans-Werner Hilse
7b1777e095
adapt widgets and text rendering to new font rendering
...
no background for text rendering anymore
10 years ago
Michael Hall
96aa795618
Adding Touch Menu Wifi Status icon/Toggler for Kobo and Kindle. Change to
...
NetworkMgr:getWifiStatus() to ping default gateway instead of 8.8.8.8.
10 years ago
chrox
55554acf39
refactoring: buildin hold on menu entry to input
10 years ago
chrox
87e667748a
add font size menu entry
...
It changes screen DPI and may needs to reboot the reader to take effect.
This should fix #746 .
10 years ago
NiLuJe
d45efd81d8
Add a battery indicator to the menu.
...
Very quick'n dirty hack, doesn't seem to blow up horribly.
re: #679
10 years ago
chrox
b0b2149a92
touch menu entry now responses hold gestures
10 years ago
chrox
f13a165c4b
tweaks of font size
10 years ago
chrox
e624695d54
the Back key on Android should close the popup window and menu
10 years ago
chrox
0f829390d6
decrease indentation of touch menu entries
10 years ago
chrox
3ae68399eb
add previous and next chevron icon in touch menu
10 years ago
chrox
d2eaeeaeed
add option to load last opened file automatically
10 years ago
chrox
857bd6fcc8
strings not shown on GUI will not be translated
...
This may encourage users in transifex to join Koreader project.
10 years ago
chrox
427da958cb
adapt touch menu for small screen
10 years ago
chrox
9f4f5fa451
auto adaptation for much smaller screen
10 years ago
chrox
877cff2933
invert button on tap
11 years ago
chrox
92219a1f1e
cleanup: expand tab to 4 spaces
11 years ago
chrox
b6b3207a79
swipe north/south in touch menu should also turn page
11 years ago
chrox
bc960dcf01
mutable menu item text for 'Toggle page overlap'
11 years ago
chrox
32cd7b2a88
show both reader menu and config menu when tapping top
...
So the bottom tap zone is optional now and will be removed by default
in the future.
11 years ago
HW
ef111b99c6
Refactored to use strictly locals
11 years ago
Qingping Hou
92cbbabbcf
bug fix in touchmenu, reset menu page on go up
12 years ago
Qingping Hou
0a40658a9d
bug fix in touchmenu: properly set max menu height
12 years ago
Qingping Hou
ce0ab36908
add gettext to all widgets
12 years ago
chrox
bbda1362e3
tweaks on widget alignment in touch menu
12 years ago
chrox
2fc897bc25
add time information in menu footer by neoquest in hi-pda forum
12 years ago
chrox
ae40aad56e
use new directions in pan/swipe gesture
12 years ago
Qingping Hou
bf2b853fd8
add callback to touchmenu bar icon
12 years ago
chrox
17e967a227
bugfix: calculate width of TouchMenu each time when TouchMenu is created
12 years ago
Qingping Hou
4dfb683b78
remove done todo
12 years ago
Qingping Hou
a4b17061a5
add page counting in touchmenu & bug fix for sub_item_table
12 years ago
Qingping Hou
e44bedfea2
listen swipe gesture in touchmenu
12 years ago
Qingping Hou
495a173ed0
add scaleByDPI and use it in touchmenu
12 years ago
Qingping Hou
ad704fa9c2
give a better name for parent
12 years ago
Qingping Hou
eaf43dc30b
add go back button to touchmenu
12 years ago
Qingping Hou
c9c72522b9
add submenu support for touchmenu
12 years ago
Qingping Hou
9840a71335
put menu item callback and closing ops to scheduler
...
Otherwise, inverted menu item will not be shown
12 years ago
Qingping Hou
38a6ea96d7
fix: set parent on TouchMenuItem
12 years ago
Qingping Hou
44d0a99efd
first demo of touch menu
12 years ago