Commit graph

596 commits

Author SHA1 Message Date
Clark Moody
831a07f720 Conversion to palette's Srgba type 2020-04-24 15:13:22 -05:00
Clark Moody
63933e26d2 Add palette dependency behind "colors" feature flag 2020-04-24 15:13:22 -05:00
Clark Moody
0ff3cbf543 HSLColor struct, with conversions to/from RGB 2020-04-24 15:13:22 -05:00
Clark Moody
27a4cbccea Add inversion functions, rename check_rgba -> new 2020-04-24 15:13:22 -05:00
Clark Moody
62fddce2e6 Add check_rgba fn to clamp float values to [0,1] 2020-04-24 15:13:22 -05:00
Héctor Ramón Jiménez
6786b8a3aa Implement Default for Font 2020-04-23 22:17:00 +02:00
Héctor Ramón Jiménez
0b5028b1ab Draft Program interactivity for Canvas 2020-04-19 14:39:30 +02:00
Héctor Ramón Jiménez
4808fcbd7e Bump versions 🎉 2020-04-15 08:58:14 +02:00
Héctor Ramón Jiménez
b549b509c9 Align text in iced_wgpu on a case-by-case basis 2020-04-10 01:39:36 +02:00
Héctor Ramón Jiménez
d0cca658a1 Bump all versions 🎉 2020-04-02 17:40:20 +02:00
Héctor Ramón Jiménez
2ef1b4317a Remove subcrates CHANGELOG
At this stage, it is important to allow the library to change rapidly.
Because of this, keeping a log of changes can be counter-productive. We
do not want pin down design decisions by writing detailed changelogs
(sunk cost fallacy).

Once the library and its different parts start becoming more stable and
mature, we will reintroduce changelogs accordingly.

For now, we will keep a main `CHANGELOG` file just for the `iced` crate.
2020-04-02 03:44:14 +02:00
Héctor Ramón Jiménez
4fc17dfd66 Fix Size::new documentation 2020-04-02 03:44:14 +02:00
Héctor Ramón Jiménez
c2cb1a0c81 Improve Point::ORIGIN documentation 2020-04-02 03:44:14 +02:00
Héctor Ramón Jiménez
31aaf207d6 Remove redundant check in ModifiersState::matches 2020-03-20 04:10:58 +01:00
Héctor Ramón Jiménez
18f016cba7 Use f32::hypot in Point::distance 2020-03-20 04:08:18 +01:00
Héctor Ramón Jiménez
50b02d41a0 Check only for partial match of modifier keys 2020-03-18 07:10:36 +01:00
Héctor Ramón Jiménez
05beb87852 Move common keyboard types to iced_core
Also expose them in `iced` through `iced_native` and `iced_web`.
2020-03-17 07:30:05 +01:00
Héctor Ramón Jiménez
f08cb4ad56 Implement mouse-based pane resizing for PaneGrid 2020-03-14 08:10:50 +01:00
Héctor Ramón Jiménez
b74e7e7353 Implement Primitive::Cached 2020-03-07 23:45:54 +01:00
Héctor Ramón
d817fe8e14
Merge pull request #91 from nvzqz/const-all-the-things
Make many functions `const`
2020-03-06 03:47:40 +01:00
Héctor Ramón Jiménez
126133ead7 Fix Clip primitive intersection in iced_wgpu 2020-02-22 18:25:43 +01:00
Héctor Ramón Jiménez
945dfabd71 Move Size to iced_core 2020-02-14 05:35:42 +01:00
Héctor Ramón Jiménez
558abf648b Add transform stack to canvas::Frame 2020-02-14 04:59:31 +01:00
Héctor Ramón Jiménez
a30553ddbb Forbid unsafe code and Rust 2018 idioms 2020-01-20 10:52:06 +01:00
Héctor Ramón Jiménez
f14009601e Write documentation for iced_futures 2020-01-20 09:49:17 +01:00
Héctor Ramón Jiménez
b5b17ed4d8 Create iced_futures and wire everything up 2020-01-19 10:17:44 +01:00
Héctor Ramón Jiménez
d50ff9b5d9 Implement Runtime and Executor in iced_core
They can be leveraged by shells to easily execute commands
and track subscriptions.
2020-01-19 09:06:48 +01:00
Héctor Ramón Jiménez
32f7ca261f Implement subscription::Tracker in iced_core 2020-01-19 08:36:44 +01:00
Héctor Ramón Jiménez
5de404ddd9 Take IntoIterator instead of Iterator 2020-01-16 07:01:25 +01:00
Héctor Ramón Jiménez
f7a8b6983c Remove Mul implementation for Vector 2020-01-07 04:56:32 +01:00
Héctor Ramón Jiménez
fce89d0ffe Use constants for colors in styling example 2020-01-07 01:17:32 +01:00
Héctor Ramón Jiménez
2bbd395d5d Draft styling example 2020-01-06 18:44:45 +01:00
Héctor Ramón Jiménez
bbc8f837d7 Merge branch 'master' into feature/custom-styling 2020-01-05 22:03:32 +01:00
Héctor Ramón Jiménez
1a0effa961 Add border and shadow styling to Button 2020-01-05 19:29:12 +01:00
Songtronix
d60f3b89a7 add(widget): primitive progressbar widget 2020-01-02 11:11:08 +01:00
Héctor Ramón Jiménez
9ab7c47dc7 Add border_width and border_color to Quad 2019-12-31 21:38: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
b1f89699b4 Fix Command::batch documentation 2019-12-28 12:19:04 +01:00
Héctor Ramón Jiménez
453d2d5bb0 Implement Command::map 2019-12-19 21:08:59 +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
e71978456a Remove unnecessary clone in subscription::Map 2019-12-14 03:57:04 +01:00
Héctor Ramón Jiménez
c688452d7b Consume Recipe when building a Stream 2019-12-14 01:13:01 +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
98160406f7 Allow listening to runtime events in subscriptions 2019-12-08 08:21:26 +01:00
Héctor Ramón Jiménez
48145ba51e Use oneshot and future::select to cancel streams 2019-12-07 08:51:44 +01:00
Héctor Ramón Jiménez
d575f45411 Draft first version of event subscriptions 🎉 2019-12-05 06:10:13 +01:00
Malte Veerman
33ad332ce9 Implemented From<Color for Background 2019-12-04 22:02:07 +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
561c3641c6 Merge branch 'master' into feature/image-from-bytes 2019-12-04 04:01:12 +01:00
Nikolai Vazquez
267e242238 Make many functions const
The point is to set up repeated components or boilerplate before their
use sites.

The majority of these make sense as `const`. However, some functions
such as those regarding state may not make sense as `const`.
2019-11-29 21:24:52 -05:00