Commit graph

616 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
59b1e90661 Introduce Translate primitive in iced_wgpu 2020-04-28 03:52:10 +02:00
Héctor Ramón Jiménez
dc97d6f33e Remove interaction from solar_system example 2020-04-28 01:10:59 +02:00
Clark Moody
430f78a693 Abstract into ColorPicker and ColorSpace trait
Each color type implements ColorSpace to define its own representation
and update methods.

View sliders are implemented on the ColorPicker struct.
2020-04-27 16:25:13 -05:00
Clark Moody
3e71eaee37 Use Path::rectangle and Size for drawing swatches 2020-04-24 15:40:28 -05:00
Clark Moody
758a444d7f Replace text input fields for simple text 2020-04-24 15:31:12 -05:00
Clark Moody
27fadad324 Do not re-export Palette from iced_core 2020-04-24 15:20:00 -05:00
Clark Moody
4b90241ea1 Hex label text alignment 2020-04-24 15:13:22 -05:00
Clark Moody
39fd8ad9e9 TextInput fields with color encodings. Draw shades. 2020-04-24 15:13:22 -05:00
Clark Moody
b1328f193c More theme colors and gradient of lightness 2020-04-24 15:13:22 -05:00
Clark Moody
6b18e78e53 Use canvas to draw color palette for example 2020-04-24 15:13:22 -05:00
Clark Moody
664a63a4b8 Add example program: color palette
Sliders for many color spaces update as any other sliders are moved
around. Color is space is clamped to sRGB, so Lab and Lch color spaces
cannot be fully expressed.

TODO:
- Real-time manipulation of base color to create a color scheme.
- Show slider value under each slider
- Show output values in text boxes for each color space
2020-04-24 15:13:22 -05:00
Héctor Ramón Jiménez
592cc68506 Remove Layer trait and simplify Canvas 2020-04-19 21:55:23 +02:00
Héctor Ramón Jiménez
bb424e54c5 Add interactivity to solar_system example 2020-04-19 18:48:30 +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
99e020c7b5
Merge pull request #269 from hecrj/update-wgpu
Update `wgpu` to `0.5` in `iced_wgpu`
2020-04-16 04:59:56 +02:00
Héctor Ramón Jiménez
6d7f2b30cc Simplify drawing logic in clock example 2020-04-14 07:19:50 +02:00
Héctor Ramón Jiménez
46cd0891d2 Implement canvas::Path::circle helper method 2020-04-14 06:54:12 +02:00
Héctor Ramón Jiménez
c545af3577 Implement canvas::Path::rectangle helper method 2020-04-14 06:49:15 +02:00
Héctor Ramón Jiménez
81096ef454 Implement From<Color> for canvas::Fill 2020-04-14 06:38:06 +02:00
Héctor Ramón Jiménez
47d44af348 Fix bezier_tool placeholder text alignment 2020-04-10 02:49:04 +02:00
Héctor Ramón
d51b501d2f
Merge pull request #267 from robjtede/improve/canvas-cache-default
impl default for canvas cache
2020-04-09 00:34:37 +02:00
Rob Ede
6e7769b65d
impl default for canvas cache 2020-04-08 23:07:42 +01:00
Héctor Ramón Jiménez
d807ef367e Update wgpu to 0.5 in iced_wgpu 🎉 2020-04-07 05:48:21 +02:00
Héctor Ramón Jiménez
3c47e3e229 Simplify Language conversion in tour 2020-04-06 20:12:16 +02:00
Dmitry Kashitsyn
1a9bfd9e73
Radiobutton label is now impl Into<String> 2020-04-05 12:43:18 +07:00
Héctor Ramón Jiménez
92e148822f Add 0 suffix to float literals for consistency 2020-04-02 01:00:39 +02:00
Marli Frost
08da96c1c6
Scale the clock hands to the same size as the face 2020-04-01 23:19:56 +01:00
Héctor Ramón
e79e832092
Merge pull request #246 from hecrj/feature/application-flags
Application flags
2020-03-31 17:49:56 +02:00
Héctor Ramón Jiménez
990b4aa0b7 Merge branch 'master' into feature/container-padding 2020-03-31 17:11:58 +02:00
Héctor Ramón Jiménez
749a9588d7 Implement padding support for Container 2020-03-31 01:21:51 +02:00
Héctor Ramón Jiménez
ae009158cc Implement svg::Handle::from_memory
Useful if you already have your SVG data in memory.
2020-03-31 00:39:18 +02:00
Héctor Ramón Jiménez
c4c5216e3b Allow passing external state to Application::new 2020-03-30 18:10:15 +02:00
Héctor Ramón
57b2daa57e
Merge pull request #240 from kaimast/master
remove explicit lifetimes in integration example
2020-03-28 13:43:04 +01:00
Kai Mast
088ba527df remove explicit lifetimes in integration example 2020-03-27 17:46:01 -07:00
Héctor Ramón Jiménez
e23e93218c Convert WindowEvent from a reference in iced_winit 2020-03-27 22:06:20 +01:00
Héctor Ramón Jiménez
b30ddf90d2 Change selection color in styling example 2020-03-24 21:51:56 +01:00
Héctor Ramón Jiménez
e77fa175aa Merge branch 'master' into feature/text-selection 2020-03-24 19:08:21 +01:00
Héctor Ramón Jiménez
fd7d9622e3 Fix Recipe::hash in download_progress example 2020-03-24 14:07:34 +01:00
Héctor Ramón Jiménez
8e0dcd212d Fix retry button on download_progress example 2020-03-23 21:08:03 +01:00
Héctor Ramón Jiménez
8e073d10d7 Update README of examples 2020-03-23 21:04:20 +01:00
Héctor Ramón Jiménez
0d719bbdf3 Handle errors in download_progress example 2020-03-23 20:43:55 +01:00
Héctor Ramón Jiménez
b92e1f9574 Rename downloader module to download 2020-03-23 20:37:30 +01:00
Héctor Ramón Jiménez
30c7db3f25 Improve download_progress example
- Use `reqwest` with `Response::chunk` to notify progress.
- Turn example state into an enum
2020-03-23 20:34:16 +01:00
Songtronix
fff333f89b Add example for download with progress tracking 2020-03-23 17:53:57 +01:00
Héctor Ramón Jiménez
eba2ded88a Update README of examples 2020-03-18 06:35:55 +01:00
Héctor Ramón Jiménez
36abf7457f Improve styling of pane_grid example 2020-03-18 05:53:41 +01:00
Héctor Ramón Jiménez
b8a035d2da Add some styling to pane_grid buttons 2020-03-18 01:27:23 +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
1cd1582506 Add modifiers to KeyPressEvent in pane_grid 2020-03-17 07:16:54 +01:00
Héctor Ramón Jiménez
6f9cf6c70d Implement hotkey logic in pane_grid example 2020-03-17 06:54:25 +01:00