Héctor Ramón
27aad74a32
Merge pull request #200 from clarkmoody/color-enhancements
...
Color Enhancements
2020-05-04 23:30:51 +02:00
Héctor Ramón Jiménez
c0fd5de8a0
Improve minor documentation details in Color
2020-05-04 23:04:02 +02:00
Héctor Ramón Jiménez
e3555174d7
Use only iced dependency for color_palette
...
`Point` and `Size` are now properly re-exported.
2020-05-04 22:55:10 +02:00
Héctor Ramón Jiménez
3d3e51a742
Add screenshot to README of color_palette
2020-05-04 22:53:07 +02:00
Héctor Ramón Jiménez
1a8d253611
Add screenshot of color_palette example
2020-05-04 22:51:20 +02:00
Héctor Ramón Jiménez
24574b355d
Mention color_palette in examples README
2020-05-04 22:50:25 +02:00
Héctor Ramón Jiménez
03ca7eea6c
Reuse triangle path with transforms in color_palette
2020-05-01 22:45:47 +02:00
Héctor Ramón Jiménez
573929d5ec
Use Path::rectangle directly in color_palette
2020-05-01 22:32:40 +02:00
Héctor Ramón Jiménez
555371f77e
Move application implementation in color_palette
2020-05-01 22:27:14 +02:00
Héctor Ramón Jiménez
4d724a88e6
Introduce Theme type in color_palette example
2020-05-01 22:24:34 +02:00
Héctor Ramón Jiménez
0a011f9031
Improve generate_theme in color_palette
2020-05-01 21:51:08 +02:00
Héctor Ramón Jiménez
11e4039b56
Remove update_component in color_palette
...
We can use `ColorSpace::new` instead
2020-05-01 21:43:11 +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
Héctor Ramón
e0aa89cee7
Merge pull request #324 from ethanpailes/document-image-format-guessing
...
document that img handle constructors guess fmt
2020-04-27 17:49:13 +02:00
Ethan Pailes
da2ab420ce
document that img handle constructors guess fmt
...
This patch documents the fact that a couple of the image
handle constructors know how to guess the image format based
on the data that they are provided.
I had to dig through `iced` sources until I discovered that those
routines ultimately boil down to stuff like [image::load_from_memory][1]
from the `image` crate, so I thought I would save others the trouble
of doing the same reverse-engineering
[1]: https://docs.rs/image/0.23.4/image/fn.load_from_memory.html
2020-04-26 15:03:48 -04:00
Héctor Ramón Jiménez
3f4770fd28
Bump versions 🎉
2020-04-26 17:20:56 +02:00
Héctor Ramón Jiménez
e87f3acff4
Render meshes after quads in iced_wgpu
2020-04-26 17:09:03 +02:00
Héctor Ramón
f9bfa82ebc
Merge pull request #322 from AlisCode/aliscode/321/fix-async-examples
...
#321 Fix async examples by feature-gating Command implementations + A…
2020-04-25 02:39:10 +02:00
Héctor Ramón Jiménez
63f54edf0c
Use Rc in Command::map for Wasm
2020-04-25 02:29:40 +02:00
Olivier Pinon
f1e18d0935
#321 cargo fmt
2020-04-25 02:05:17 +02:00
Olivier Pinon
ce2ed35a1a
#321 Fix async examples by feature-gating Command implementations + Add pokedex example in CI so that at least one async example is runned on CI
2020-04-25 02:03:17 +02: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
Clark Moody
71657b50dd
Conditional re-export of palette from iced_core
2020-04-24 15:13:22 -05:00
Clark Moody
04be010fbd
Conversion traits for palette::Srgb
2020-04-24 15:13:22 -05:00
Clark Moody
ea3b7b5282
Derive Default for Color
2020-04-24 15:13:22 -05:00
Clark Moody
56ce01e262
Simplify range declaration
2020-04-24 15:13:22 -05:00
Clark Moody
a95d494f70
Remove redundant from_srgba and into_srgba methods
2020-04-24 15:13:22 -05:00
Clark Moody
408e9e566f
Add palette test for Color <-> Srgba & manipulation
2020-04-24 15:13:22 -05:00
Clark Moody
7b15e4b0e2
Feature name colors -> palette
2020-04-24 15:13:22 -05:00
Clark Moody
e926e43742
Add const from_rgba, for RGBA initialization
2020-04-24 15:13:22 -05:00
Clark Moody
9a4ad3d6a7
Use debug assertions instead of clamp
2020-04-24 15:13:22 -05:00
Clark Moody
fd484c7638
Fix docstring typo
2020-04-24 15:13:22 -05:00
Clark Moody
bb44398819
Revert from_rgb to const
2020-04-24 15:13:22 -05:00
Clark Moody
4009f0cf73
Remove HSLColor
2020-04-24 15:13:22 -05:00
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
70081c9649
Merge pull request #318 from hecrj/font-associated-type
...
Make `Font` an associated type of `text::Renderer`
2020-04-24 19:45:48 +02:00
Héctor Ramón Jiménez
0300b649d7
Make Font an associated type of text::Renderer
2020-04-23 22:17:11 +02:00
Héctor Ramón Jiménez
6786b8a3aa
Implement Default for Font
2020-04-23 22:17:00 +02:00
Héctor Ramón
3375824630
Merge pull request #314 from katktv/patch-1
...
Fix a typo in ROADMAP
2020-04-22 17:08:20 +02:00