Alexandre Bury
|
39405ba1ec
|
Refactor spans and markup
We now use mostly indexed spans into a source string.
Indexed Spans can still be resolved to a string slice when needed.
|
2018-01-15 13:53:27 -08:00 |
|
Alexandre Bury
|
a9d9239fac
|
Correctly parse colors 232-255
Those are grayscale
|
2018-01-14 16:59:03 -08:00 |
|
Alexandre Bury
|
3058816f1a
|
Add Dialog::buttons to iterate on buttons
|
2018-01-12 09:33:54 +01:00 |
|
Alexandre Bury
|
56f81eee7c
|
Add Button::set_label
|
2018-01-12 09:33:47 +01:00 |
|
Alexandre Bury
|
0666a8b585
|
Button: add a way to get its label
|
2018-01-12 09:30:49 +01:00 |
|
Alexandre Bury
|
14f2bf636c
|
OnEventView: add note regarding single callback per event
|
2018-01-11 18:49:48 +01:00 |
|
Alexandre Bury
|
0c24ed369b
|
Allow multiple callbacks to be registered per event.
|
2018-01-11 18:47:44 +01:00 |
|
Alexandre Bury
|
2d62d2c91f
|
Add Cursive::active_screen
|
2018-01-11 18:20:23 +01:00 |
|
Alexandre Bury
|
4879d8cc71
|
Fix ending newline problem
|
2018-01-11 00:16:13 +01:00 |
|
Alexandre Bury
|
afb224b860
|
Protect against empty spans
|
2018-01-11 00:12:21 +01:00 |
|
Alexandre Bury
|
5dcce6a965
|
Fix example without markdown feature
|
2018-01-11 00:03:42 +01:00 |
|
Alexandre Bury
|
890b3f13e1
|
TextView: print styled spans of text
|
2018-01-10 23:58:29 +01:00 |
|
Alexandre Bury
|
ef7cfb2dd6
|
Use owning-ref fork for now
Until the PRs are merged
|
2018-01-10 23:19:14 +01:00 |
|
Alexandre Bury
|
6f468658e1
|
Add Plain markup implementation
|
2018-01-10 14:44:27 +01:00 |
|
Alexandre Bury
|
59d67e891c
|
Keep StyledString markup-agnostic, push trait to methods
|
2018-01-10 14:02:54 +01:00 |
|
Alexandre Bury
|
7ecf5f540b
|
Add markup::{Markup, StyledString}
|
2018-01-10 13:54:32 +01:00 |
|
Alexandre Bury
|
5d8a452b18
|
Merge pull request #183 from agavrilov/FixWindowResizingInPancurses
Call resize_term on KeySize
|
2018-01-09 19:00:05 +01:00 |
|
Alexander Gavrilov
|
f8f23a5dda
|
Call resize_item on Windows only
|
2018-01-09 08:24:17 -08:00 |
|
Alexander Gavrilov
|
7469bd36be
|
Call resize_term on KeySize
|
2018-01-09 08:01:22 -08:00 |
|
Alexandre Bury
|
4383526ec0
|
Fix some clippy warnings
|
2018-01-09 15:20:07 +01:00 |
|
Alexandre Bury
|
f8588e74c1
|
Rustfmt
|
2018-01-09 15:17:49 +01:00 |
|
Alexandre Bury
|
d41f1e937d
|
Menubar: trigger leaf nodes on mouse release
Feels more natural
|
2018-01-09 14:53:55 +01:00 |
|
Alexandre Bury
|
d384cbdaf1
|
Allow menu leaves and delimiter in menubar
|
2018-01-09 14:37:40 +01:00 |
|
Alexandre Bury
|
ed94078218
|
Add span tests from markdown
|
2018-01-09 10:32:52 +01:00 |
|
Alexandre Bury
|
fc8d428028
|
Fix doc test
|
2018-01-09 10:10:05 +01:00 |
|
Alexandre Bury
|
c486d96810
|
Don't run doc example
|
2018-01-09 09:50:22 +01:00 |
|
Alexandre Bury
|
203ec4ac76
|
Improve doc for Cursive::find_id
|
2018-01-09 09:26:05 +01:00 |
|
Alexandre Bury
|
df97279442
|
TextView: add manual scroll methods
|
2018-01-08 19:02:35 +01:00 |
|
Alexandre Bury
|
a2244f0ac1
|
Add markdown parser
|
2018-01-08 17:18:35 +01:00 |
|
Alexandre Bury
|
15c3e77fc4
|
Split theme.rs into multiple files
|
2018-01-08 16:11:12 +01:00 |
|
Alexandre Bury
|
c2d2fa0527
|
Update Style to include a set of effects
|
2018-01-08 15:44:27 +01:00 |
|
Alexandre Bury
|
b59e480f60
|
Add missing imports
|
2018-01-08 13:15:28 +01:00 |
|
Alexandre Bury
|
2735bf45fd
|
Create ISSUE_TEMPLATE.md
|
2018-01-08 13:09:18 +01:00 |
|
Alexandre Bury
|
102328084a
|
Create CODE_OF_CONDUCT.md
|
2018-01-08 13:01:21 +01:00 |
|
Alexandre Bury
|
c4670e5262
|
More utils re-organization
|
2018-01-08 12:33:43 +01:00 |
|
Alexandre Bury
|
7ac003c4de
|
Re-organize utils module
|
2018-01-08 12:07:07 +01:00 |
|
Alexandre Bury
|
943da46e82
|
Add SpanListIterator
|
2018-01-08 01:25:30 +01:00 |
|
Alexandre Bury
|
1acde148be
|
Implement From<Effect> and From<ColorStyle> for Style
|
2018-01-07 15:08:25 +01:00 |
|
Alexandre Bury
|
67e230e246
|
Update dependencies
|
2018-01-05 14:48:17 +01:00 |
|
Alexandre Bury
|
aa9db30a51
|
Add TextView::set_effect
|
2018-01-05 14:20:09 +01:00 |
|
Alexandre Bury
|
895557e91d
|
Fix TextView deadlock
|
2018-01-05 14:20:08 +01:00 |
|
Alexandre Bury
|
2d7f8295cf
|
Add Effect::{Bold,Italic,Underline}
|
2018-01-05 13:57:39 +01:00 |
|
Alexandre Bury
|
5af367fa18
|
Add missing use statements to doc example
|
2018-01-03 16:51:07 +01:00 |
|
Alexandre Bury
|
778c1f1d71
|
Better doc
|
2018-01-03 15:36:08 +01:00 |
|
Alexandre Bury
|
08a935d561
|
Don't run test examples when we call Cursive::new
It fails with some backends.
|
2017-12-31 20:29:05 +01:00 |
|
Alexandre Bury
|
8a05bd5421
|
TextView: improve documentation
|
2017-12-31 19:49:13 +01:00 |
|
Alexandre Bury
|
65ea8eeec8
|
No need to clone the Arc
|
2017-12-31 14:14:19 +01:00 |
|
Alexandre Bury
|
e4cd68a4eb
|
Rustfmt
|
2017-12-30 23:03:42 +01:00 |
|
Alexandre Bury
|
799ec812e4
|
Add TextContent and TextContentRef
To manage the model separately from the view.
|
2017-12-30 23:00:48 +01:00 |
|
Alexandre Bury
|
fd08faca62
|
readme: add link to "Install ncurses" wiki page
|
2017-12-30 21:18:06 +01:00 |
|