Commit graph

1837 commits

Author SHA1 Message Date
Héctor Ramón
cdd2f247f8
Merge pull request #980 from yamadapc/fix-glow-context-multiple-windows
Fix glow and multiple windows usage
2021-08-03 15:12:59 +07:00
yamadapc
77a6506710 Fix glow and multiple windows usage
The context might not be current at redraw
2021-08-03 06:36:51 +10:00
Héctor Ramón
a08e4ebccb
Merge pull request #971 from tarkah/fix/pane-dragging-overlay
fix: allow titlebar overlays to close when dragging pane
2021-07-28 15:47:13 +07:00
Héctor Ramón Jiménez
6618c6bdd9
Simplify is_picked expression in pane_grid 2021-07-28 15:36:30 +07:00
Cory Forsstrom
be65a847b0 Prevent body events pane is picked / dragging 2021-07-27 15:41:45 -07:00
Cory Forsstrom
2a49e415d2 Fix overlay in titlebar when initiating drag 2021-07-27 15:25:28 -07:00
Héctor Ramón
2586210259
Merge pull request #967 from hecrj/feature/command-keyboard-modifier
Introduce `COMMAND` constant to `keyboard::Modifiers`
2021-07-27 13:14:41 +07:00
Héctor Ramón
f94b50021d
Merge pull request #966 from hecrj/pick-list-scroll-modifier
Allow `PickList` selection with mouse scroll only if command is pressed
2021-07-27 13:00:57 +07:00
Héctor Ramón Jiménez
bbdc3dbfef
Introduce COMMAND constant to keyboard::Modifiers 2021-07-27 12:54:39 +07:00
Héctor Ramón Jiménez
78b345bc59
Allow PickList selection with mouse scroll only if command is pressed
This should avoid unintended interactions when using a `PickList` inside
a `Scrollable`
2021-07-27 12:48:14 +07:00
Héctor Ramón
1cef6a2a58
Merge pull request #965 from tarkah/feature/window-event-moved
Add window::Event::Moved
2021-07-27 08:40:49 +07:00
Cory Forsstrom
81eb3c276d Add window::Event::Moved 2021-07-26 12:36:13 -07:00
Héctor Ramón
dc0b96ce40
Merge pull request #872 from 13r0ck/master
add scrolling to pick_lists
2021-07-22 21:38:22 +07:00
Héctor Ramón Jiménez
46aab24d91
Enable scroll selection for PickList only when scroll is discrete 2021-07-22 21:28:21 +07:00
Héctor Ramón Jiménez
6069e90c9b
Abstract and improve scroll logic in PickList 2021-07-22 21:15:35 +07:00
Héctor Ramón
587dbbca42
Merge pull request #776 from AldoMX/master
Added `select_all` method to `TextInput`.
2021-07-22 20:48:03 +07:00
Héctor Ramón Jiménez
72d5d9b4bd
Add newline to todos example
... just for readability
2021-07-22 20:37:12 +07:00
Héctor Ramón Jiménez
29cc840cfa
Add empty select_all implementation for TextInput in iced_web 2021-07-22 20:32:54 +07:00
Héctor Ramón
f076649fbb
Merge pull request #888 from Ace4896/picklist-placeholder
Add Placeholders to PickList
2021-07-22 20:32:43 +07:00
Héctor Ramón Jiménez
a866f8742e
Avoid cloning placeholder for PickList unnecessarily during draw 2021-07-22 20:22:38 +07:00
Héctor Ramón Jiménez
1b36068847
Introduce placeholder_color to pick_list::Style 2021-07-22 20:22:32 +07:00
Héctor Ramón Jiménez
26b2a824a9
Remove duplication of measuring logic in PickList 2021-07-22 20:09:13 +07:00
Héctor Ramón Jiménez
45bd685f7c
Hash placeholder in hash_layout implementation for PickList 2021-07-22 19:13:00 +07:00
Jon Pacheco
9c75ddcb33
feat: add placeholder to pick_list example 2021-07-22 19:13:00 +07:00
Jon Pacheco
fa433743b3
feat: add placeholders to pick_list
see issue #726
2021-07-22 19:12:56 +07:00
Héctor Ramón
a2b1ba522a
Merge pull request #914 from yusdacra/feat/expose_draw_cache_multithread
feat: expose draw_cache_multithread as a feature
2021-07-22 18:39:37 +07:00
Héctor Ramón
82488de3ab
Merge pull request #885 from Chiheisen/master
image viewer: Only calculate viewport based width/length for Length::Unit|Shrink
2021-07-22 18:37:11 +07:00
Héctor Ramón Jiménez
357a8a95c9
Introduce text_multithreading to Settings 2021-07-22 18:27:33 +07:00
Héctor Ramón Jiménez
217f5be827
Add text_multithreading to Settings in iced_glow and iced_wgpu 2021-07-22 18:21:50 +07:00
Héctor Ramón
9cf5f3e1ef
Merge pull request #929 from TimUntersberger/winit-improv
feat: add position to window settings
2021-07-22 17:49:18 +07:00
Héctor Ramón Jiménez
39b8f7de50
Center window in game_of_life example 2021-07-21 19:10:11 +07:00
Héctor Ramón Jiménez
72b3bf95de
Improve window::Position API 2021-07-21 18:59:24 +07:00
Héctor Ramón Jiménez
6793a7e00d
Remove DPI from docs in window::Settings::position 2021-07-21 18:15:32 +07:00
Héctor Ramón Jiménez
4de2714213
Remove winit example
... we can extend an existing example instead!
2021-07-21 18:11:31 +07:00
Héctor Ramón
8fe8b6b168
Merge pull request #956 from Luni-4/double-click
Open the todos example via double-click on MacOS
2021-07-21 17:53:47 +07:00
Héctor Ramón
14c1e70f66
Merge pull request #952 from aentity/fix_svg_memory
Use ceil on svg dimensions, fix svg memory usage ref #841
2021-07-21 17:43:37 +07:00
Luni-4
2d0be87551 CI: Open the todos example via double-click on MacOS 2021-07-21 11:23:30 +02:00
aentity
665422e256 Use ceil on svg dimensions, fix svg memory usage
Calls ceil() on dimension bounds as this appears fix svg memory
unbounded usage because no longer cache miss.

The height and width return from resvg seem to always be ceiling
of float dimensions, so we try to match.
2021-07-21 02:26:53 -04:00
Héctor Ramón
8e29709b69
Merge pull request #945 from derezzedex/menu
feat: add menus
2021-07-20 21:44:33 +07:00
Héctor Ramón Jiménez
82db3c78b6
Update winit and glutin dependencies
... and remove crates.io patch
2021-07-20 21:34:44 +07:00
Héctor Ramón Jiménez
b97954a1ee
Add a presets Menu to the game_of_life example 2021-07-19 21:18:54 +07:00
Héctor Ramón Jiménez
c8ac77e4e9
Write documentation for menu method in Application 2021-07-19 21:05:16 +07:00
Héctor Ramón Jiménez
a2f49a74d0
Replace content with title in menu module 2021-07-19 21:01:24 +07:00
Héctor Ramón Jiménez
3099f36100
Implement Menu::map naively 2021-07-19 20:59:09 +07:00
Héctor Ramón
a6dbaf0f5f
Merge pull request #953 from hecrj/fix/pane-grid-title-bar-overlay
Fix implementation of `Widget::overlay` for `pane_grid::TitleBar`
2021-07-15 17:32:02 +02:00
Héctor Ramón Jiménez
4dc1bba5cd
Remove unnecesary use of Option::unwrap
... in `overlay` implementation for `pane_grid::TitleBar`
2021-07-15 16:49:19 +02:00
Héctor Ramón Jiménez
2993e9b466
Fix implementation of Widget::overlay for pane_grid::TitleBar 2021-07-15 16:43:52 +02:00
Héctor Ramón Jiménez
e5c958e9d6
Add new sponsors page to FUNDING 🎉 2021-07-13 21:46:55 +02:00
Héctor Ramón Jiménez
2e7eac7d21
Implement conversion::menu_message 2021-07-13 21:31:34 +02:00
Héctor Ramón Jiménez
5df2a92f28
Force Application::Message to implement Clone
A `Message` should represent an application event (e.g. user
interactions, command results, subscription results...). Therefore, it
should always consist of pure, cloneable data.
2021-07-13 21:15:07 +02:00