summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use data urls instead of blob URLsLibravatar Liam Murphy2021-04-102-18/+7
| | | | I didn't do this originally because I was half doing it in the first place to mess with Blob URLs, and it feels kinda wrong to be encoding it as base64 when that option is available. But not having memory leaks is more important.
* fix: Don't rely on image handle not being droppedLibravatar Liam Murphy2021-03-211-36/+21
| | | | It now causes a memory leak, though. :/
* Add `Blob` to web-sys featuresLibravatar Liam Murphy2021-03-211-0/+1
| | | | rust-analyzer lied to me
* feat(web): Support in-memory image dataLibravatar Liam Murphy2021-03-212-0/+41
| | | | | | I had to create two methods which basically do the same thing, `from_memory` and `from_slice`, but `from_memory` takes ownership of the bytes to be compatible with `iced_native`. Also, `Data` is incompatible, because if I stored the bytes in `Data` and created a new object URL every render, it would have caused a memory leak because bumpalo doesn't call destructors and there'd be no way to call URL.revokeObjectUrl on it. It's also more efficient this way.
* Overwrite `overlay` method in Widget implementation for Button (#764)Libravatar Nicolas Levy2021-03-141-0/+8
| | | | | | | * Overwrite `overlay` method in Widget implementation for Button * Overwrite `overlay` method in Widget implementation for Button (cargo fmt) * Fix button overlay
* Merge pull request #773 from hecrj/feature/clipboard-access-in-updateLibravatar Héctor Ramón2021-03-1221-58/+170
|\ | | | | Clipboard access in `Application::update`
| * Implement stub `Clipboard` in `iced_web`Libravatar Héctor Ramón Jiménez2021-03-113-4/+38
| | | | | | | | | | We need to figure out browser permissions and use of unstable `web-sys` APIs
| * Expose `read` and `write` methods in `iced_winit::Clipboard` directlyLibravatar Héctor Ramón Jiménez2021-03-111-4/+14
| |
| * Add `clipboard` argument to `Application::update`Libravatar Héctor Ramón Jiménez2021-03-1118-50/+118
|/
* Merge pull request #770 from hecrj/feature/clipboard-writeLibravatar Héctor Ramón2021-03-1032-129/+227
|\ | | | | Write clipboard support and `TextInput` copy and cut behavior
| * Implement copy and cut behavior for `TextInput`Libravatar Héctor Ramón Jiménez2021-03-101-0/+40
| |
| * Make `Clipboard` argument in `Widget` trait mutableLibravatar Héctor Ramón Jiménez2021-03-1031-129/+175
| |
| * Introduce `write` method to `Clipboard` traitLibravatar Héctor Ramón Jiménez2021-03-102-0/+10
| |
| * Update `window_clipboard` to `0.2`Libravatar Héctor Ramón Jiménez2021-03-106-9/+11
| |
* | Merge pull request #771 from hecrj/fix/tooltip-layeringLibravatar Héctor Ramón2021-03-106-45/+89
|\ \ | |/ |/| Reposition `Tooltip` inside `viewport` bounds
| * Reposition `Tooltip` inside `viewport` boundsLibravatar Héctor Ramón Jiménez2021-02-271-37/+60
| | | | | | | | ... only when out of bounds.
| * Fix `viewport` argument in `PaneGrid` draw callsLibravatar Héctor Ramón Jiménez2021-02-275-8/+29
| |
* | Call `hash_layout` for `controls` in `pane_grid::TitleBar`Libravatar Héctor Ramón Jiménez2021-03-091-0/+4
| |
* | Merge pull request #760 from TriedAngle/masterLibravatar Héctor Ramón2021-03-052-6/+4
|\ \ | |/ |/| Update: rand in solar_system example
| * Update: randLibravatar Sebastian2021-03-032-6/+4
|/
* Merge pull request #465 from yusdacra/tooltip-widgetLibravatar Héctor Ramón2021-02-2415-16/+577
|\ | | | | Tooltip widget
| * Hide `Text` as an implementation detail of `Tooltip`Libravatar Héctor Ramón Jiménez2021-02-242-11/+25
| |
| * Generate new layers only for clip primitives in `Layer::generate`Libravatar Héctor Ramón Jiménez2021-02-231-12/+28
| |
| * Add `style` and `padding` to `Tooltip`Libravatar Héctor Ramón Jiménez2021-02-233-31/+115
| |
| * Export `Tooltip` in `iced_glow`Libravatar Héctor Ramón Jiménez2021-02-232-0/+9
| |
| * Introduce `Tooltip::gap` to control spacingLibravatar Héctor Ramón Jiménez2021-02-233-6/+21
| |
| * Remove `viewport` from `Overlay::draw` for nowLibravatar Héctor Ramón Jiménez2021-02-234-10/+2
| |
| * Change `Tooltip` to support `Text` only for nowLibravatar Héctor Ramón Jiménez2021-02-2315-303/+172
| |
| * feat(native): add Tooltip widgetLibravatar Yusuf Bera Ertan2021-02-1523-18/+580
| |
* | Log event subscription error as a warningLibravatar Héctor Ramón Jiménez2021-02-231-1/+1
| |
* | Merge pull request #739 from hecrj/fix/beta-warningsLibravatar Héctor Ramón2021-02-167-2/+10
|\ \ | |/ |/| Fix warnings in the `beta` toolchain
| * Use string literal as panic message in `iced_glow`Libravatar Héctor Ramón Jiménez2021-02-161-2/+2
| |
| * Allow dead code explicitly in `iced_web`Libravatar Héctor Ramón Jiménez2021-02-166-0/+8
|/
* Merge pull request #392 from unrelentingtech/image-debloatLibravatar Héctor Ramón2021-02-136-23/+37
|\ | | | | Add image format options to reduce code bloat
| * Fix `image` feature name in `glow` and `iced`Libravatar Héctor Ramón Jiménez2021-02-132-2/+2
| |
| * Add image format options to reduce code bloat, fixes #376Libravatar Greg V2021-02-138-25/+39
|/
* Improve download_progress example (#283)Libravatar Folyd2021-02-124-81/+168
| | | | | | | | | | | | | | | | | | | | | * Add advanced download example * Rename to task fields and variables * Cargo fmt advanced_download/src/download.rs * Add progress bar for advanced download example * Merge two download examples to single one * Apply great review suggestions * Change to url::Url instead of plain String * Simplify `download_progress` example * Update `README` of `download_progress` example Co-authored-by: Héctor Ramón Jiménez <hector0193@gmail.com>
* Touch support for `PaneGrid` and `PickList` (#650)Libravatar anunge2021-02-124-70/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * touch events properly parsed and converted to logical size, button working * scrolling with a nice touch * fixed application state level touch cursor. panel_grid is touchable now. * format glicthes fixes * format glitches * tight format * fixed pane grid * fixing with upstream * Remove unused `touch` module from `iced_core` * Remove unused `crate::text` import in `iced_native` * Remove redundant match branch in `iced_winit` * Keep removed line break in `UserInterface::update` * Compute `text_size` only when bounds contains cursor in `overlay::menu` Co-authored-by: Héctor Ramón Jiménez <hector0193@gmail.com>
* Merge pull request #725 from PolyMeilex/wgpu-7.0Libravatar Héctor Ramón2021-02-068-225/+261
|\ | | | | Update to wgpu 0.7
| * Enable filtering in `wgpu::image`Libravatar Héctor Ramón Jiménez2021-02-061-2/+2
| |
| * List `color_blend` first in `wgpu::quad`Libravatar Héctor Ramón Jiménez2021-02-061-4/+4
| |
| * Remove unnecessary line break in `triangle::msaa`Libravatar Héctor Ramón Jiménez2021-02-061-1/+0
| |
| * Use lowercase in `wgpu` labels for consistencyLibravatar Héctor Ramón Jiménez2021-02-064-5/+5
| |
| * Use the latest release of `wgpu_glyph`Libravatar Héctor Ramón Jiménez2021-02-061-2/+2
| |
| * Change `PowerPreference` from `default()` to `LowPower`Libravatar Poly2021-02-031-1/+1
| | | | | | There is no reason to hide the fact that this is always in `LowPower` mode
| * [wgpu 0.7] Update integration exampleLibravatar Poly2021-02-032-24/+24
| |
| * Fix TextureViewDimension for imageLibravatar Poly2021-02-031-1/+1
| | | | | | wgpu validation helped to find this long standing type error
| * Fix ScissorRectLibravatar Poly2021-02-031-1/+2
| | | | | | - Breaks `TODO: Address anti-aliasing adjustments properly`
| * [wgpu 0.7] triangle/msaa disable filteringLibravatar Poly2021-02-031-2/+2
| |
| * [wgpu 0.7] Update image.rsLibravatar Poly2021-02-031-55/+66
| |