Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update druid #3

Merged
merged 33 commits into from
May 3, 2021
Merged

Update druid #3

merged 33 commits into from
May 3, 2021

Conversation

xarvic
Copy link
Owner

@xarvic xarvic commented May 3, 2021

No description provided.

ForLoveOfCats and others added 30 commits April 7, 2021 13:51
* Add missing derived lens documentation

* Update CHANGELOG.md

* Update link references in CHANGELOG.md

* Update derived lens documentation

Co-authored-by: Manmeet Maan <[email protected]>

* Improve code readability

Co-authored-by: Joshua Wade <[email protected]>
Co-authored-by: Manmeet Maan <[email protected]>
* Clip texbox cursor to bounds

Partial fix for #1709

* Fix docs for TextBox::text_mut

* Don't use padding when textbox scrolls

* Fix docs for TextBox::text_mut (for real this time)
This prevents the window manager from managing tooltip-like subwindows.
* implemented DisabledIf

* reformat

* updated CHANGELOG.md

* fix issue

* updated example

Signed-off-by: xarvic <[email protected]>

* added License, updated documentation

Signed-off-by: xarvic <[email protected]>

* reformat

Signed-off-by: xarvic <[email protected]>

* reformat

Signed-off-by: xarvic <[email protected]>

* Apply suggestions from code review

Co-authored-by: xarvic <[email protected]>
Co-authored-by: Colin Rofls <[email protected]>
* Implement Lens directly on a pair
* Implement Lens for tuples of length 3 to 7
* Update Changelog
* Remove some horizontal/vertical code duplication in ScrollComponent

* Handle scroll bar edge cases better

- Don't draw out-of-bounds when the widget is smaller than theme::SCROLLBAR_MIN_SIZE
- Don't draw the scroll bar if the widget is smaller than the padding

Fixes #1709.

* Don't pad scrollbar for other bar if it is disabled

* Disable the scroll bar when disabling scrolling in Scroll

This allows TextBox (and other widgets
which disable scrolling dynamically) to use the reduced padding from 217fabf.

* Fix scrollbar length being shortened slightly

* Add tests for ScrollComponent

* Fix clippy::float_cmp errors

* Update changelog for #1715

* Update CHANGELOG.md
* changed propagate_to_hidden: Lifecycle::BuildFocusChain is not send to hidden widgets anymore.

Signed-off-by: xarvic <[email protected]>

* test if the focused widget is still a functional member of the tree

Signed-off-by: xarvic <[email protected]>

* fix clippy warnings

Signed-off-by: xarvic <[email protected]>

* update CHANGELOG.md

Signed-off-by: xarvic <[email protected]>

* Apply suggestions from code review

Co-authored-by: Colin Rofls <[email protected]>

Co-authored-by: xarvic <[email protected]>
Co-authored-by: Colin Rofls <[email protected]>
This commit updates the druid version needed for the example to work, and rewrites a paragraph that was based on old code.
Ensure the cursor state of the `split` widget is locked when the split
bar is active, to avoid flickering when the mouse moves faster than the
widget can re-layout.

Bug: #1725
* Fix link in documentation of widget::Image

struct ImageBuf now lives in piet not in druid-shell

* Let rustdoc resolve links

* Add link to PR
Implement content_insets for GTK.
Implement Data for chrono types
Test out Swatinem's cache.
Implement `WindowLevel::Tooltip` on Windows platform.

Before change:
- Tooltip window appear in taskbar
- Window has strange min-size (probably due to OS min constraints)
- Window steals focus from main app window

After change:
- Tooltip window doesn't appear in taskbar
- Window fits any size (tested with nursery's `tooltip.rs`)
- Window doesn't steal focus from main app window
X11 back-end now supports scaling.
* link the widget_nursery from the README

Signed-off-by: xarvic <[email protected]>

* updated CHANGELOG.md

Signed-off-by: xarvic <[email protected]>

Co-authored-by: xarvic <[email protected]>
Co-authored-by: Colin Rofls <[email protected]>
bjorn and others added 3 commits May 3, 2021 12:36
* druid-shell: Added Delete key handling

* Updated CHANGELOG.md

Co-authored-by: Joshua Wade <[email protected]>
* - added LifeCycle::DisabledChanged and InternalLifeCycle::RouteDisabledChanged
 - implemented the disabled state in WidgetPod
 - changed call to focus_change from event to post event processing
 - implemented disabled handling in window.rs and core.rs

* created tests for disable

* fixed tests

* fixed tests

* updated core.rs and event.rs

* fixed focus-chain bug:
 - the focus chain was cleared, if the widget was disabled

* fix disabled update

* update tests

* fixed code (all tests succeed)

* refactored core.rs and tests/mod.rs

* updated tests

* fixed focus-chain bug

* make clippy happy
(i hope)

* make clippy happy #2

* Apply suggestions from code review

Update Documentation

Co-authored-by: Colin Rofls <[email protected]>

* Update druid/src/contexts.rs

Update documentation

Co-authored-by: Colin Rofls <[email protected]>

* refactor DisabledChanged

* refactor DisabledChanged

* fixed error, revered change of focus_chain

* refactored tests

* reordered lifecycle events

* reverted changes to the focus_chain

* implemented new focus-chain using LifeCycle::BuildFocusChain

* update tests

* fixed problems

* updated texts

* clippy fix

* fixed documentation

* Update druid/src/event.rs

Co-authored-by: Colin Rofls <[email protected]>

* fixed documentation

* made logic simpler

* refactored post_event_processing

* updated CHANGELOG.md

* fixed docs

* make clippy happy

* implemented DisabledIf

* reformat

* updated CHANGELOG.md

* fix issue

* updated example

Signed-off-by: xarvic <[email protected]>

* added License, updated documentation

Signed-off-by: xarvic <[email protected]>

* reformat

Signed-off-by: xarvic <[email protected]>

* reformat

Signed-off-by: xarvic <[email protected]>

* implement disabled state for button

Signed-off-by: xarvic <[email protected]>

* updated visuals of controls when disabled

Signed-off-by: xarvic <[email protected]>

* reformat

Signed-off-by: xarvic <[email protected]>

* run clippy

Signed-off-by: xarvic <[email protected]>

* run cargo fmt

Signed-off-by: xarvic <[email protected]>

* Update CHANGELOG.md

* implemented disabled-text-color

Signed-off-by: xarvic <[email protected]>

* changed background

Signed-off-by: xarvic <[email protected]>

* reformat

Signed-off-by: xarvic <[email protected]>

* Changed label.

Signed-off-by: xarvic <[email protected]>

* added deprecation note

Signed-off-by: xarvic <[email protected]>

Co-authored-by: xarvic <[email protected]>
Co-authored-by: Colin Rofls <[email protected]>
@xarvic xarvic merged commit 3d82e5b into xarvic:master May 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.