Francisco Vallarino
ff2ea3b414
Fix type error in examples ( #263 )
...
* Fix type error in examples
* Attempt to run build including examples
* Force build failure
* Revert "Force build failure"
This reverts commit 9728f0b0ac
.
2023-02-26 23:18:45 +01:00
Francisco Vallarino
0364e86b06
Add color popup widget ( #247 )
...
* Add initial version of ColorPopup
* Add theme entry for colorPopup container
* Add minimal Haddock to new widget
2023-01-29 01:34:26 +01:00
Francisco Vallarino
22cf451853
Add conditional helpers for lists of widgets, styles and configuration options ( #185 )
...
* Add widgetIf, widgetMaybe, and related style/config helper functions
* Update examples and tutorial
* Fix Haddocks
* Update Changelog
2022-10-09 22:38:07 +02:00
Gareth Smith
38391f7bfc
Add a BoxShadow component ( #205 )
...
* Add a BoxShadow component.
* Use the correct type for boxShadow config
* Allow configuring shadow direction.
2022-10-02 17:42:34 +02:00
Francisco Vallarino
51ce06f613
Add Monomer logo and badges to README.md ( #186 )
...
* Add new Monomer logo and badges to README.md
* Fix sub-title styling
* Add support for loading any image format to use as application icon
* Update Monomer icon image
* Update examples and tutorials to use new icon image
* Adjust logo background color
2022-06-27 16:25:03 -03:00
Francisco Vallarino
f693af6059
Improve Haddocks ( #129 )
...
* Improve Haddocks of single widgets
* Improve Haddocks of container widgets
* Fix Haddock links between modules
2022-04-30 11:10:53 -03:00
Francisco Vallarino
af0456ccf1
Add extra argument to mergeRequired; in most cases, it will be WidgetEnv ( #122 )
...
* Add extra argument to mergeRequired; in most cases, it will be WidgetEnv
* Update Changelog
2022-04-17 15:06:55 -03:00
Francisco Vallarino
4b32da8dff
Rename Timestamp type to Millisecond ( #107 )
...
* Rename Timestamp type to Millisecond
* Update Changelog
2022-04-02 00:19:58 -03:00
Francisco Vallarino
b6f1ad2e8d
Add appStartTs to WidgetEnv. Make Timestamp a newtype ( #103 )
...
* Add _weAppStartTs to WidgetEnv, indicating the time in ms when the application started
* Use Timestamp type instead of Int to make signatures clearer
* Retrieve correct startup timestamp
* Use newtype instead of type for Timestamp
* Update Changelog
* Add utility function currentTimeMs, returning the absolute current timestamp (not from app start)
* Use currentTimeMs in examples
* Replace SDL.ticks call with utcTimeToPOSIXSeconds
* Restore nodeKey of description field in Tutorial 03
2022-03-26 17:23:53 -03:00
Francisco Vallarino
187ad94b78
Allow setting minimum thumb size in scroll widget ( #100 )
...
* Remove unneded liftIO calls from Ticker example
* Allow setting minimum thumb size in scroll widget. Improve thumb handling.
* Consider secondary axis' thumb width when calculating thumb size ratio if both vertical and horizontal bars need to be shown
* Add test cases for thumb drag
* Update Changelog
* Remove unneeded variables
2022-03-17 13:46:40 -03:00
Gareth Smith
9bc252cbe7
Allow setting the window icon via AppConfig ( #79 )
2022-02-13 14:12:32 -03:00
Francisco Vallarino
5d70174e62
Reduce dependencies on unused or lightly used packages ( #70 )
...
* Remove dependency on OpenGL package (keep only OpenGLRaw)
* Remove scientific dependency
* Remove unused unordered-containers dependency
* Remove dependency on Safe package
* Remove directory, HUnit and silently packages dependency from tests section
2022-01-23 17:55:56 -03:00
Francisco Vallarino
afadfbb60a
Add SetFocusOnKey/MoveFocusFromKey to Composite ( #37 )
...
* Add SetFocusOnKey/MoveFocusFromKey to Composite. This makes setting focus from user event handlers more predictable
* Bump version. Update Changelog
2021-10-28 16:33:39 -03:00
Francisco Vallarino
188e621d93
Add optionButton and toggleButton widgets ( #36 )
...
* Add optionButton and toggleButton widgets
* Improve colors for buttons in base themes
* Update themes for new widgets
* Highlight focused row buttons on Todo and Ticker examples
* Add missing docs
2021-10-28 15:23:42 -03:00
Francisco Vallarino
0433395f7a
Restrict keystroke scope on Todo example to avoid double entre when pressign Enter on Add button
2021-10-06 19:49:24 -03:00
Francisco Vallarino
4d1031b16b
Add Haddock header to examples
2021-09-24 15:23:32 -03:00
Francisco Vallarino
afc6a56ae7
Request RenderOnce in OpenGLWidget example
2021-09-24 13:53:41 -03:00
Francisco Vallarino
4428b126df
Add OpenGL example
2021-09-22 18:27:53 -03:00
Francisco Vallarino
88e12a8d9b
Reduce memory usage by sharing wreq session among image widget instances ( #22 )
...
* Reduce memory usage by sharing wreq session among image widget instances
* Update Books example to use Session instance
* Update Changelog
2021-08-31 18:47:45 -03:00
Francisco Vallarino
9b6d6a5082
Improve ticker example by grouping messages before feeding them back into the UI
2021-08-21 10:02:39 -03:00
Jan Hrcek
66e9a70479
Add setup instructions for Fedora ( #3 )
2021-08-11 11:01:18 -03:00
Francisco Vallarino
561a0bd1b0
Improve tutorials
2021-08-09 00:26:35 -03:00
Francisco Vallarino
38bb502596
Remove development helpers/notes
2021-08-09 00:10:32 -03:00
Francisco Vallarino
2b06503863
Improve examples README
2021-08-07 00:55:12 -03:00
Francisco Vallarino
23f0818fff
More improvements to documentation
2021-08-05 01:48:59 -03:00
Francisco Vallarino
83bbc9208a
Describe examples
2021-08-04 18:33:02 -03:00
Francisco Vallarino
e18ce00705
Document themes and how widgets use them
2021-07-31 22:09:15 -03:00
Francisco Vallarino
b4d92f279f
Add node prefix to key, enabled, visible and focusable
2021-07-31 13:42:42 -03:00
Francisco Vallarino
da1a9ba726
Rename multiLine to multiline
2021-07-31 13:12:52 -03:00
Francisco Vallarino
44109ca217
Add style prefix to the six style combinators (avoid reserving some common names)
2021-07-31 12:48:22 -03:00
Francisco Vallarino
d8dd3d9338
Improve example 6 colors. Do not use hover style on dropTarget if not top level
2021-07-28 16:30:56 -03:00
Francisco Vallarino
918ffc2086
Rename activeStyle/activeTheme to currentStyle/currentTheme (avoid ambiguity with active style state)
2021-07-26 19:51:48 -03:00
Francisco Vallarino
1a051519f0
Standardize order of arguments for node related helper functions
2021-07-26 13:26:55 -03:00
Francisco Vallarino
49fb421780
Add anim suffix to animation widgets
2021-07-26 11:18:55 -03:00
Francisco Vallarino
e6de3c4b58
Update Todo example to overlay edit section
2021-07-26 10:46:09 -03:00
Francisco Vallarino
afe4708774
Report theme has changed from themeSwitch, use it to force merge
2021-07-25 11:52:06 -03:00
Francisco Vallarino
9db67bb890
Improvements/formatting for tutorials
2021-07-25 01:43:02 -03:00
Francisco Vallarino
973b92f659
Add mergeRequired support to box
2021-07-24 22:43:18 -03:00
Francisco Vallarino
efa89f0ed3
Refactor/reformat examples code
2021-07-24 13:47:57 -03:00
Francisco Vallarino
94fbb8d507
Improve Ticker example styling
2021-07-23 16:27:34 -03:00
Francisco Vallarino
00d77747cc
Partial improvements to examples
2021-07-22 20:25:22 -03:00
Francisco Vallarino
0038ff20ab
Initial version of themes tutorial. Initial version of light theme
2021-07-20 01:59:54 -03:00
Francisco Vallarino
702aea6842
Add threaded flags to examples. Update tasks
2021-07-06 20:39:08 -03:00
Francisco Vallarino
230922c40c
Add alignment options to image
2021-07-02 23:56:33 -03:00
Francisco Vallarino
07dd4bbd1d
Minor styling changes in examples
2021-07-01 17:12:37 -03:00
Francisco Vallarino
49bed0c564
Fix styling for button and dropdown
2021-06-30 23:27:17 -03:00
Francisco Vallarino
e458fbc981
Improve life cycle tutorial
2021-06-29 21:24:41 -03:00
Francisco Vallarino
7e62f72da4
Default spacer to 10 width
2021-06-29 20:42:50 -03:00
Francisco Vallarino
cb136dce13
Update styles for books example
2021-06-29 19:48:18 -03:00
Francisco Vallarino
61da684b20
Improve styles for todo example
2021-06-29 19:47:55 -03:00