Commit graph

3033 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
d7c83080f2
Wrap image Bytes with Arc instead of Data 2023-02-17 14:37:15 +01:00
Sebastian Dröge
d2996f3ed8
image: Allow any kind of data that implements AsRef<[u8]> for the image data
It's not required anywhere for it to be a plain slice or a `Vec` and
this makes it possible to use data allocated in a different way without
copying.
2023-02-17 14:23:13 +01:00
Héctor Ramón
27ba0be783
Merge pull request #1665 from Jedsek/patch-2
Minor update: `example/qr_code`
2023-02-17 14:12:56 +01:00
Héctor Ramón
c2a5f05924
Merge pull request #1589 from Night-Hunter-NF/FetchWindowId
add action to get window id
2023-02-17 14:10:08 +01:00
Héctor Ramón Jiménez
ac1945404e
Run cargo fmt 2023-02-17 13:57:04 +01:00
Héctor Ramón Jiménez
2c2421ae5d
Expose fetch_id helper in window module 2023-02-17 13:47:46 +01:00
Night_Hunter
9f75f01ddb
add action to get window id 2023-02-17 13:45:51 +01:00
Héctor Ramón
b9b0a9a1f4
Merge pull request #1587 from Night-Hunter-NF/AlwaysOnTop
add always on top action
2023-02-17 13:39:58 +01:00
Héctor Ramón Jiménez
db65c6904d
Expose change_always_on_top helper in window module 2023-02-17 13:24:46 +01:00
Héctor Ramón Jiménez
df861d9ece
Rename SetAlwaysOnTop to ChangeAlwaysOnTop 2023-02-17 13:22:45 +01:00
Night_Hunter
095ecf016b
update docs and change to SetAlwaysOnTop 2023-02-17 13:20:07 +01:00
Night_Hunter
d1d13f6f16
add always on top action 2023-02-17 13:17:59 +01:00
Héctor Ramón
871f59f3be
Merge pull request #1703 from greatest-ape/v0.7-glow-explicit-location
glow: enable GL_ARB_explicit_attrib_location to fix crashes
2023-02-17 13:07:47 +01:00
Héctor Ramón
32745f472f
Merge pull request #1707 from casperstorm/feat/checkbox-icon
Added the ability to change `Checkbox` icon
2023-02-17 12:58:27 +01:00
Héctor Ramón
e3fbaed12f
Merge pull request #1695 from nicksenger/widgets/container-ids
Provide widgets IDs to `Operation::container`
2023-02-16 16:32:07 +01:00
Nick Senger
273c9be00f
container: allow specification of ID and provide to Operation::container 2023-02-16 16:15:45 +01:00
Nick Senger
d05ac38159
Revert "provide ID to operation.container in applicable widgets"
This reverts commit 8f9550bcf7c1cebbf90e80683761375406ca6139.
2023-02-16 16:15:45 +01:00
Nick Senger
84a6038961
provide ID to operation.container in applicable widgets 2023-02-16 16:15:45 +01:00
Nick Senger
6a683b603d
scrollable: provide ID to operation.container 2023-02-16 16:15:41 +01:00
Casper Storm
4fb0be1793
Added the ability to change checkbox icon 2023-02-16 14:13:04 +01:00
Héctor Ramón
0cb72f6971
Merge pull request #1706 from tarkah/fix/text-input-padding
Pad after setting width in text input
2023-02-15 15:36:00 +01:00
Cory Forsstrom
a9992d131b
Pad after setting width
Otherwise `width` will set limits back to a fixed width if
`Length::Units` is used, overwriting padding.
2023-02-14 11:40:29 -08:00
Héctor Ramón
8c5996c12b
Merge pull request #1675 from casperstorm/pick_list/extend-handle
Extended `pick_list::Handle` to be more flexible
2023-02-14 07:40:18 +01:00
Héctor Ramón Jiménez
7f1d58aa45
Inline Handle::content for simplicity and efficiency
We can avoid downcasting `state` :^)
2023-02-14 07:09:24 +01:00
Héctor Ramón Jiménez
fee1ab69e2
Provide State reference instead of closure to pick_list::draw 2023-02-14 07:05:35 +01:00
Héctor Ramón Jiménez
bbff06b462
Use char instead of String for pick_list::Icon 2023-02-14 07:03:25 +01:00
Héctor Ramón Jiménez
0272cac89e
Move Handle and Icon definitions in pick_list 2023-02-14 07:03:24 +01:00
Héctor Ramón Jiménez
5569e12149
Rename HandleContent to Icon and simplify generics 2023-02-14 07:03:24 +01:00
Casper Storm
efaa80fb44
Extend pick_list::Handle 2023-02-14 07:03:24 +01:00
Héctor Ramón
5b5a5b831c
Merge pull request #1701 from nicksenger/fix/diff-component-operate
Fix panic when using operations with components in certain cases
2023-02-14 06:43:18 +01:00
Héctor Ramón
4e93ae8e32
Merge pull request #1698 from iced-rs/hide-window-until-ready
Hide window until `Renderer` has been initialized
2023-02-14 06:42:59 +01:00
Héctor Ramón
efbf66b0a1
Merge pull request #1700 from nicksenger/overlay/fix-panic
Fix panic when overlay event processing removes overlay
2023-02-14 06:40:21 +01:00
Héctor Ramón
2c680a3e5f
Merge pull request #1699 from nicksenger/overlay/is_over
Implement `is_over` for iced_lazy widget `Overlay`s
2023-02-14 06:32:05 +01:00
Joakim Frostegård
f318e3fdbf glow: enable GL_ARB_explicit_attrib_location to fix crashes 2023-02-13 22:34:13 +01:00
Nick Senger
2201f33c65 fix: diff widget sub-tree after rebuilding component with operation 2023-02-12 11:07:08 -08:00
Nick Senger
41822d0dc5 fix: panic when overlay event processing removes overlay 2023-02-11 09:12:26 -08:00
Nick Senger
8fe851057d fix: lazy widgets overlay is_over 2023-02-10 21:16:44 -08:00
Héctor Ramón Jiménez
9506fb1181
Hide window until Renderer has been initialized 2023-02-11 03:06:42 +01:00
Yoo Dongryul
92ba26b8a1
Resize images on README.md (#1659)
* Resize images on README.md

* hotfix: for mobile layout

* fix: set height of both images equally
2023-02-07 21:20:46 +01:00
Héctor Ramón
344578649e
Merge pull request #1694 from sushigiri/master
Accept FnOnce instead of Fn in canvas cache draw
2023-02-06 21:24:45 +01:00
sushigiri
c7d8467c46
Accept FnOnce instead of Fn in canvas cache draw
Use FnOnce in `draw` function signature instead of `Fn`, permitting the
use of iterators and other one-time functions.
2023-02-06 09:05:07 -07:00
Héctor Ramón Jiménez
98a717383a
Write missing window::Action helpers in window 2023-01-31 04:53:15 +01:00
Héctor Ramón Jiménez
ecc5bfaeff
Improve consistency of window::Action 2023-01-31 04:53:00 +01:00
Héctor Ramón
8c753192f8
Merge pull request #1686 from iced-rs/fix/overlay-group-position
Fix layout translation in `overlay::Group`
2023-01-30 05:26:51 +01:00
Héctor Ramón Jiménez
a50cc32d09
Fix layout translation in overlay::Group
This bug produced improper positioning of overlays of elements inside a
`Scrollable`.
2023-01-30 05:11:59 +01:00
Héctor Ramón
a28bc3eaf0
Merge pull request #1685 from iced-rs/fix/component-animations
Fix widget-driven animations for `Component`
2023-01-30 03:58:16 +01:00
Héctor Ramón
5176148e75
Merge pull request #1682 from tarkah/standalone-image-draw
Refactor image draw to standalone function
2023-01-30 03:43:34 +01:00
Héctor Ramón Jiménez
a3bfa0724c
Fix widget-driven animations for Component 2023-01-30 03:41:03 +01:00
Cory Forsstrom
7356f2b68d
Refactor image draw to standalone function 2023-01-28 18:41:33 -08:00
Héctor Ramón
dc6f9f432a
Merge pull request #1678 from frey/fix/mapped_operations_missing
Mapped operations is missing text_input()
2023-01-28 20:12:33 +01:00