Commit graph

2064 commits

Author SHA1 Message Date
Héctor Ramón
d9f970ffd5
Merge pull request #1112 from AndiHofi/on_exit_callback
Application::run returns on native platforms
2021-11-29 14:57:40 +07:00
Héctor Ramón
96c7f9765c
Merge pull request #1118 from TannerRogalsky/native-web-fixes
Native web fixes.
2021-11-29 14:51:35 +07:00
Héctor Ramón Jiménez
2f50d11461
Improve documentation of Application::run 2021-11-29 14:44:19 +07:00
Héctor Ramón Jiménez
0648d9d234
Fix imports in application modules 2021-11-29 14:43:07 +07:00
Andreas Hofstadler
08c771fa70
Allow Application::run to return on native platforms 2021-11-29 14:41:05 +07:00
Héctor Ramón
aeec0375f0
Merge pull request #1125 from iced-rs/fix/overlay-layer-clip-bounds
Fix overflow of graphics primitives in overlays
2021-11-23 17:44:57 +07:00
Héctor Ramón
71685a1350
Merge pull request #1124 from iced-rs/fix/pane-grid-mouse-interaction
Fix implementation of `Widget::mouse_interaction` for `PaneGrid`
2021-11-22 13:36:30 +07:00
Héctor Ramón
e2ec824678
Merge pull request #1121 from Imberflur/fix-some-doc-links
Fix a few doc links
2021-11-21 15:16:31 +07:00
Héctor Ramón Jiménez
92b3b169c6
Fix overflow of graphics primitives in overlays
... by using `overlay_bounds` instead of `viewport` as clip bounds for overlay layer in `UserInterface::draw`
2021-11-21 15:09:53 +07:00
Héctor Ramón Jiménez
77aa05afd3
Fix implementation of Widget::mouse_interaction for PaneGrid 2021-11-21 15:06:01 +07:00
Imbris
b89d3bed5c Fix a few doc links 2021-11-17 12:08:52 -05:00
Héctor Ramón
d165b789df
Merge pull request #1114 from tarkah/fix/slider-optimization
Don't rebroadcast redundant slider messages
2021-11-16 16:00:31 +07:00
Héctor Ramón
27bc2b9086
Merge pull request #1116 from gonsor/checkbox_text_color
Add checkbox text_color styling
2021-11-15 15:35:27 +07:00
Héctor Ramón Jiménez
1ce02e8c7a
Derive Eq for slider::State again 2021-11-15 15:33:02 +07:00
Héctor Ramón Jiménez
94d62bca9a
Use value in Slider to store the previous value 2021-11-15 15:30:53 +07:00
Héctor Ramón
04f3a3d81b
Merge pull request #1117 from TannerRogalsky/twox-hash_no-default-features
Disable default features in twox-hash dependency.
2021-11-15 15:13:21 +07:00
Tanner Rogalsky
24d7d4740f Use iced_futures utilities to make native work under wasm32 target. 2021-11-14 11:04:20 -05:00
Tanner Rogalsky
55eaeceec8 Collect the platform-specific concrete future implementations into mods. 2021-11-14 11:03:15 -05:00
Tanner Rogalsky
4cb3820a4e Disable default features in twox-hash dependency.
We don't use twox-hash's random seeding features. Removing them makes
this crate leaner and also more portable (specifically for web).
2021-11-14 10:53:43 -05:00
Daniel May
1a6c912332 Add checkbox text_color styling 2021-11-14 11:35:12 +01:00
Cory Forsstrom
9a254a211b Don't rebroadcast redundant slider messages 2021-11-11 10:32:37 -08:00
Héctor Ramón
f084ed8df1
Merge pull request #1106 from RamType0/RemoveUnnecessaryStringAllocationInExample
Remove unnecessary String allocation
2021-11-10 23:59:35 +07:00
Héctor Ramón Jiménez
e6627bb96d
Fix formatting with cargo fmt 2021-11-10 16:35:13 +07:00
Héctor Ramón
eafad00af2
Merge pull request #1110 from iced-rs/remove-renderer-traits
Reduce the surface of the `Renderer` APIs
2021-11-07 15:15:33 +07:00
Héctor Ramón Jiménez
07b5097bc9
Merge branch 'master' into remove-renderer-traits 2021-11-05 17:11:06 +07:00
Héctor Ramón Jiménez
8be1ba76d8
Make program module in iced_glow private 2021-11-05 17:08:35 +07:00
Héctor Ramón Jiménez
b64e875205
Write missing documentation in iced_graphics 2021-11-05 15:38:40 +07:00
Héctor Ramón Jiménez
9fe65ed729
Rename Renderer::present to with_primitives 2021-11-05 15:38:27 +07:00
Héctor Ramón Jiménez
aca9d414d3
Write missing documentation in iced_native 2021-11-05 15:31:33 +07:00
Héctor Ramón Jiménez
d5f4067def
Write documentation for iced_native::text 2021-11-04 19:24:52 +07:00
Héctor Ramón Jiménez
faaa17c3a5
Write documentation for iced_native::svg 2021-11-04 19:24:40 +07:00
Héctor Ramón Jiménez
597ef7d5fc
Write documentation for iced_native::image 2021-11-04 19:24:25 +07:00
Héctor Ramón Jiménez
023aded277
Rename fill_rectangle to fill_quad in Renderer 2021-11-04 19:24:11 +07:00
Héctor Ramón Jiménez
343f9b7e2e
Merge iced_core::text with iced_native::text 2021-11-04 18:28:06 +07:00
Héctor Ramón Jiménez
ef5a731e4b
Use mem::take instead of mem::replace in iced_graphics::Renderer
Thanks to @tarkah for pointing this out!
2021-11-04 18:24:13 +07:00
Héctor Ramón
61c747b535
Merge pull request #1109 from mettz/master
Fix color issue with Debugger::explain implementation for Renderer
2021-11-04 14:37:40 +07:00
Mattia Guazzaloca
8782f45955 Fix color issue with Debugger::explain implementation for Renderer 2021-11-03 22:48:13 +01:00
Héctor Ramón Jiménez
157a40a568
Introduce generic lifetime to Default implementation for style sheets 2021-11-02 16:02:05 +07:00
Héctor Ramón Jiménez
631e95ee0b
Move viewport argument to last position in mouse_interaction methods
This keeps the order of the arguments consistent with `draw`.
2021-11-02 15:03:29 +07:00
Ram.Type-0
0245f289b2 Remove unnecessary String allocation
Remove unnecessary String allocation by passing &format! or &x.to_string as impl Into<String>
2021-11-02 00:05:25 +09:00
Héctor Ramón Jiménez
c330bb1b69
Fix mouse_interaction using wrong layout in PaneGrid
... when no titlebar is present.
2021-11-01 17:39:46 +07:00
Héctor Ramón Jiménez
a1db8d62c0
Reintroduce draw method in TextInput
... which allows overriding the rendered value.
2021-11-01 16:29:28 +07:00
Héctor Ramón Jiménez
e50bb1dd2c
Fix missing lifetime in doc example for Toggler 2021-11-01 14:58:50 +07:00
Héctor Ramón Jiménez
e70a6be937
Merge branch 'master' into remove-renderer-traits 2021-10-31 17:52:21 +07:00
Héctor Ramón Jiménez
c9ed15782c
Introduce state lifetime for style_sheet in Toggler 2021-10-31 17:48:23 +07:00
Héctor Ramón Jiménez
0d3c9ef7bd
Reintroduce Box for style_sheet in TextInput 2021-10-31 17:45:57 +07:00
Héctor Ramón Jiménez
0c76e0307f
Reintroduce Box for style_sheet in Slider 2021-10-31 17:42:43 +07:00
Héctor Ramón Jiménez
eed19dcf81
Reintroduce Box for style_sheet in Scrollable 2021-10-31 17:39:24 +07:00
Héctor Ramón Jiménez
48490c3d87
Introduce state lifetime for style_sheet in Rule 2021-10-31 17:34:58 +07:00
Héctor Ramón Jiménez
bd7b086ec1
Reintroduce Box for style_sheet in Radio 2021-10-31 17:14:10 +07:00