Commit graph

981 commits

Author SHA1 Message Date
Héctor Ramón
26de688e68
Merge pull request #138 from hecrj/feature/empty-widget
`Space` widget
2019-12-31 10:36:06 +01:00
Héctor Ramón
eb88660074
Merge pull request #137 from hecrj/feature/fill-portion
Add `Length::FillPortion` variant
2019-12-31 10:35:51 +01:00
Héctor Ramón Jiménez
3a327e08e9 Rename Empty widget to Space 2019-12-30 21:33:27 +01:00
Héctor Ramón Jiménez
2ff0e48142 Make Row, Column, and Checkbox shrink by default 2019-12-30 21:00:27 +01:00
Héctor Ramón Jiménez
74d01a6957 Subtract size of previous elements in flex layout 2019-12-30 20:50:52 +01:00
Héctor Ramón Jiménez
aecc3ad195 Add Length::FillPortion variant
It allows to specify the amount of available space an element should
take relative to other elements.
2019-12-30 19:33:27 +01:00
Héctor Ramón Jiménez
8426bf953c Implement Empty widget
It can be useful if you want to fill some space with nothing.
2019-12-30 19:20:59 +01:00
Héctor Ramón Jiménez
bf74e6e7d4 Implement Default for MouseCursor 2019-12-30 19:16:46 +01:00
Héctor Ramón Jiménez
8caa66be27 Add Renderer::Defaults and style inheritance 2019-12-30 12:14:26 +01:00
Héctor Ramón Jiménez
f74ab463d4 Add background_color to Settings 2019-12-29 12:29:47 +01:00
Héctor Ramón Jiménez
c7b170da6d Draft Style and StyleSheet for Button 2019-12-29 10:57:01 +01:00
Héctor Ramón Jiménez
2ec0a43c4a Fix sneaky bug with padding in flex layout 2019-12-21 07:18:20 +01:00
Héctor Ramón Jiménez
26ed518fbe Fix scroll percentage calculation in Scrollable 2019-12-21 07:09:50 +01:00
Héctor Ramón Jiménez
c04dff99da Fix sneaky overflow in TextInput when pasting 2019-12-21 05:49:09 +01:00
Héctor Ramón Jiménez
938177e225 Move cursor position to start on left boundary click 2019-12-21 05:36:36 +01:00
Héctor Ramón Jiménez
36e7ac2048 Fix cursor positioning in TextInput on overflow 2019-12-21 05:30:48 +01:00
Héctor Ramón Jiménez
68f3c9c4c6 Implement clipboard pasting in TextInput 2019-12-18 09:11:33 +01:00
Héctor Ramón Jiménez
a14b39555e Allow clipboard access in Widget::on_event 2019-12-18 07:45:49 +01:00
Héctor Ramón
0f2e20f5e5
Merge pull request #122 from hecrj/feature/event-subscriptions
Event subscriptions
2019-12-16 21:38:56 +01:00
Héctor Ramón Jiménez
6ba2461445 Update Svg documentation 2019-12-15 06:28:44 +01:00
Héctor Ramón Jiménez
09707f29fc Rerasterize SVGs when resized and refactor a bit 2019-12-15 06:19:07 +01:00
Héctor Ramón Jiménez
5185d6a0f3 Fix Widget::width for Checkbox 2019-12-14 07:09:37 +01:00
Héctor Ramón Jiménez
d6c3da21f7 Write docs for subscriptions and reorganize a bit 2019-12-14 05:56:46 +01:00
Héctor Ramón Jiménez
293314405f Make iced_native subscription input opaque 2019-12-14 04:49:13 +01:00
Héctor Ramón Jiménez
ba06d458d3 Move native events subscription to iced_native 2019-12-14 04:12:42 +01:00
Malte Veerman
27717bc70c Renamed Icon widget to Svg and gave it separate width and height.
The aspect ratio is now preserved like in the `Image` widget.
2019-12-12 01:25:18 +01:00
Malte Veerman
895eaef99b Merged svg pipeline into image 2019-12-12 01:14:54 +01:00
Malte Veerman
5696afcadd Ran cargo_fmt over changed files. 2019-12-11 22:13:29 +01:00
Malte Veerman
a88aae5e04 Added an Icon widget to native. 2019-12-11 21:34:40 +01:00
Héctor Ramón Jiménez
cdb7acf6c2 Implement Subscription::map and from_recipe 2019-12-10 03:43:00 +01:00
Héctor Ramón Jiménez
c1b9f66525 Add Button::height and Button::min_height 2019-12-09 21:59:31 +01:00
Héctor Ramón Jiménez
98160406f7 Allow listening to runtime events in subscriptions 2019-12-08 08:21:26 +01:00
Héctor Ramón Jiménez
9b84b6e403 Merge branch 'master' into feature/event-subscriptions 2019-12-08 06:53:54 +01:00
Héctor Ramón Jiménez
a7694e0112 Update native CHANGELOG 2019-12-08 06:24:47 +01:00
Héctor Ramón Jiménez
c59ff69473 Change TextInput word-jump modifier key on macOS 2019-12-07 07:24:55 +01:00
Héctor Ramón Jiménez
34bdfe9416 Implement TextInput::password for secure data 2019-12-07 07:18:15 +01:00
Héctor Ramón Jiménez
4268556edb Update CHANGELOG 2019-12-06 06:13:22 +01:00
Héctor Ramón Jiménez
69590bcf72 Consider word bounds in TextInput cursor jumps 2019-12-06 05:45:06 +01:00
Héctor Ramón Jiménez
a56eef0fec Use unicode-segmentation for text_input::Value 2019-12-06 04:46:53 +01:00
Héctor Ramón Jiménez
114a759d2c Implement word movement in TextInput 2019-12-06 04:01:54 +01:00
Héctor Ramón Jiménez
65cac922b3 Add ModifiersState to keyboard::Event::Input 2019-12-06 04:01:48 +01:00
Héctor Ramón Jiménez
d575f45411 Draft first version of event subscriptions 🎉 2019-12-05 06:10:13 +01:00
Héctor Ramón Jiménez
31b0b7f580 Update native CHANGELOG 2019-12-05 03:34:15 +01:00
Héctor Ramón Jiménez
7c8799e493 Support Home and End keys for TextInput 2019-12-05 03:16:50 +01:00
Héctor Ramón Jiménez
ef987ae2ec Remove unnecessary use of abs 2019-12-05 03:14:32 +01:00
Héctor Ramón Jiménez
14fb7e13fb Place TextInput cursor position on click 2019-12-05 03:09:39 +01:00
Héctor Ramón Jiménez
e92ea48e88 Make Button::background generic 2019-12-05 01:57:35 +01:00
Héctor Ramón Jiménez
2144109dd7 Update changelogs 2019-12-04 04:11:10 +01:00
Héctor Ramón Jiménez
1f60e28204 Update Image::hash_layout to hash new Handle 2019-12-04 04:04:18 +01:00
Héctor Ramón Jiménez
561c3641c6 Merge branch 'master' into feature/image-from-bytes 2019-12-04 04:01:12 +01:00