Héctor Ramón Jiménez
a0cc7e4e43
Move Icon to iced crate and introduce Error
2020-07-01 06:10:31 +02:00
Francesco Pasa
9a037a23e9
Add support for setting window icon
...
This adds a new property from Settings:🪟 :iconand a Icon struct which can be converted to winit:🪟 :Icon.
It also adds code to display this icon in Application::run. Due to the fact that the Icon struct is non copyable, I also had to remove the Copy trait from all Settings, both in `iced` and `iced_winit`.
2020-07-01 05:37:28 +02:00
Héctor Ramón Jiménez
1bc69e7a8a
Expose defaults module in iced_graphics
...
Fixes #429
2020-06-28 21:38:03 +02:00
Héctor Ramón Jiménez
b5d842f877
Show idle cursor when hovering a disabled Button
2020-06-27 03:40:04 +02:00
Héctor Ramón
754b8f819e
Merge pull request #424 from hecrj/feature/window-max-and-min-size
...
Add `min_size` and `max_size` to `window::Settings`
2020-06-25 17:03:35 +02:00
Héctor Ramón
038f75eef1
Merge pull request #421 from hecrj/fix/triangle-uniform-bindgroup
...
Recreate uniforms `BindGroup` when necessary
2020-06-25 02:06:38 +02:00
Héctor Ramón Jiménez
65a4dca0d9
Add min_size and max_size to window::Settings
2020-06-25 00:32:41 +02:00
Héctor Ramón Jiménez
ab53df8e9d
Recreate uniforms BindGroup when necessary
2020-06-23 21:11:13 +02:00
Héctor Ramón Jiménez
f30a666dc8
Decouple cursor_position from Cache
...
Instead, we ask explicitly for it in the different `update` and `draw` methods.
This way, the runtime can derive the logical position of the cursor from
the source of truth.
2020-06-23 06:44:34 +02:00
Héctor Ramón Jiménez
bbdf558bd7
Relayout when Application::scale_factor changes
2020-06-23 06:12:06 +02:00
Héctor Ramón
eec65a055f
Merge pull request #415 from hecrj/feature/configurable-scale-factor
...
Add `scale_factor` to `Application` and `Sandbox`
2020-06-20 19:20:37 +02:00
Héctor Ramón
1432c82bdf
Merge pull request #413 from hecrj/feature/configurable-default-text-size
...
Make default text size configurable in `Settings`
2020-06-19 19:24:52 +02:00
Héctor Ramón Jiménez
c9696ca687
Add scale_factor to Application and Sandbox
2020-06-19 19:17:05 +02:00
Héctor Ramón Jiménez
b3c192a2e4
Make default text size configurable in Settings
2020-06-19 00:16:22 +02:00
Héctor Ramón
d19c02035f
Merge pull request #407 from hecrj/feature/generic-slider
...
Make `Slider` value type generic
2020-06-14 18:11:25 +02:00
Héctor Ramón
50c37ff3d7
Merge pull request #406 from hecrj/feature/background-color
...
Add `background_color` to `Application` and `Sandbox`
2020-06-14 18:10:14 +02:00
Héctor Ramón Jiménez
f5e16312bf
Update Slider docs in iced_web
2020-06-13 15:04:49 +02:00
Héctor Ramón Jiménez
6b4a4655c1
Make Slider value generic in iced_web
2020-06-13 14:59:09 +02:00
Héctor Ramón Jiménez
d7d2e0a8aa
Increase precision in color_palette example
2020-06-13 14:50:21 +02:00
Héctor Ramón Jiménez
3cc32abc7c
Reduce slider step in progress_bar example
2020-06-13 14:39:48 +02:00
Héctor Ramón Jiménez
7bc7b60321
Mention generic range in Slider documentation
2020-06-13 14:36:10 +02:00
Héctor Ramón Jiménez
4aed3ede92
Use generic Slider in tour example
2020-06-13 14:34:39 +02:00
Héctor Ramón Jiménez
c71d83fe0e
Remove unnecessary type annotations in Slider
2020-06-13 14:34:23 +02:00
Héctor Ramón Jiménez
0b819de3e2
Make Slider value type generic
2020-06-13 14:17:41 +02:00
Héctor Ramón
f131969c47
Merge pull request #381 from loewenheim/slider_step
...
Added `step` member to slider widgets
2020-06-13 13:21:49 +02:00
Héctor Ramón Jiménez
4c0286e8ac
Add background_color to Application and Sandbox
2020-06-12 22:12:15 +02:00
Héctor Ramón
2a516dfc48
Merge pull request #401 from Vanille-N/master
...
Calculated sweep_angle in call to lyon::geom::Arc was actually end_angle
2020-06-11 16:46:47 +02:00
Vanille-N
7b6f1baa69
Calculated sweep_angle in call to lyon::geom::Arc was actually end_angle
...
Adresses `Arc end_angle should be renamed to span_angle #400`
2020-06-11 14:58:47 +02:00
Sebastian Zivota
c3643eaf6d
Add step member to slider widgets
...
Both the native and the web slider now have a member `step` to control
the least possible change of the slider's value. It defaults to 1.0
for all sliders and can be adjusted with the step method.
2020-06-11 00:18:24 +02:00
Héctor Ramón
baa1389f71
Merge pull request #391 from bansheerubber/feature/move_cursor_to_end
...
Cursor Manipulation
2020-06-09 19:12:52 +02:00
Héctor Ramón Jiménez
49dbf2c146
Request a redraw only on relevant events
2020-06-09 15:45:57 +02:00
Héctor Ramón
c0a5dc980e
Merge pull request #397 from hecrj/intuitive-pane-grid-resize
...
Intuitive `PaneGrid` resize
2020-06-09 09:35:01 +02:00
Héctor Ramón Jiménez
8b93c9cb6a
Clarify leeway meaning in PaneGrid
2020-06-08 19:41:33 +02:00
bansheerubber
5260b3072a
implemented hecrj's suggestion
2020-06-08 10:00:25 -07:00
Héctor Ramón Jiménez
172bd78a91
Fix PaneGrid documentation example
2020-06-08 18:34:41 +02:00
Héctor Ramón Jiménez
dcc4bb77e9
Remove unused split_cache in pane_grid
2020-06-08 18:25:46 +02:00
Héctor Ramón Jiménez
be0cc2c780
Add leeway support to PaneGrid::on_resize
2020-06-08 18:25:23 +02:00
Héctor Ramón Jiménez
041cab0fa4
Resize PaneGrid without modifier keys
2020-06-08 18:11:29 +02:00
Duncan Freeman
4960a8827e
Add on_release message to Slider ( #378 )
...
* Add on_finish callback to Slider
* Fix formatting
* Rename Slider's on_finish to on_release, make the message simply an event without data
* Satisfy Clone impl requirement on Message in integration test
* Only call on_release after dragging a slider
2020-06-08 11:07:45 +02:00
Richard
40750d9b36
Removed empty bind group from integration example ( #390 )
2020-06-08 11:03:34 +02:00
Voker57
9e01adc964
Replace leftover docs in progress bar module ( #396 )
...
* Replace leftover docs in progress bar module
* Fix consistency of `ProgressBar` docs
Co-authored-by: Héctor Ramón Jiménez <hector0193@gmail.com>
2020-06-08 10:14:40 +02:00
bansheerubber
19c07da86f
fixed formatting
2020-06-05 09:57:18 -07:00
bansheerubber
98cf9c455a
added move_cursor_to
2020-06-05 09:19:46 -07:00
bansheerubber
0d119aa731
added value to move_cursor_to_end
2020-06-05 09:13:49 -07:00
bansheerubber
6a2c73d0e0
sketch of move_cursor_to commands
2020-06-05 08:58:34 -07:00
Héctor Ramón
ca6ff874a1
Merge pull request #387 from hatoo/add-comment
...
Add a comment of how to clear the display to `integration` example
2020-06-05 17:36:18 +02:00
Héctor Ramón Jiménez
fd3801ed38
Clear frames explicitly in integration example
2020-06-05 15:05:30 +02:00
hatoo
969de1d31c
Add a comment of how to clear the display to integration example
2020-06-03 22:01:28 +09:00
Héctor Ramón
4c494c7244
Merge pull request #383 from cedric-h/patch-1
...
Prevent gratuitous resizing in integration example
2020-06-02 23:10:46 +02:00
Cedric Hutchings
d5b9dee2fd
Attempt to appease rustfmt
2020-06-02 16:48:55 -04:00