Commit graph

1028 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
45cfce3f6d
Simplify draw logic of sliders 2023-04-12 05:19:01 +02:00
Night_Hunter
de51bc3f41
Introduce left and right colors for slider rails 2023-04-12 05:09:16 +02:00
Héctor Ramón Jiménez
7e7e66586d
Show NotAllowed as mouse icon when hovering a disabled TextInput 2023-04-12 04:37:39 +02:00
Héctor Ramón Jiménez
6b8548869e
Remove unnecessary is_disabled check in text_input::draw
A disabled `TextInput` cannot be focused.
2023-04-12 04:25:02 +02:00
Héctor Ramón Jiménez
70e4af46aa
Improve consistency of on_input documentation 2023-04-12 04:21:58 +02:00
Héctor Ramón Jiménez
7e69cb4b18
Unfocus TextInput if it becomes disabled 2023-04-12 04:20:04 +02:00
Héctor Ramón Jiménez
e6a93e960c
Rename on_change to on_input for TextInput 2023-04-12 04:19:45 +02:00
Dan Mishin
f10e936f00
Introduce disabled state for TextInput 2023-04-12 03:55:18 +02:00
Héctor Ramón Jiménez
ae7e6b3d48
Implement subscription::channel and simplify unfold 2023-04-11 07:46:54 +02:00
Héctor Ramón Jiménez
927c3a8caa
Reuse text_bounds in text_input::layout 2023-04-11 05:59:20 +02:00
Héctor Ramón Jiménez
cf9d8e0104
Rename IconPosition to Side in text_input 2023-04-11 05:54:51 +02:00
Héctor Ramón Jiménez
57265ff211
Move Icon definitions after Widget implementation 2023-04-11 05:53:22 +02:00
Héctor Ramón Jiménez
870b2fe513
Derive Debug for text_input::Icon 2023-04-11 05:48:12 +02:00
Héctor Ramón Jiménez
9852b4b364
Move Icon layout logic to layout in text_input
Also add `Icon::spacing` field.
2023-04-11 05:46:14 +02:00
Héctor Ramón Jiménez
0e2fc99eb8
Use f32 for Icon::size and remove unnecessary conversions 2023-04-11 05:13:56 +02:00
Casper Storm
d24a4a4689
Changed Handle to Icon to be consistent 2023-04-11 05:11:23 +02:00
Casper Storm
7b36984295
feat: added handle to text_input 2023-04-11 05:11:19 +02:00
Héctor Ramón
4e409bb383
Merge pull request #1669 from GyulyVGC/master
Added scrollable style `focused` to be displayed when mouse is over the scrollable area
2023-03-27 16:17:02 +02:00
Héctor Ramón Jiménez
c407b4504c
Introduce is_mouse_over_scrollbar to StyleSheet::hovered for Scrollable 2023-03-27 15:51:32 +02:00
Giuliano Bellini s294739
c337bf297d renamed scrollable styles 2023-03-25 01:05:56 +01:00
Héctor Ramón Jiménez
9e815cb749
Remove Fill variant for Alignment
Implementing this generically in our `flex` logic has an exponential
cost. Let's explore other options!
2023-02-27 16:54:28 +01:00
Giuliano Bellini
4f41927155
Merge branch 'iced-rs:master' into master 2023-02-22 21:23:04 +01:00
Héctor Ramón
666f3cd143
Merge pull request #1723 from iced-rs/subscription-run
Change `subscription::run` to take a function pointer
2023-02-21 21:18:01 +01:00
Héctor Ramón Jiménez
1fb413fd80
Change subscription::run to take a function pointer
... and rename the old `run` to `run_with_id`.
2023-02-21 20:56:10 +01:00
Héctor Ramón
8c83d40e11
Merge pull request #1721 from casperstorm/feat/no-bleed-slider
Sliders no longer bleed over rail
2023-02-20 14:54:54 +01:00
Casper Storm
96c0bd65df
Sliders no longer bleed over rail 2023-02-20 12:24:31 +01:00
Héctor Ramón
1b79df4433
Merge pull request #1717 from iced-rs/remove-clone-image-bytes
Remove `Clone` bound for `Bytes::new` in `image`
2023-02-18 22:15:11 +01:00
Héctor Ramón Jiménez
bf061a0d62
Remove Clone bound for Bytes::new in image 2023-02-18 21:55:49 +01:00
Héctor Ramón Jiménez
3d8f1ad238
Fix base cursor position during UserInterface::draw when overlay is present 2023-02-18 21:52:08 +01:00
Héctor Ramón Jiménez
0d1656937b
Bump versions 🎉 2023-02-18 12:04:40 +01:00
Héctor Ramón Jiménez
ffcd4f1bec
Fix height of overlay::Menu 2023-02-18 08:45:54 +01:00
Héctor Ramón Jiménez
fd14086933
Use Pixels for padding in image::Viewer 2023-02-17 16:24:37 +01:00
Héctor Ramón Jiménez
a467a037c3
Use Pixels for spacing 2023-02-17 16:23:29 +01:00
Héctor Ramón Jiménez
fd3a141024
Use f32 for Icon::size in checkbox 2023-02-17 16:18:27 +01:00
Héctor Ramón Jiménez
3320ac1126
Use f32 for Padding 2023-02-17 16:09:49 +01:00
Héctor Ramón Jiménez
0872d078e2
Use Pixels for size methods 2023-02-17 15:56:19 +01:00
Héctor Ramón Jiménez
67e3da5669
Use Pixels for Slider::height and VerticalSlider::width 2023-02-17 15:55:12 +01:00
Héctor Ramón Jiménez
70483e7fdd
Fix Scrollbar bound calculations in Scrollable 2023-02-17 15:48:35 +01:00
Héctor Ramón Jiménez
570600ce51
Use Pixels for Text::size 2023-02-17 15:47:51 +01:00
Héctor Ramón Jiménez
7b8b01f560
Use f32 in Length::Units and rename it to Fixed 2023-02-17 15:40:17 +01:00
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
Night_Hunter
9f75f01ddb
add action to get window id 2023-02-17 13:45:51 +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
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