Commit graph

588 commits

Author SHA1 Message Date
Héctor Ramón
dc0b96ce40
Merge pull request #872 from 13r0ck/master
add scrolling to pick_lists
2021-07-22 21:38:22 +07:00
Héctor Ramón Jiménez
46aab24d91
Enable scroll selection for PickList only when scroll is discrete 2021-07-22 21:28:21 +07:00
Héctor Ramón Jiménez
6069e90c9b
Abstract and improve scroll logic in PickList 2021-07-22 21:15:35 +07:00
Héctor Ramón
587dbbca42
Merge pull request #776 from AldoMX/master
Added `select_all` method to `TextInput`.
2021-07-22 20:48:03 +07:00
Héctor Ramón Jiménez
a866f8742e
Avoid cloning placeholder for PickList unnecessarily during draw 2021-07-22 20:22:38 +07:00
Héctor Ramón Jiménez
26b2a824a9
Remove duplication of measuring logic in PickList 2021-07-22 20:09:13 +07:00
Héctor Ramón Jiménez
45bd685f7c
Hash placeholder in hash_layout implementation for PickList 2021-07-22 19:13:00 +07:00
Jon Pacheco
fa433743b3
feat: add placeholders to pick_list
see issue #726
2021-07-22 19:12:56 +07:00
Héctor Ramón
82488de3ab
Merge pull request #885 from Chiheisen/master
image viewer: Only calculate viewport based width/length for Length::Unit|Shrink
2021-07-22 18:37:11 +07:00
Héctor Ramón
8e29709b69
Merge pull request #945 from derezzedex/menu
feat: add menus
2021-07-20 21:44:33 +07:00
Héctor Ramón Jiménez
4dc1bba5cd
Remove unnecesary use of Option::unwrap
... in `overlay` implementation for `pane_grid::TitleBar`
2021-07-15 16:49:19 +02:00
Héctor Ramón Jiménez
2993e9b466
Fix implementation of Widget::overlay for pane_grid::TitleBar 2021-07-15 16:43:52 +02:00
Héctor Ramón Jiménez
5df2a92f28
Force Application::Message to implement Clone
A `Message` should represent an application event (e.g. user
interactions, command results, subscription results...). Therefore, it
should always consist of pure, cloneable data.
2021-07-13 21:15:07 +02:00
Héctor Ramón Jiménez
b57d567981
Use bitflags for keyboard::Modifiers 2021-07-12 22:01:57 +02:00
Héctor Ramón Jiménez
735cfb7908
Move menu module from iced_native to iced_core 2021-07-12 21:44:01 +02:00
Héctor Ramón Jiménez
1428e9180a
Make Menu API a bit more functional 2021-07-12 21:38:54 +02:00
Richard
9fc5ad23ed Initial menu implementation 2021-07-05 16:24:10 -03:00
Richard
96a462d2f2
Use new enum variant and new winit repo 2021-06-25 14:14:03 +02:00
Richard
9ae22b58d8
Added events for url handling and create example 2021-06-25 14:14:03 +02:00
Héctor Ramón
b62fcca9b9
Merge pull request #915 from yusdacra/docs/update-links
docs: update all 0.2 github links to 0.3
2021-06-22 12:19:38 +02:00
Héctor Ramón Jiménez
15c17a7250
Use match statement in Content::overlay
... to improve readability a bit.
2021-06-22 11:36:36 +02:00
Clark Moody
27b42ca6b6 Allow overlay from pane grid title bar 2021-06-17 14:51:23 -05:00
Yusuf Bera Ertan
83d19689c8
docs: update all 0.2 github links to 0.3 2021-06-14 21:01:37 +03:00
Héctor Ramón
d46dd67a91 Update disabled example of Button in docs 2021-06-10 18:58:40 +07:00
Jonas Matser
e66120b9c1 Fix failing doctests 2021-06-10 18:28:38 +07:00
Jonas Matser
dbc1181011 Adds doc comment for disabled button
Makes disabled button behavior consistent in web
2021-06-10 18:28:37 +07:00
Héctor Ramón
3051d4ec76 Introduce on_scroll event in Scrollable 2021-06-04 20:46:27 +07:00
Héctor Ramón
827577c179 Introduce snap_to and unsnap to scrollable::State 2021-06-04 20:09:15 +07:00
Yusuf Bera Ertan
f7d6e40bf0 feat(native): Make scrollable programmatically scrollable for some use cases, add snap_to_bottom by default 2021-06-04 19:29:58 +07:00
Héctor Ramón
ef5f46bcdd Use intra-doc links in Toggler docs 2021-06-03 20:28:36 +07:00
Héctor Ramón
a32ce271bd Rename text_align to text_alignment in Toggler 2021-06-03 20:27:32 +07:00
Kaiden42
c0cfd9d5cf Update documentation of Toggler 2021-06-03 20:21:55 +07:00
Kaiden42
7a626f3b7b Change label of Toggler to optional 2021-06-03 20:21:55 +07:00
Kaiden42
aa18a6e0d5 Add alignment of Toggler label. 2021-06-03 20:21:55 +07:00
Kaiden42
7370dfac6e fix missing semicolon in doc test 2021-06-03 20:21:04 +07:00
Kaiden42
52a185fbab Implement Toggler widget for iced_native 2021-06-03 20:21:02 +07:00
Héctor Ramón
8a3b71df8b Replace ignored doc-tests with additional documentation for Padding 2021-06-01 19:45:47 +07:00
Héctor Ramón
b94cd7a2a8 Use Padding::horizontal and Padding::vertical helpers 2021-06-01 19:21:43 +07:00
Héctor Ramón
92361ef07d Fix overlay::Menu implementation 2021-06-01 19:13:34 +07:00
Ben LeFevre
fe0a27c56d Add support for asymmetrical padding 2021-06-01 19:05:39 +07:00
13r0ck
fbfb28b8d4 Remove redundant 'on_change' 2021-05-25 08:23:04 -06:00
Clark Moody
d4c5f3ee95 Enable event handling within the title elements
Shrink the pick area to avoid both the controls and the title elements.
Handle events and merge title area event status with control events.
2021-05-24 16:37:47 -05:00
Aaron Housh
ae484429d3 Merge branch 'hecrj:master' into upgrade-wgpu 2021-05-19 07:14:26 -07:00
Héctor Ramón
8b7452a55d Fix formatting with cargo fmt 2021-05-19 16:26:04 +07:00
chiheisen
59f3896392 fix pick_list layouting not respecting fonts 2021-05-18 12:37:23 +02:00
chiheisen
fe2392e973 viewer: Don't calculate viewport on Fill|Portion
Currently image::viewer will not expand it's image into empty space even
when Length::Fill or Length::FillPortion are used. Only calculate
viewport when viewer cannot expand.
2021-05-17 22:01:43 +02:00
zdevwu
40d21d2365
Added text color and font options for native radio and checkbox (#831)
* text color and font options to radio

* code formatting

* code formatting

* code formatting

* Added text_color for native checkbox

* Removed clone as color has Copy

* Fix code formatting with `cargo fmt`

Co-authored-by: Héctor Ramón <hector@lich.io>
2021-05-17 20:22:55 +07:00
13r0ck
3a9ad89970 cargo fmt 2021-05-10 16:06:39 -06:00
13r0ck
8f319d7c6f Improve performance using iters 2021-05-10 16:05:50 -06:00
13r0ck
77e6e111e0 add scrolling to pick_lists 2021-05-10 14:29:35 -06:00