Commit graph

4315 commits

Author SHA1 Message Date
Héctor Ramón
80a29a277e
Merge pull request #2214 from dtzxporter/workaround-winit-win32-issues
Workaround issue with winit on windows not resuming the event loop.
2024-02-07 19:50:46 +01:00
Héctor Ramón Jiménez
a631f4d745
Remove allow(unused_mut) in winit::application 2024-02-07 19:42:55 +01:00
Héctor Ramón Jiménez
518ec52ebd
Update CHANGELOG 2024-02-07 19:37:00 +01:00
dtzxporter
66823e9a65
Emulate AboutToWait event on Windows while resizing
More details: https://github.com/rust-windowing/winit/issues/3272
2024-02-07 19:33:01 +01:00
Héctor Ramón
b4dcf4ecf7
Merge pull request #2210 from MoSal/glyph_cache_capacity_limit
tiny_skia: Add a capacity limit to `GlyphCache`
2024-02-07 14:40:44 +01:00
Héctor Ramón Jiménez
9c977116ed
Update CHANGELOG 2024-02-07 14:28:51 +01:00
Mohammad AlSaleh
5bd93181f3
tiny_skia: Add a capacity limit to GlyphCache
* Trim the cache if `recently_used` size reaches the limit, even if a
   trim interval hasn't passed.
 * Shrink `entries` and `recently_used` to the limit when trimming.

Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
2024-02-07 14:27:35 +01:00
Héctor Ramón
bdd1891f43
Merge pull request #2207 from VAWVAW/mouse-area-interaction
Add `Interaction` overriding to `MouseArea`
2024-02-07 12:20:45 +01:00
Héctor Ramón Jiménez
d5a3e599b3
Update CHANGELOG 2024-02-07 12:06:34 +01:00
Héctor Ramón Jiménez
8b22e0ebbc
Shorten properties in MouseArea 2024-02-07 12:05:47 +01:00
Héctor Ramón Jiménez
ab3aa77ebe
Update CHANGELOG 2024-02-07 12:03:15 +01:00
Héctor Ramón Jiménez
fef6fca369
Shorten some MouseArea methods 2024-02-07 12:02:56 +01:00
Héctor Ramón Jiménez
d756a9210a
Override MouseArea interaction only when contents are idle 2024-02-07 12:00:33 +01:00
vawvaw
bcdfbf4871
Add Interaction overriding to MouseArea
Add the ability to use a custom `iced:🐭:Interaction` for a
`iced::widget::MouseArea`.
2024-02-07 11:56:43 +01:00
Héctor Ramón
d3619b5f69
Merge pull request #2200 from dtzxporter/run-window-callback
Provide native window access, via "fetch_native_handle" method on window.
2024-02-07 10:40:06 +01:00
Héctor Ramón Jiménez
2a3778daa3
Pin web-sys dependency to 0.3.67 for now
Context: https://github.com/rustwasm/wasm-bindgen/issues/3834
2024-02-07 10:32:47 +01:00
Héctor Ramón Jiménez
dea9800503
Update CHANGELOG 2024-02-07 09:52:23 +01:00
Héctor Ramón Jiménez
2a544dca2f
Fix documentation of Action::RunWithHandle 2024-02-07 09:49:19 +01:00
Héctor Ramón Jiménez
f18a81451f
Rename fetch_native_handle to run_with_handle in window 2024-02-07 09:47:15 +01:00
dtzxporter
7105992228
Re-implement against latest iced master. Rename FetchNativeHandle. 2024-02-07 09:35:13 +01:00
Héctor Ramón
6f97b62457
Merge pull request #2188 from fogarecious/add_doc
Add doc to direct developers to enable features for iced::time::every
2024-02-06 00:51:43 +01:00
Héctor Ramón Jiménez
12ea2a18a5
Update CHANGELOG 2024-02-06 00:41:10 +01:00
fogarecious
1cd22bb6a2
Fix missing feature flag docs for time::every 2024-02-06 00:39:47 +01:00
Héctor Ramón
cb2c8dd86e
Merge pull request #2174 from hicaru/list_picker_events
List picker events
2024-02-06 00:29:45 +01:00
Héctor Ramón Jiménez
79b80fafb8
Update CHANGELOG 2024-02-06 00:11:31 +01:00
Héctor Ramón Jiménez
59a79e55d4
Rename PickList handlers for consistency 2024-02-06 00:10:54 +01:00
Rinat
6cf7c4645d
Add on_opened and on_closed handlers for PickList 2024-02-06 00:10:54 +01:00
Héctor Ramón
b5b267c31c
Merge pull request #2235 from fogarecious/add-from-pathbuf-to-svg-handle
Make the svg function to accept a path
2024-02-06 00:05:08 +01:00
Héctor Ramón Jiménez
f2e904f348
Update CHANGELOG 2024-02-05 23:53:51 +01:00
fogarecious
7bd849199c
Add From<PathBuf> to Svg Handle 2024-02-05 23:52:04 +01:00
Héctor Ramón
8e76d53803
Merge pull request #2237 from iced-rs/fix/mapped-subscription-id
Use `TypeId` to identify `subscription::Map`
2024-02-05 22:05:14 +01:00
Héctor Ramón Jiménez
2fb271a976
Remove redundant id field in subscription::Map 2024-02-05 21:39:03 +01:00
Héctor Ramón Jiménez
35bbee501f
Update CHANGELOG 2024-02-05 21:37:13 +01:00
Héctor Ramón Jiménez
2470a3fb40
Assert closure provided to Subscription::map is non-capturing 2024-02-05 21:34:35 +01:00
Héctor Ramón Jiménez
f39a5fd895
Use TypeId to identify subscription::Map 2024-02-05 00:52:16 +01:00
Héctor Ramón Jiménez
e14e8e2e9a
Fix new beta toolchain warnings 2024-02-05 00:51:51 +01:00
Héctor Ramón Jiménez
8792fc0bb7
Fix unused import in game_of_life example 2024-02-05 00:26:47 +01:00
Héctor Ramón Jiménez
854e967a26
Fix unused Instant in game_of_life example 2024-02-05 00:25:40 +01:00
Héctor Ramón
878134883e
Merge pull request #2170 from varbhat/vbt/colorpalettes
Add Nord, Dracula, Solarized and Gruvbox themes
2024-02-03 19:07:06 +01:00
Héctor Ramón Jiménez
ed02c1b24d
Capitalize theme names in docs of Theme 2024-02-03 18:56:33 +01:00
Héctor Ramón Jiménez
25779358b6
Update CHANGELOG 2024-02-03 18:54:16 +01:00
Héctor Ramón Jiménez
ed159cb963
Fix import style in style::theme::palette 2024-02-03 18:52:48 +01:00
Héctor Ramón Jiménez
17cb548e20
Use Theme::ALL for theme selector in styling example 2024-02-03 18:51:30 +01:00
Héctor Ramón Jiménez
5770efe06d
Capitalize theme names in style::theme::palette 2024-02-03 18:41:06 +01:00
Héctor Ramón Jiménez
fb646a7f14
Make color! macro const-friendly 2024-02-03 18:37:42 +01:00
Var Bhat
04b9dc4e2d
Add Dracula, Nord, Solarized and Grubvox variants to Theme 2024-02-03 18:29:25 +01:00
Var Bhat
6492d9d927
make color! macro expand hex as Color directly 2024-02-03 18:25:03 +01:00
Héctor Ramón
6756594fc6
Merge pull request #2147 from Remmirad/mouse_area_hover_events
Add mouse move events to MouseArea
2024-02-03 18:17:42 +01:00
Héctor Ramón Jiménez
3da6afdc41
Update CHANGELOG 2024-02-03 18:06:50 +01:00
Héctor Ramón Jiménez
8ea85f3b12
Use Fn instead of FnMut in MouseArea
... and simplify event logic a bit.
2024-02-03 18:05:40 +01:00