Commit graph

1849 commits

Author SHA1 Message Date
Héctor Ramón
45778ed598
Merge pull request #667 from BillyDM/wgpu_outdatedframe
Don't panic when wgpu swapchain frame is outdated
2021-08-05 14:44:32 +07:00
Héctor Ramón Jiménez
3e03a42bc6
Use thiserror to derive Error for SwapChainError 2021-08-04 21:52:02 +07:00
Héctor Ramón
63bdbf817e
Merge pull request #978 from ATiltedTree/use-preffered-format
wgpu: Use the preferred texture format of the surface
2021-08-04 18:48:19 +07:00
Héctor Ramón Jiménez
f3916decf2
Fix typo in integration example 2021-08-04 18:20:25 +07:00
Tilmann Meyer
d7975a9de5
wgpu: Use the preferred texture format of the surface
Signed-off-by: Tilmann Meyer <me@atiltedtree.dev>
2021-08-03 11:30:45 +02:00
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
Billy Messenger
b629a80254 small documentation error 2021-07-22 13:26:27 -05:00
Billy Messenger
e5010b8ab8 redo custom error for Compositor::draw() 2021-07-22 13:23:36 -05:00
Billy Messenger
a7d2834a6d add custom error for Compositor::draw() 2021-07-22 13:08:13 -05:00
Billy Messenger
191288771f only panic when wgpu gives OutOfMemory swapchain error 2021-07-22 12:38:56 -05:00
Billy Messenger
e822f654e4 Merge branch 'master' of https://github.com/hecrj/iced into wgpu_outdatedframe 2021-07-22 12:37:39 -05: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