Commit Graph

547 Commits

Author SHA1 Message Date
Francisco Vallarino
a0bea51b42 Misc changes 2020-11-06 22:35:46 -03:00
Francisco Vallarino
a6e3dd7e57 Fix state handling in label 2020-11-06 22:14:42 -03:00
Francisco Vallarino
a2acefcba0 Fix state handling in image 2020-11-06 19:46:32 -03:00
Francisco Vallarino
b641888cc8 Unify criteria on active layer for zstack 2020-11-06 01:42:23 -03:00
Francisco Vallarino
1b6ddeb178 Make button focusable 2020-11-06 01:12:59 -03:00
Francisco Vallarino
bf41c46daf Make dropdown header/main a regular widget 2020-11-05 22:40:42 -03:00
Francisco Vallarino
793cba03d9 Standardize config options for label and button 2020-11-05 16:19:21 -03:00
Francisco Vallarino
979ad1716d Make getTextRect depend on getTextRect_, based on glyphs 2020-11-05 15:56:06 -03:00
Francisco Vallarino
2583920f10 Move new text fitting functions into Text module. Use from button 2020-11-05 14:33:32 -03:00
Francisco Vallarino
4a308f24b3 Move TextMetrics into TextLine 2020-11-05 13:45:11 -03:00
Francisco Vallarino
4a5d2e149a Add config options for multiline/trim 2020-11-05 13:29:56 -03:00
Francisco Vallarino
6bbb7d17e9 Provide single function to fit text 2020-11-05 12:29:00 -03:00
Francisco Vallarino
ffedf17ba0 Improve ellipsis handling 2020-11-05 11:13:13 -03:00
Francisco Vallarino
5033bffc2f Add ellipsis handling to multiline label 2020-11-05 00:25:09 -03:00
Francisco Vallarino
773f27b1ea Move computeTextRect out of Renderer (make it a regular function) 2020-11-04 20:52:05 -03:00
Francisco Vallarino
20af52e9e9 Add trim option to multiline label 2020-11-04 20:33:51 -03:00
Francisco Vallarino
2bb40a5f83 Align multi line text 2020-11-04 01:59:43 -03:00
Francisco Vallarino
56b1e18e64 Initial commit for multi line label 2020-11-03 14:57:24 -03:00
Francisco Vallarino
33ac5506a1 Refactor text metrics operations 2020-11-01 20:28:11 -03:00
Francisco Vallarino
d9b112fc73 Fix issue on rect/size operations (w/h = 0 should be considered valid) 2020-10-31 16:34:23 -03:00
Francisco Vallarino
d5fa1a03ae Update child viewport. Return Maybe from functions that may return an invalid rect. Add intersectRects 2020-10-31 01:47:38 -03:00
Francisco Vallarino
91aa5385fc Avoid zip/index, use mapWithIndex instead 2020-10-30 16:47:38 -03:00
Francisco Vallarino
748c4f8e48 Only change cursor if event is received by target. Improve styling on checkbox, radio and listView 2020-10-30 15:54:01 -03:00
Francisco Vallarino
726cba547d Add theming to scroll. Improve its handling of renderArea/contentArea. Complete listView theming 2020-10-30 10:59:04 -03:00
Francisco Vallarino
7af130c143 Add arrow icon to dropdown 2020-10-29 12:18:06 -03:00
Francisco Vallarino
96a8eacc97 Do not request focus from listView when an item is selected 2020-10-29 02:04:06 -03:00
Francisco Vallarino
75d25d9baa Remove concept of Margin from Style 2020-10-29 01:09:43 -03:00
Francisco Vallarino
fed50077b4 Fix mouse events issue with overlays 2020-10-29 01:09:29 -03:00
Francisco Vallarino
5be4d22830 Add theming to dropdown (main section) 2020-10-28 14:34:37 -03:00
Francisco Vallarino
847461f884 Do not allow focus on dropdowns list if not open 2020-10-28 01:02:52 -03:00
Francisco Vallarino
fd8c453fa8 Add theming to inputField (floatingField, integralField and textField) 2020-10-28 00:25:05 -03:00
Francisco Vallarino
ea7ef5d222 Reorder Single/Container fields. Add style cfg to inputField 2020-10-27 21:35:23 -03:00
Francisco Vallarino
a3d291223e Improve naming of list/dropdown combinators 2020-10-27 14:45:46 -03:00
Francisco Vallarino
bdd9896450 Add theming to dropdown 2020-10-27 14:27:35 -03:00
Francisco Vallarino
09b14b33e3 Complete theming of listView 2020-10-27 00:51:10 -03:00
Francisco Vallarino
c0c63b59fd Add theming to listView 2020-10-26 16:42:00 -03:00
Francisco Vallarino
63bdea02b6 Fix overlay issue handling of zstack (missing removal of startPath step) 2020-10-26 01:39:35 -03:00
Francisco Vallarino
27780be89f Remove ThemeStyles Semigroup/Monoid instance (not law abiding) 2020-10-26 01:16:25 -03:00
Francisco Vallarino
b56566fc04 Add theming to label. Generalize theming for checkbox/radio 2020-10-26 00:55:23 -03:00
Francisco Vallarino
c6f43902be Draw correct w/h of scroll bars. Avoid unnecessary scissor 2020-10-25 23:54:49 -03:00
Francisco Vallarino
aa21a3acd0 Fix scroll issue when clicking on empty bar 2020-10-25 23:33:27 -03:00
Francisco Vallarino
4a400e70a8 Fix scissoring issue in scroll (bars, not content) and assigned viewport by box when content is smaller than viewport 2020-10-25 23:24:00 -03:00
Francisco Vallarino
300c4ee7de Avoid overlapping h/v scrollbars if both are present 2020-10-25 22:44:09 -03:00
Francisco Vallarino
51dd31922d Add theming to scroll 2020-10-25 22:29:55 -03:00
Francisco Vallarino
27fa23acb4 Add theming to radio. Move theme definitions to separate module. 2020-10-25 18:05:12 -03:00
Francisco Vallarino
9ef26e242c Add theming to checkbox. Merge instance style before merging with theme and base style 2020-10-25 14:51:59 -03:00
Francisco Vallarino
239e81b263 Implement theming on button 2020-10-25 00:00:12 -03:00
Francisco Vallarino
ef113e976f Calculate/merge style and theme on init/merge (missing composite) 2020-10-24 22:59:21 -03:00
Francisco Vallarino
feb0aae8d3 Calculate/merge style and theme on init/merge 2020-10-24 22:57:24 -03:00
Francisco Vallarino
2ab2d70727 Make zstack focus handling configurable 2020-10-23 20:36:33 -03:00