Commit Graph

254 Commits

Author SHA1 Message Date
Francisco Vallarino
8c9892cb19 Remove default font handling. Show error message if loading fails 2021-01-13 19:05:37 -03:00
Francisco Vallarino
7bb3d3a454 Handle WidgetId/Path changes automatically in Single/Container 2021-01-13 18:35:56 -03:00
Francisco Vallarino
d5f6f61c85 Update tasks 2021-01-13 14:13:13 -03:00
Francisco Vallarino
7b35e80913 Make widget tree serialization configurable 2021-01-13 14:02:45 -03:00
Francisco Vallarino
babbd3be93 Standardize typeclass derivation order 2021-01-12 17:48:38 -03:00
Francisco Vallarino
041ee0c7db Remove unneeded Typeable deriving. Update tasks 2021-01-12 16:42:34 -03:00
Francisco Vallarino
0517dd7d14 Add serialization support 2021-01-12 14:34:39 -03:00
Francisco Vallarino
0e48826cb0 Add WidgetModel/WidgetEvent type aliases. Remove unneeded deriving Typeable declarations 2021-01-12 10:39:34 -03:00
Francisco Vallarino
6ec893bc95 Reorder Single/Container config and try to match options in both 2021-01-06 17:24:01 -03:00
Francisco Vallarino
4bdbc2836b Test disabled state works. Add _enabled_ combinator (enabled/disabled having different purposes is confusing, think better names) 2021-01-06 15:56:27 -03:00
Francisco Vallarino
e0d743e5d5 Add support for _active_ style state 2021-01-06 15:26:47 -03:00
Francisco Vallarino
cc512e024e Add focusHover style state (needed to be able to maintain border for active widgets) 2021-01-06 14:08:42 -03:00
Francisco Vallarino
dac13bdf1c Remove unneeded code 2021-01-06 10:50:21 -03:00
Francisco Vallarino
478f2895fd Partial commit fixing wheel/hover issue (major cleanup needed, followup commit) 2021-01-06 10:40:39 -03:00
Francisco Vallarino
f396aa0c63 Make listView handle style changes when the action happens instead of rendering time 2021-01-05 11:01:35 -03:00
Francisco Vallarino
d0ea69efd4 Update tasks 2021-01-04 12:55:08 -03:00
Francisco Vallarino
436336de3d Consider text size when rebuilding glyphs on label and button 2021-01-04 09:48:06 -03:00
Francisco Vallarino
8af2f21d0f Rename containerStyleOnMerge to containerStyleOnEvent 2021-01-03 22:31:53 -03:00
Francisco Vallarino
f6bf75294a Add containerGetActiveStyle to Container 2021-01-03 22:21:54 -03:00
Francisco Vallarino
b2eca14864 Base buttons merge/resize logic on labels 2021-01-03 22:12:48 -03:00
Francisco Vallarino
45f7490ead Remove widgetUpdateSizeReq. Update sizeReq when necessary on init/merge/handleEvent/handleMessage 2021-01-03 22:01:26 -03:00
Francisco Vallarino
1888bdca28 Use upgraded nanovg bindings (temporarily from my fork) 2020-12-31 13:38:00 -03:00
Francisco Vallarino
c98b802379 Update tasks 2020-12-29 14:51:38 -03:00
Francisco Vallarino
19595aee5d Improve handling of lower layers in zstack. Add option to ignore events in a container 2020-12-29 14:07:15 -03:00
Francisco Vallarino
acff0fffd4 Make zstack handle mouse according to used regions. Make stack adjust its size to its content. Simplify related settings 2020-12-28 23:00:25 -03:00
Francisco Vallarino
62463987d8 Handle multiple clicks on button 2020-12-27 22:33:36 -03:00
Francisco Vallarino
babbd865bd Add UpdateWidgetId request, handle it in Handlers/WidgetTask 2020-12-27 22:12:24 -03:00
Francisco Vallarino
a13da072bd Add concept of WidgetId. Handle updates in Composite/Container 2020-12-27 00:37:50 -03:00
Francisco Vallarino
d49a29e4be Add scroll resize test. Add pending value drag tests for integralField. Complete original testing plan 2020-12-26 17:03:03 -03:00
Francisco Vallarino
723bcb4e84 Add dropdown tests 2020-12-26 15:21:21 -03:00
Francisco Vallarino
c726c835af Re enable pending tests. Add handleMessage test in composite 2020-12-25 23:18:12 -03:00
Francisco Vallarino
91d1edd564 Add unit tests to inputField dragging. Add typeclass for dragRate 2020-12-25 22:34:16 -03:00
Francisco Vallarino
b976bdf758 Fix issue with right aligned text field. Fix issue with selection 2020-12-25 16:23:14 -03:00
Francisco Vallarino
a69ad00e76 Fix two unit tests 2020-12-25 01:27:43 -03:00
Francisco Vallarino
58b1262f6b Handle inputField icon changes directly in the widget 2020-12-24 16:37:02 -03:00
Francisco Vallarino
dd44675a4b Cmd+arrow selects all too. Handle double/triple click to select word/all. Reformat some sections of InputField 2020-12-24 12:52:33 -03:00
Francisco Vallarino
c22bf586cb Capture/release mouse on press/release events 2020-12-24 00:20:15 -03:00
Francisco Vallarino
4784578759 Add support for drag modification of input fields 2020-12-24 00:07:46 -03:00
Francisco Vallarino
58cd92a40b Refactor event preprocessing logic (move from Core to Handlers). Add text selection unit tests 2020-12-22 18:23:01 -03:00
Francisco Vallarino
a597abd96d Add support for cutting text 2020-12-20 20:54:54 -03:00
Francisco Vallarino
15261c3df8 Fix unit tests. Remove hedgehog-classes dependency and related utilities module 2020-12-18 00:22:29 -03:00
Francisco Vallarino
a757e56c09 Handle listView item style change when clicking an item 2020-12-17 14:41:42 -03:00
Francisco Vallarino
94a3fa766e Simplify Renderers image interface. Replace existsImage with getImage 2020-12-16 23:53:55 -03:00
Francisco Vallarino
86ca5efd80 Add config/theming options to scroll 2020-12-15 23:54:51 -03:00
Francisco Vallarino
ce9f16f4b6 Add config option to customize main mouse button 2020-12-15 20:43:29 -03:00
Francisco Vallarino
70a0ff8cb5 Find new focus when zstack items change visibility and it is parent of focus 2020-12-15 18:31:50 -03:00
Francisco Vallarino
c97dce766c Set focus when ButtonAction (PressedBtn) is received, not on click (most applications/OS follow this pattern) 2020-12-15 14:38:05 -03:00
Francisco Vallarino
eaf31364f4 Fix issue when splitting multi line text 2020-12-15 00:35:33 -03:00
Francisco Vallarino
2532db1625 Remove unused field from listView state 2020-12-14 16:00:38 -03:00
Francisco Vallarino
0899d2dcf4 Add renderAfter method in Container, use it in scroll 2020-12-14 12:51:32 -03:00