Commit Graph

1448 Commits

Author SHA1 Message Date
Alexandre Bury
eb9f1b1a81 Include non-default-features items in docs.rs 2021-04-10 23:37:58 -07:00
Maarten de Vries
4b1efa4ec2
Do not shrink panels beyond the minimum width required for the title. (#572) 2021-04-06 09:28:00 -07:00
Alexandre Bury
352ef92c29 Update num, enum_map and ahash dependencies 2021-03-30 16:16:37 -07:00
Alexandre Bury
5dacfa10d5 Stop resize thread on first sender error 2021-03-30 16:07:41 -07:00
Alexandre Bury
b050b125a9 Rework CircularFocus view 2021-03-20 08:54:46 -07:00
Alexandre Bury
7fd86b69ec Add more control to focus changes.
- Add `Event::FocusLost`
- View groups: send a "focus lost" event to the focused child when the
    focus is changing.
- Change return type of `View::take_focus` from `bool` to
    `Result<EventResult, CannotFocus>`.
- Change return type of `View::focus_view` from
    `Result<(), ViewNotFound>` to `Result<EventResult, ViewNotFound>`.
- Add `views::FocusTracker` to run callbacks on focus gain/loss.
2021-03-20 08:54:46 -07:00
Artie Fuffkin
e417a8be0b
Added possibility to change based on flag during creation of a HideableView if it is hidden or not (#554)
* HideableView description added + formatting

* HideableView: changed method name and got rid of branching
2021-03-19 22:15:06 -07:00
trevyn
85f6372c68
Assume at least 8 colors (#565) 2021-03-19 22:14:40 -07:00
Alexandre Bury
7cf597f9bb Replace usages of Rect::from 2021-03-02 18:25:32 -08:00
Alexandre Bury
cbaf632cc1 Replace From<T: Into<Vec2>> for Rect with Rect::from_point 2021-03-02 17:13:56 -08:00
Alexandre Bury
db540452a4 Fix ListView::important_area 2021-03-02 14:37:34 -08:00
Alexandre Bury
7101c174f2 Fix Dialog focus after removing buttons 2021-03-02 09:10:36 -08:00
Alexandre Bury
dd141dd810 Fix clippy warnings 2021-02-18 21:23:38 -08:00
Alexandre Bury
8e252e176b Fix panic warning 2021-02-12 14:25:24 -08:00
Alexandre Bury
76e00682d5
Delete ISSUE_TEMPLATE.md 2021-02-10 13:48:07 -08:00
Alexandre Bury
d2e855b26b
Update issue templates (#552) 2021-02-10 13:47:43 -08:00
Alexandre Bury
40403982ca Mention kakikun in Readme 2021-02-10 11:46:20 -08:00
Alexandre Bury
8e34bc132a Add ThemedView 2021-02-10 09:31:12 -08:00
Alexandre Bury
e2f5806deb Add public re-exports of crates used in public api 2021-02-09 09:54:15 -08:00
Alexandre Bury
efc7b3144b Bump enumset and remove unused import 2021-02-08 13:41:17 -08:00
Alexandre Bury
f06bc2e1cd Fix dialog focus 2021-02-08 11:53:52 -08:00
Alexandre Bury
6543287704 Add enabled state to menu items 2021-02-05 13:05:14 -08:00
kmeisthax
06d64be0a0
Add getters & other utility methods to Dialog (#541)
* Allow taking the content of a dialog without destroying it by replacing it with another view.

* Add getters for all three ways of mutating padding (`Margins` struct, LRTB tuple, and individual fields)

* Allow setting focus

* Add a getter for the title of the dialog

* Add getter for title position

* Add immutable button iterator for `Dialog`

* Rename `buttons_mut` to fit with `iter_buttons_mut`.

* Add getter for horizontal alignment property

* Remove `replace_content` and replace it with just having `set_content` return the previous view.

* Actually clamp dialog focus rather than forcibly unclamping it

* Use the existing convention for button iterators rather than the `iter`/`iter_mut` convention

* Remove extraneous padding getters

* Remove import of `std::mem::replace`
2021-02-05 09:44:53 -08:00
Alexandre Bury
aedfc9e0c1 Replace wasmer_enumset with enumset 1.0.3 2021-02-03 15:17:43 -08:00
Alexandre Bury
96ac21cbaa Update version in Readme 2021-01-20 10:45:46 -08:00
Alexandre Bury
08c04229c5 (cargo-release) start next development iteration 0.16.4-alpha.0 2021-01-19 10:43:44 -08:00
Alexandre Bury
73453b2097 Add impl Borror<Cursive> for CursiveRunnable 2021-01-19 10:43:20 -08:00
Alexandre Bury
5becb0110a (cargo-release) version 0.16.2 2021-01-19 10:35:03 -08:00
Alexandre Bury
7d2094a6ba (cargo-release) version 0.2.2 2021-01-19 10:33:09 -08:00
Alexandre Bury
c0ddd5c302 Add method to turn a CursiveRunnable into a CursiveRunner 2021-01-19 10:32:54 -08:00
Alexandre Bury
58718824fa Cursive 0.16.1 2021-01-19 09:57:53 -08:00
Alexandre Bury
848ab341e9 (cargo-release) start next development iteration 0.2.2-alpha.0 2021-01-19 09:48:18 -08:00
Alexandre Bury
1a00cd8f8c (cargo-release) version 0.2.1 2021-01-19 09:47:59 -08:00
Alexandre Bury
9ef50a1827 Fix menubar color 2021-01-19 09:47:40 -08:00
Alexandre Bury
b4ed78d514 (cargo-release) start next development iteration 0.16.1-alpha.0 2021-01-18 11:34:50 -08:00
Alexandre Bury
cb8b1abe7f (cargo-release) start next development iteration 0.2.1-alpha.0 2021-01-18 11:34:50 -08:00
Alexandre Bury
cdaf70aea0 (cargo-release) version 0.16.0 2021-01-18 11:34:11 -08:00
Alexandre Bury
ba1448299b (cargo-release) version 0.2.0 2021-01-18 11:34:11 -08:00
Alexandre Bury
1c69461efa Use wasmer_enumset 2021-01-18 10:50:55 -08:00
Alexandre Bury
2b4ee4df4f Use ColorType::InheritParent in more places 2021-01-18 09:46:34 -08:00
Alexandre Bury
c3c3d4096f Add ColorStyle::{front, back} functions 2021-01-14 11:29:46 -08:00
Alexandre Bury
ae0556c77d Add ColorType::InheritParent 2021-01-14 11:29:46 -08:00
Alexandre Bury
bbca563e12 Fix NoSuchColor doc 2021-01-08 11:57:32 -08:00
Alexandre Bury
71a600cb9b Update dependencies 2021-01-08 11:56:22 -08:00
Alexandre Bury
c352e4c54a View::focus_view: replace () with zero-sized ViewNotFound 2020-12-20 10:58:57 -08:00
Alexandre Bury
759a7e8b49 Do not build ncurses on github actions 2020-12-20 10:37:11 -08:00
Alexandre Bury
feadd92bb5 Check and build other backends in github actions 2020-12-20 10:33:25 -08:00
Alexandre Bury
b26796d98b Migrate to travis-ci.com 2020-12-18 21:42:44 -08:00
Alexandre Bury
8e5c905213 Add Effect::Blink 2020-12-18 15:54:49 -08:00
Alexandre Bury
d464dc8ce0 Add Margins::zeroes 2020-12-18 14:08:09 -08:00