mtkennerly
e56c45470c
Add widget operation to find currently focused widget
2022-11-11 09:15:35 +08:00
mtkennerly
44aba47b0e
Allow converting from widget-specific IDs to generic ID
2022-11-11 08:44:10 +08:00
Héctor Ramón Jiménez
23299a555f
Bump versions 🎉
2022-11-10 18:15:10 +01:00
Héctor Ramón Jiménez
a6298ba12c
Fix outdated links in documentation
2022-11-10 18:14:40 +01:00
Héctor Ramón Jiménez
b0e8bafb6c
Bump versions 🎉
2022-11-10 01:20:11 +01:00
Héctor Ramón Jiménez
bec1f5bbe0
Remove unnecessary into call in operation::scoped
2022-11-10 00:17:27 +01:00
Héctor Ramón Jiménez
1480ab2030
Fix broken documentation links
2022-11-10 00:10:53 +01:00
Héctor Ramón Jiménez
335df2028d
Introduce scoped in widget::operation
2022-11-09 23:53:26 +01:00
Héctor Ramón Jiménez
11ec80dee2
Implement Operation::scrollable for widget::action::Map
2022-11-09 23:51:42 +01:00
Héctor Ramón Jiménez
1283f2153c
Implement Overlay::operate for overlay::element::Map
2022-11-09 23:50:23 +01:00
Héctor Ramón Jiménez
397f2910e0
Implement Operation::scrollable for element::Map
2022-11-09 23:48:54 +01:00
Héctor Ramón Jiménez
925b78a75d
Fix redundant references in slider
2022-11-09 04:23:55 +01:00
Héctor Ramón Jiménez
18fb74f200
Introduce Custom variants for every style in the built-in Theme
2022-11-09 04:05:31 +01:00
Héctor Ramón
d9f408d1c2
Merge pull request #1504 from tarkah/feat/pane-grid-maximize
...
Add pane maximize / restore for `PaneGrid`
2022-11-08 18:12:06 +01:00
Cory Forsstrom
7de9d2475d
Couple layout & content to avoid desync
2022-11-08 08:49:26 -08:00
Héctor Ramón
ac737cb6e9
Merge pull request #1494 from tarkah/fix/padding
...
Constrain padding to resolved inner / outer widget sizes
2022-11-08 04:39:55 +01:00
Héctor Ramón Jiménez
914f099342
Rearrange layout code to improve readability
2022-11-08 04:04:01 +01:00
Héctor Ramón Jiménez
7476663069
Rename Padding::constrain to fit
2022-11-08 03:56:05 +01:00
Héctor Ramón Jiménez
438f97a6d0
Use RGBA texture for image and svg pipelines
2022-11-05 03:20:00 +01:00
Héctor Ramón Jiménez
8ce8d374b1
Refactor some image traits a bit
...
- Use `Size<u32>` were applicable.
- Rename `TextureStore` to `image::Storage`.
- Rename `TextureStoreEntry` to `image::storage::Entry`.
- Wire up `viewport_dimensions` to `iced_glow` for `Svg`.
2022-11-05 03:19:38 +01:00
Héctor Ramón
7b12991728
Merge pull request #1453 from ids1024/cow
...
Use `Cow<'static, [u8]>` in image/svg, add constructors taking &[u8]`
2022-11-05 02:19:13 +01:00
Héctor Ramón Jiménez
bc5986c7c6
Unify methods by leveraging Into<Cow> in image and svg
2022-11-05 01:53:24 +01:00
Cory Forsstrom
853ff4bcf4
Add pub method for getting maximized value
2022-11-03 11:32:36 -07:00
Cory Forsstrom
951fbc83ff
Remove maximized when split occurs
2022-11-03 08:02:20 -07:00
tarkah
2f6c71d99a
Fix doc links
2022-11-02 20:04:19 -07:00
tarkah
988515d57f
Add state::Scoped & rename Elements as Contents
2022-11-02 20:04:16 -07:00
tarkah
923878c7b7
Fix tests & lints
2022-11-02 19:00:07 -07:00
Héctor Ramón Jiménez
1687d11389
Increase default padding of TextInput
2022-11-03 02:35:17 +01:00
Cory Forsstrom
df7bf55ce1
Disable drag when maximized
2022-11-02 17:12:38 -07:00
Cory Forsstrom
b761ab5e1d
Add maximize / restore to PaneGrid
2022-11-02 17:05:40 -07:00
Héctor Ramón
08e28f6f97
Merge pull request #1471 from pop-os/cosmic-window-controls
...
feat: Additional actions for window controls
2022-11-03 00:45:05 +01:00
Héctor Ramón Jiménez
ac6a3cf8eb
Reset is_pasting for TextInput even when unfocused
2022-10-29 04:50:45 +02:00
Héctor Ramón Jiménez
58d3374229
Keep keyboard modifiers always in sync in TextInput
2022-10-29 04:43:20 +02:00
Cory Forsstrom
f8c363eeac
Fix drop down not closing when inside scrollable
...
and user clicks outside the scrollable. This is because the scrollable
sets -1.0 on cursor.y for any events where cursor is outside it's
bounds. I'm not sure why picklist had this logic to stay open on -1.0 /
-1.0, any click outside the overlay should close it.
2022-10-27 17:40:18 -07:00
Cory Forsstrom
ea4b3cd6ae
Fix text input padding
2022-10-27 12:10:47 -07:00
Cory Forsstrom
2c103f8654
Constrain padding to inner & outer sizes
2022-10-27 11:50:12 -07:00
Cory Forsstrom
069371c86b
Use child layout
2022-10-19 13:21:46 -07:00
Cory Forsstrom
470723c232
Eliminate unnecessary allocation
2022-10-19 13:05:56 -07:00
Cory Forsstrom
fb036529a2
Render picked pane last
2022-10-17 14:56:06 -07:00
Cory Forsstrom
dca99f35e9
Fix pane grid mouse interactions
...
- Use `grabbing` interaction while dragging
- Ignore grab interaction when dragging is disabled
2022-10-17 14:38:24 -07:00
Michael Aaron Murphy
ac6e137be3
feat: Add window minimize support
2022-10-11 21:56:45 +02:00
Michael Aaron Murphy
8a50836ffc
feat: Add window maximize support
2022-10-11 21:56:01 +02:00
Michael Aaron Murphy
7ea7dbef57
feat: Add window drag support from winit
...
Exposes access to the winit window's window_drag method as an action.
2022-10-11 21:39:53 +02:00
Cory Forsstrom
20fd1f2047
Render pane grid titlebar after body
2022-10-07 09:03:44 -07:00
MG_REX
d95c216b2d
Add is_selected argument in radio::StyleSheet
2022-10-05 19:07:02 +02:00
Ian Douglas Scott
6ce12fc0c6
Use Cow<'static, [u8]> in image/svg, add constructors taking &[u8]`
...
This should resolve https://github.com/iced-rs/iced/issues/580 by
providing a way to use an image included with `include_bytes!` without
needing to copy it to a `Vec` to create an image handle.
It would be nice if these methods could also be `const`, but that isn't
possible due to the hashing being done.
This is technically a breaking change since `Handle::data()` is public.
But if that is used, it's most likely in used somewhere that only relies
on the type derefing to `&[u8]`.
2022-10-03 15:58:43 -07:00
Kai Mast
c9b8dbdb7a
Return ignored events in program::State::update
2022-09-28 19:36:55 +02:00
Clark Moody
8d2331af01
New short OS Version field; update doc strings
2022-09-23 15:41:47 -05:00
Héctor Ramón Jiménez
b8401c61a1
Export color! macro in iced and iced_native
2022-09-23 20:10:35 +02:00
Héctor Ramón Jiménez
3e82ab069e
Fix latest clippy lints
2022-09-23 17:51:42 +02:00