Commit graph

1291 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
a1210c9dae Improve safety of Cursor::selection 2020-07-11 00:00:14 +02:00
mtkennerly
855c0faa59 Fix panic on paste in TextInput after programmatic modification of contents 2020-07-10 07:14:26 -04:00
Héctor Ramón
46ce3a1f00
Merge pull request #442 from hecrj/feature/pane-grid-titlebar
Title bar support for `PaneGrid`
2020-07-10 00:35:15 +02:00
Héctor Ramón Jiménez
3c5921f30c Update pane_grid GIFs 2020-07-09 07:05:57 +02:00
Héctor Ramón Jiménez
6820eea9ce Simplify style of pane_grid example 2020-07-09 06:29:54 +02:00
Héctor Ramón Jiménez
67f4c9aea3 Add a TitleBar to pane_grid example 2020-07-09 06:27:38 +02:00
Héctor Ramón Jiménez
1319c25f20 Respect TitleBar text color style when drawing 2020-07-09 06:27:12 +02:00
Héctor Ramón Jiménez
ef553cd124 Stop drawing pane background when dragged 2020-07-09 05:44:48 +02:00
Héctor Ramón Jiménez
2f02ca3248 Fix layout of a TitleBar without controls 2020-07-09 05:42:28 +02:00
Héctor Ramón Jiménez
ad19c1628d Fix docs of modifiers_keys in PaneGrid 2020-07-09 05:33:44 +02:00
Héctor Ramón Jiménez
2334c7d1d5 Stop tracking pressed_modifiers in PaneGrid 2020-07-09 05:28:42 +02:00
Héctor Ramón Jiménez
e3cd947437 Write documentation for new PaneGrid API 2020-07-09 05:26:11 +02:00
Héctor Ramón Jiménez
733ec6b2ea Fix default text size in TitleBar 2020-07-08 11:48:16 +02:00
Héctor Ramón Jiménez
f3dfaa2c43 Merge branch 'master' into feature/pane-grid-titlebar 2020-07-08 11:44:40 +02:00
Héctor Ramón Jiménez
5c4f5ae5ec Export Canvas if glow_canvas feature is enabled 2020-07-08 10:20:55 +02:00
Héctor Ramón Jiménez
dfeb3db003 Use default_font_size for TextInput widget 2020-07-06 23:58:15 +02:00
Héctor Ramón Jiménez
946bbd2683 Truncate Debug messages after 100 characters 2020-07-04 03:12:18 +02:00
Héctor Ramón
3f44d331d9
Merge pull request #432 from hecrj/improvement/update-dodrio
Update `dodrio` in `iced_web`
2020-07-01 22:44:48 +02:00
Héctor Ramón
99a50d6b2f
Merge pull request #431 from hecrj/feature/pane-grid-splits
Splits iterator for `PaneGrid` and minor improvements
2020-07-01 22:44:37 +02:00
Héctor Ramón
79aa225001
Merge pull request #430 from hecrj/feature/keyboard-modifiers-event
Add `ModifiersChanged` to `keyboard::Event`
2020-07-01 22:44:26 +02:00
Héctor Ramón
5190bcea80
Merge pull request #285 from frapa/add_support_for_window_icons
Add support for setting window icon
2020-07-01 22:44:11 +02:00
Héctor Ramón Jiménez
75464ad894 Use String::from_str_in in iced_web 2020-07-01 07:36:42 +02:00
Héctor Ramón Jiménez
d873c37e31 Update dodrio dependency in iced_web 2020-07-01 07:19:51 +02:00
Héctor Ramón
08e13e00f1
Merge pull request #292 from TomPridham/feature/accessibility-web
add some accessibility features to web widgets
2020-07-01 07:09:27 +02:00
Héctor Ramón Jiménez
ffd195cdb5 Fix empty id and name attributes in iced_web 2020-07-01 06:52:13 +02:00
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
e8aeb86698 Use keyboard::ModifiersChanged in PaneGrid 2020-06-30 07:38:04 +02:00
Héctor Ramón Jiménez
78cb805fac Add ModifiersChanged to keyboard::Event 2020-06-30 07:36:13 +02:00
Héctor Ramón Jiménez
e50c61f7ff Add unfocus method to pane_grid::State 2020-06-30 02:53:15 +02:00
Héctor Ramón Jiménez
cee8400663 Unfocus Pane in pane_grid on click outbounds 2020-06-30 01:02:39 +02:00
Héctor Ramón Jiménez
23f753e599 Introduce splits method in pane_grid::Node 2020-06-30 01:02:28 +02:00
Héctor Ramón Jiménez
cb530ccf2f Rename regions and splits in pane_grid::Node 2020-06-30 01:02:26 +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