Commit Graph

409 Commits

Author SHA1 Message Date
Francisco Vallarino
14753e9f0f Remove widgetRestore, related types and logic. Remove CBOR and Serialise dependencies 2021-04-24 15:09:47 -03:00
Francisco Vallarino
fd8d267d98 Send unhandled event as message to root element 2021-04-21 13:15:47 -03:00
Francisco Vallarino
966dca9a62 Add e type parameter to WidgetRequest 2021-04-21 11:45:07 -03:00
Francisco Vallarino
4486765de9 Revert "Try removing s type parameter from WidgetRequest (to be reverted next)"
This reverts commit 1f4462b630.
2021-04-21 11:07:20 -03:00
Francisco Vallarino
1f4462b630 Try removing s type parameter from WidgetRequest (to be reverted next) 2021-04-21 11:07:09 -03:00
Francisco Vallarino
531df8828a Handle events as a WidgetRequest (RaiseEvent). Remove events from WidgetResult. Update way too many places where it was being used 2021-04-20 22:54:18 -03:00
Francisco Vallarino
0654a5e50b Handle drag and drop to reorder items in ticker example 2021-03-13 22:17:03 -03:00
Francisco Vallarino
a3de5a590b Add requests to server and decoding of errors to ticker example 2021-03-12 16:50:13 -03:00
Francisco Vallarino
2168c669e2 Add slide tests 2021-03-06 17:58:58 -03:00
Francisco Vallarino
375b19d6e3 Improve slide animation 2021-03-06 14:18:02 -03:00
Francisco Vallarino
0ddd3595d3 Add basic slide animation support 2021-03-06 13:25:47 -03:00
Francisco Vallarino
0519d9a9e9 Add onFinished event support on fadeIn/Out 2021-03-05 17:45:54 -03:00
Francisco Vallarino
1c98483a62 Improve fadeIn/Out widget, add tests 2021-03-05 16:14:32 -03:00
Francisco Vallarino
f0beeba7fc Add initial support for animation 2021-03-04 16:26:38 -03:00
Francisco Vallarino
22bb51184e Add overlay attribute to node info. Use it to avoid autoscrolling (some override may be needed in the future) 2021-03-02 14:31:55 -03:00
Francisco Vallarino
aab5f5dd20 Remove text prefix from combinators 2021-02-27 17:07:08 -03:00
Francisco Vallarino
ca881e3d0d Make button use label instead of duplicating the same text handling logic 2021-02-27 16:23:03 -03:00
Francisco Vallarino
b40e1406e4 Add concept of layout direction. Use it to restore single versions of spacer/filler 2021-02-26 13:54:47 -03:00
Francisco Vallarino
403faa7310 Generalize and (somehow) simplify SizeReq relate logic 2021-02-25 22:03:01 -03:00
Francisco Vallarino
1be5016f3c Change resize factor default for label 2021-02-22 16:37:26 -03:00
Francisco Vallarino
8ffda485a7 Add support for underline, overline and throughline text styles. Refactor text handling code 2021-02-21 22:18:24 -03:00
Francisco Vallarino
6f7c27f8cb Change default width of slider. Minor improvement to cursor glitch 2021-02-21 10:43:47 -03:00
Francisco Vallarino
a15cc0a438 Fix issue with cursor icon. Add unit tests 2021-02-19 16:25:13 -03:00
Francisco Vallarino
bc822df5c3 Have both alert and confirm receive a widget as its content. Add alertMsg and confirmMsg to handle text 2021-02-18 10:51:13 -03:00
Francisco Vallarino
462d88e32a Set cursor icon in parents of target if they have one set. Stack handles the rest. Simplify some logic 2021-02-16 14:32:52 -03:00
Francisco Vallarino
8bf1d92338 Another improvement on cursor handling 2021-02-15 17:20:08 -03:00
Francisco Vallarino
3ebffe0a3c Remove cursorEvt from StyleChangeCfg 2021-02-15 15:52:21 -03:00
Francisco Vallarino
1f11cc0749 Simplify cursor handling (move overlay logic to widgets that require) 2021-02-15 15:43:45 -03:00
Francisco Vallarino
d23ee09e00 Remove unneeded fields in StyleChangeCfg 2021-02-15 00:02:00 -03:00
Francisco Vallarino
cfc5c4d9f4 Improve cursor icon situation 2021-02-14 22:03:18 -03:00
Francisco Vallarino
76c125f598 Add books example, loading information from a REST API 2021-02-11 20:45:24 -03:00
Francisco Vallarino
2abb40bbe1 Remove simpleApp_ (keep a single version) 2021-02-06 18:48:12 -03:00
Francisco Vallarino
ab2104f357 Add WidgetModel typeclass, which provides a way of optionally serializing/deserializing the state of a widget 2021-02-04 23:27:26 -03:00
Francisco Vallarino
c66263ef97 Add findWidgetByPath. Add unit tests for both findWidgetByPoint and findWidgetByPath 2021-02-03 16:36:01 -03:00
Francisco Vallarino
7ef83e0a83 Do not show tooltip if dragging is in place 2021-02-02 20:57:06 -03:00
Francisco Vallarino
cb90d5832a Update widgets using createOverlay to consider offset (mainly from scroll) 2021-02-02 16:50:55 -03:00
Francisco Vallarino
99d6856ac3 Handle scrolling based on offset instead of resize of children nodes 2021-02-01 18:05:10 -03:00
Francisco Vallarino
6cd3a0ee5a Add hook to modify event passed down to children in Container. Restore partial logic for fast scroll. Pending major changes regarding viewport 2021-02-01 12:16:56 -03:00
Francisco Vallarino
596c423873 Add support for modifying wenv passed to children in Container. Use it to create ThemeSwitcher 2021-02-01 00:15:49 -03:00
Francisco Vallarino
0f089c603e Put config arguments before children arguments in widgets that receive other widgets at creation time 2021-01-31 18:40:51 -03:00
Francisco Vallarino
5fe2c90416 Remove AcceptDrop request 2021-01-31 17:41:13 -03:00
Francisco Vallarino
32414be622 Draw dragged node as part of draggable 2021-01-31 15:34:30 -03:00
Francisco Vallarino
f3c251ead1 Add missing cursor config option in StyleState 2021-01-30 17:11:49 -03:00
Francisco Vallarino
63da394281 Add unit tests for Drag & Drop 2021-01-30 17:04:52 -03:00
Francisco Vallarino
5508d2896d Enhance draggable and dropTarget. Improve styling and event handling 2021-01-30 15:21:33 -03:00
Francisco Vallarino
f5b21d0599 Add Drag&Drop infrastructure. Add initial versions of Draggable and DropTarget 2021-01-30 00:08:49 -03:00
Francisco Vallarino
c9de4fbd87 Add onDispose and onResize event handlers to composite 2021-01-28 19:47:56 -03:00
Francisco Vallarino
15b0251f70 Refactor sample dark theme. Add sndColor to StyleState. Attempt to reduce confusion regarding color use 2021-01-28 18:23:07 -03:00
Francisco Vallarino
35f70a4773 Add option to align text to baseline 2021-01-27 16:56:32 -03:00
Francisco Vallarino
f4d919f902 Add option to draw checkbox mark as a times x sign 2021-01-26 22:59:15 -03:00