Commit Graph

36 Commits

Author SHA1 Message Date
Lorenzo Cogotti 11aacba7ed [README] Mention ldoc documentation. 2022-11-06 17:48:22 +01:00
Lorenzo Cogotti 3e5b825b36 [config.ld] Update links in config.ld too. 2022-11-06 17:46:53 +01:00
Lorenzo Cogotti 06dd90ff63 [crush] Update crush.lua. 2022-11-06 17:45:16 +01:00
Lorenzo Cogotti 30d76aaab5 [README,.lovedeps] Update links. 2022-11-06 17:44:57 +01:00
Lorenzo Cogotti 958206f1f7 [*] Rework theme customization.
This commit allows more flexible and consistent theme overriding
rules for each Widget. There are 3 levels of customization.

1. Global theme (yui.theme) this is the default theme for every Ui
2. Ui theme, this overrides the global theme and provides a default
   for every Widget of the Ui
3. Widget theme, this overrides the Ui theme for a single widget

This commit also allows themes to specify a font field.
This replaces the sparse color, font and cornerRadius field often
provided by each Widget.
Widgets and Uis may also partially override a theme by specifying
only a few fields.
2022-10-25 19:06:57 +02:00
Lorenzo Cogotti 84d234fca6 [*] Style improvements, make constructors callable by :.
That is the recommended style for class constructors.
2022-10-25 13:26:30 +02:00
Lorenzo Cogotti 43e9b8f8f7 [ui] Elaborate more on drop events flags. 2022-10-02 19:44:39 +02:00
Lorenzo Cogotti 16bf7cbae8 [input] Reduce overlong text margin. 2022-10-02 18:53:00 +02:00
Lorenzo Cogotti c449b8c53f [input] Reset cursor position on focus change. 2022-10-02 18:52:39 +02:00
Lorenzo Cogotti e38e6fcfb5 [ui] Fix focus stealing, minor style fixes. 2022-10-02 18:45:54 +02:00
Lorenzo Cogotti b06d56b945 [input] Invoke onChange() on text change. 2022-10-02 17:54:00 +02:00
Lorenzo Cogotti 4d2083d143 [crush] Update crush.lua to latest version. 2022-10-02 16:51:19 +02:00
Lorenzo Cogotti 432e913f4b [choice] Fix default nowrap value. 2022-10-02 16:48:48 +02:00
Andrea 91ed7f50f5 [*] add documentation 2022-09-12 09:36:03 +02:00
Lorenzo Cogotti 05e55add65 [widget] Turn recalculateBounds() into a method, as it should be. 2022-09-02 12:26:17 +02:00
Lorenzo Cogotti 07b8252c22 [input] Handle drawing text larger than the input box. 2022-08-25 09:35:30 +02:00
Lorenzo Cogotti 08853ce041 [README] Add example repository. 2022-08-24 22:16:17 +02:00
Lorenzo Cogotti 3150cb3c6b [README] Mention Gspöt among the similar projects. 2022-08-24 17:28:48 +02:00
Lorenzo Cogotti e1bfe546f9 [README] Fix image link. 2022-08-24 17:21:13 +02:00
Lorenzo Cogotti ac3df18518 [README] Use remote link for yui preview. 2022-08-24 17:17:22 +02:00
Lorenzo Cogotti 1d42498ee7 [*] General code improvement.
* Rework navigation allowing direct management and triggering for grabkeyboard widgets.
* Navigation code now behaves better with deeply nested layouts.
* Allow widget hierarchies deeper than 2 (__call() is implemented for every Widget metatable).
* Make BASE locals more secure (match '<filename>$' in regexp)
2022-08-24 11:18:48 +02:00
Lorenzo Cogotti 3b2b460012 [README] Formatting fix. 2022-08-17 17:28:06 +02:00
Lorenzo Cogotti f4577aa9d6 [README] Improve language. 2022-08-17 17:27:11 +02:00
Lorenzo Cogotti 321cea1f06 [examples] Scale down "Hello, World!" preview. 2022-08-17 17:06:29 +02:00
Lorenzo Cogotti 5332fa7320 [examples,README] Include "Hello, World!" example. 2022-08-17 17:04:25 +02:00
Lorenzo Cogotti 82f84aa35b [README] Improve wording. 2022-08-17 15:52:26 +02:00
Lorenzo Cogotti 6b7b987940 [README] Improve project description and usage docs. 2022-08-17 13:35:30 +02:00
Lorenzo Cogotti f098b1cbd5 [layout] Fix pointer handling code. 2022-08-16 11:33:22 +02:00
Lorenzo Cogotti 651e095000 [ui] Fix timer require path (again)... 2022-08-16 11:24:41 +02:00
Lorenzo Cogotti 4705a9c86a [ui] Fix Timer package path. 2022-08-16 10:41:35 +02:00
Lorenzo Cogotti dd255e19ac [ui] Fix device require() path. 2022-08-16 09:49:37 +02:00
Lorenzo Cogotti e70537142e [columns,rows] Remove superfluous widget types, leave containers as Layouts. 2022-08-16 09:49:14 +02:00
Lorenzo Cogotti cfdea6c990 [layout] Fix bad variable name. 2022-08-16 00:24:33 +02:00
Lorenzo Cogotti acf9403291 [*] The great require parens fixup© 2022-08-16 00:23:52 +02:00
Lorenzo Cogotti 18fdaee15d [crush] Update crush.lua. 2022-08-15 23:54:09 +02:00
Lorenzo Cogotti 6dd7691d71 [*] Initial commit. 2022-08-15 23:41:17 +02:00