Commit Graph

32 Commits (369cf4f102bfdd691a696bf149a89f0e4c43ead2)

Author SHA1 Message Date
Robert 369cf4f102 [UX] Improve ConfigDialog (#3443) 7 years ago
poire-z 2fc8076139 Better vertical centering of text in its box
Decide baseline vertical position according to font metrics, instead
of the hardcoded 0.7 (in textwidget, which made the text a little
bit up in its box), and 0.75 (in toggleswitch, which made the text a
little bit down in its box). This usually gives a value around 0.72
or 0.73 with our ui fonts, which looks about right.
ReaderFooter: add bottom padding, now that our text goes a few pixels lower
7 years ago
Frans de Jonge a6be301695 Added Size module 7 years ago
Frans de Jonge 9eb073a524 [travis] Add protection against unscaled sizes
As pointed out by @poire-z

* [fix, UX] SkimToWidget scaling

* [fix] Button scaling

* [fix, UX] Scale ProgressWidget

* [fix, UX] Scale confirmbox

* [fix, UX] Scale just about everything
7 years ago
poire-z 1e17e4c291 Fix crash when tapping on toggleswitch left or bottom borders (#3181) 7 years ago
Qingping Hou a10a4f65a5 minor: use predefined color instead of gray method 8 years ago
Zijie He 1aa0c4192a Multi-line toggle switch & add instruction to resolve sdcv build error. 8 years ago
Qingping Hou 4759def09c chore: fix static-check errors 8 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
;).
9 years ago
chrox 72012e97e1 disable reflow options when reflow is not ON
This should also fix #1061.
9 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 3574865dcb fix #1166 by auto alignment of option name 10 years ago
NiLuJe 39244aa0cb Make ToggleSwitch updates regional 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
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
chrox 6152198e88 still needs button bgcolor
This bgcolor is for framecontainer background color.
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
chrox e7fc16dd25 hold on config panel option to set default option 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 92219a1f1e cleanup: expand tab to 4 spaces 10 years ago
chrox 98f1c90d87 make dictionary title, toggle option and button text bold 10 years ago
chrox e21e017b8d tweaks on config dialog for crereader 11 years ago
chrox 71b3e717cf refactoring onConfigChoose 11 years ago
chrox 2ffd9bbeef tweaks on config dialog responsiveness 11 years ago
HW 09cd5c4104 Make DEBUG a require()d local 11 years ago
HW ef111b99c6 Refactored to use strictly locals 11 years ago
chrox ead331924f fix toggle color inconsistency 11 years ago
chrox 87296fe884 set larger toggle switch width 11 years ago
Qingping Hou ce0ab36908 add gettext to all widgets 11 years ago
chrox 6ec22c73a0 use inverted font color in toggle switch 11 years ago
Qingping Hou 10d980ed87 rearranged source tree 11 years ago