Commit graph

5504 commits

Author SHA1 Message Date
Héctor
d660fad33d
Merge pull request #2649 from kosayoda/window-focus-fix
Prevent unintended keyboard input during focus.
2024-10-25 14:41:40 +02:00
kosayoda
6ed88f7608 Prevent unintended keyboard input during focus. 2024-10-24 16:12:18 -04:00
Héctor
17b35df160
Merge pull request #2628 from tarkah/fix/pane-grid-continuity
Fix/pane grid continuity
2024-10-24 15:04:23 +02:00
Héctor Ramón Jiménez
d08bc6e45d
Add relabel helper to pane_grid::State 2024-10-24 14:17:38 +02:00
Héctor Ramón Jiménez
55504ffcd4
Rename state::Widget to pane_grid::Memory 2024-10-24 13:55:04 +02:00
Héctor Ramón Jiménez
089e629f41
Fix responsive diffing when Tree is emptied by ancestors 2024-10-24 13:48:42 +02:00
Héctor Ramón Jiménez
659669dd58
Remove duplicated maximized state in pane_grid 2024-10-24 13:48:34 +02:00
Cory Forsstrom
5ebd8ac83f
Keep Pane associated to state / layout after swap
State continuity is dependent on keeping a node associated
to it's original `Pane` id. When splitting -> swapping
nodes, we need to assign it back to the original `Pane`
to enforce continuity.
2024-10-24 13:05:42 +02:00
Cory Forsstrom
9ac3318357
Retain widget state against incoming panes
We can associate each state with a `Pane` and compare
that against the new panes to remove states w/ respective
panes which no longer exist.

Because we always increment `Pane`, new states are always
added to the end, so this retain + add new state approach
will ensure continuity when panes are added & removed
2024-10-24 13:05:42 +02:00
Cory Forsstrom
415fd4f643
Use BTreeMap for Ord iteration of panes
This ensures continuity in how panes are iterated on
when building widget state
2024-10-24 13:05:42 +02:00
Héctor Ramón Jiménez
f4d03870dd
Dismiss large-enum-variant lint 2024-10-22 03:01:24 +02:00
Kevin Day
ad34f03df4 Modified clock example to make the clock more readable. Added numbers on the clock face and took the portion of the hour passed into consideration for the hour hand. It now looks like a reasonable clock. 2024-10-19 16:12:38 +10:00
Michelle Granat
ab2adb11be
Update button Catalog and Style documentation (#2590)
* Update button Catalog and Style documentation

* Clarified button documentation

* fix code typo

* Run `cargo fmt`

* Fixed docs to pass tests

---------

Co-authored-by: Héctor Ramón Jiménez <hector@hecrj.dev>
2024-10-17 04:29:31 +00:00
Héctor Ramón Jiménez
4e0a63091c
Fix new elided lifetime lint in the beta toolchain 2024-10-17 06:14:30 +02:00
Héctor
f19bb02c6e
Merge pull request #2639 from l-const/consecutive-click-distance
Introduce consecutive click distance check like other toolkit do such as gtk,qt, imgui.
2024-10-15 05:31:12 +02:00
l-const
6c5799e759
Introduce consecutive click distance like other toolkits such as gtk,qt, imgui. 2024-10-14 23:01:07 +03:00
Héctor
c01ef5bdbb
Merge pull request #2632 from leo030303/fix_delete_key_bug
Fixed bug where delete key wasn't working in the text editor
2024-10-14 21:16:42 +02:00
Héctor
5d8fc922c8
Merge pull request #2637 from Brady-Simon/style-partialeq
Add PartialEq derives for widget styles
2024-10-14 21:09:16 +02:00
Leo Ring
da1331169c
Fix Binding::Delete not triggering in text_editor 2024-10-14 21:07:08 +02:00
BradySimon
f912d26d64
Add PartialEq derives for widget styles 2024-10-14 20:59:32 +02:00
bbb651
dd08f98f0e Add window::Settings::fullscreen
Corresponds to `winit:🪟:WindowAttributes::with_fullscreen`.

Currently only allows to set `Fullscreen::Borderless(None)` meaning
borderless on the current monitor, exclusive fullscreen does not
make sense for a GUI and iced does not expose monitors yet.
2024-10-04 21:20:43 +03:00
bbb651
13c649881e Add window::Settings::maximized
Corresponds to `winit:🪟:WindowAttributes::with_maximized`
2024-10-04 21:14:06 +03:00
Héctor Ramón Jiménez
c217500a5a
Fix mouse::Cursor fighting in stack widget 2024-10-04 17:33:38 +02:00
Héctor Ramón Jiménez
d057b16153
Fix responsive, component, and lazy always returning an overlay 2024-10-04 17:13:44 +02:00
Héctor Ramón Jiménez
fca5d8038a
Implement Overlay::operate for responsive::Overlay 2024-10-04 16:58:05 +02:00
Héctor Ramón Jiménez
89c6654810
Fix Task::chain when chained task is Task::none 2024-10-04 16:48:46 +02:00
Héctor
bc215f6077
Merge pull request #2623 from boondocklabs/markdown-lifetime
Change lifetime of markdown IntoIterator Item, as it does not need to live as long as the returned Element
2024-10-02 18:08:11 +02:00
Héctor
4a080e27ab
Merge pull request #2606 from tvolk131/qr_code_fixed_size
feat: set total size of QRCode
2024-10-02 17:23:33 +02:00
Héctor
d5f278b31d
Merge pull request #2611 from tarkah/fix/ignore-out-of-viewport-text
Don't fill out of viewport text
2024-10-02 17:21:22 +02:00
Héctor Ramón Jiménez
b02ec8b6b2
Make cell_size and total_size generic over Pixels in qr_code 2024-10-02 17:14:03 +02:00
Héctor Ramón Jiménez
a1e2bd22ec
Simplify total size logic in qr_code example 2024-10-02 17:14:00 +02:00
Héctor
5ee82b2ef0
Merge pull request #2608 from ibaryshnikov/haskell
added physical_key to KeyReleased event
2024-10-02 17:02:13 +02:00
Héctor Ramón Jiménez
32cdc99e92
Add modified_key to keyboard::Event::KeyReleased 2024-10-02 16:53:10 +02:00
Héctor Ramón Jiménez
d40aa6400d
Cull widget draw calls in column and row 2024-10-02 15:45:21 +02:00
Héctor
40abed6e5c
Merge pull request #2619 from edwloef/master
Derive `Default` for `iced_wgpu::geometry::Cache`
2024-10-02 15:34:06 +02:00
Héctor
e504e35146
Merge pull request #2615 from bbb651/wayland-file-dropped-doc
Document Wayland `File*` Events as Unsupported & Fix Typos
2024-10-02 15:29:35 +02:00
Héctor
e086c19a06
Merge pull request #2617 from tvolk131/fix_circular_progress_skipping
fix: circular progress no longer skips
2024-10-02 15:26:34 +02:00
edwloef
a5c42d4cb1
Derive Default for iced_wgpu::geometry::Cache 2024-10-02 15:24:37 +02:00
Matt Thompson
8d66b97888 Change lifetime of markdown view IntoIterator Item, as it does not need to live as long as the returned Element. 2024-10-01 19:30:10 -07:00
Tommy Volk
8028a0ddce fix: circular progress no longer skips 2024-09-29 22:17:30 -05:00
bbb651
7a86900a45 Fix various typos
Using https://github.com/crate-ci/typos
2024-09-29 16:37:35 +03:00
bbb651
afecc0f367 Document File{Dropped,Hovered,HoveredLeft} as unsupported on wayland
Blocked on https://github.com/rust-windowing/winit/issues/1881
2024-09-29 16:28:05 +03:00
Cory Forsstrom
509a0a574a
Don't fill out of viewport text 2024-09-27 08:58:33 -07:00
ibaryshnikov
8b34f99b02 added physical_key to KeyReleased event 2024-09-26 17:13:32 +03:00
Tommy Volk
a949e59f3e feat: set total size of QRCode 2024-09-24 20:57:53 -05:00
7sDream
75548373a7
Add support for double click event to MouseArea (#2602)
* feat(widget/mouse_area): add double_click event

* Run `cargo fmt`

---------

Co-authored-by: Héctor Ramón Jiménez <hector@hecrj.dev>
2024-09-24 21:05:17 +00:00
Héctor
3c68b64cbf
Merge pull request #2605 from Gobbel2000/frame_paste
Include images and saved meshes when pasting `Frame`
2024-09-24 22:59:57 +02:00
Héctor
faff6fb8e0
Merge pull request #2601 from edwloef/master
always increment solid/gradient count in wgpu mesh rendering
2024-09-24 22:43:13 +02:00
Gabriel Vogel
26b09e1b4d Include images and saved meshes when pasting Frame
`tiny_skia::Frame` was ignoring images in `Frame::paste`, making images
not show up when created in a `with_clip` context.

`wgpu::Frame` similarly did not pass through meshes in its paste method,
that may have been saved from a nested `with_clip` call.
2024-09-24 22:29:03 +02:00
Héctor
142aba2f17
Merge pull request #2598 from iced-rs/fix/shrink-cross-flex-layout
Fix flex layout of `Fill` elements in a `Shrink` cross axis
2024-09-24 21:59:41 +02:00