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
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
kat
f30043ddc2
Fix a typo in ROADMAP
2020-04-22 15:07:01 +03:00
Héctor Ramón
edd01159e0
Merge pull request #305 from hecrj/element-on-event
...
Implement and expose `Element::on_event`
2020-04-19 15:28:53 +02:00
Héctor Ramón Jiménez
462ba3b2c8
Implement and expose Element::on_event
2020-04-18 21:32:04 +02:00
ethanpailes
90c3a183d5
fix progress bar docs to no longer mention buttons ( #301 )
2020-04-18 21:12:44 +02:00
Héctor Ramón Jiménez
ae546a5b9d
Revert "Merge pull request #289 from hecrj/fix/cursor-events"
...
`winit` seems to produce `CursorEntered` and `CursorLeft` events after
wheel scrolling for no apparent reason (?). This causes annoying flickering when hovering some widgets on a scrollable.
I should investigate this further. We are rolling back the fix for the
time being.
2020-04-17 23:27:50 +02:00
Héctor Ramón Jiménez
b44f14e186
Fix MSAA blit vertex shader to match wgpu NDC
2020-04-16 14:54:29 +02:00
Lain-dono
b23945c78a
Change &mut wgpu::Device to &wgpu::Device ( #299 )
...
* Change `&mut wgpu::Device` to `&wgpu::Device`
* Fix for rustfmt
2020-04-16 08:06:05 +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
4808fcbd7e
Bump versions 🎉
2020-04-15 08:58:14 +02:00
Héctor Ramón Jiménez
f37a658962
Update CHANGELOG
2020-04-15 08:44:01 +02:00
Héctor Ramón Jiménez
5cb40dc095
Mention flags are not supported by Sandbox
...
Fixes #291
2020-04-15 07:56:25 +02:00
Héctor Ramón
99352f02fd
Merge pull request #293 from hecrj/improvement/canvas-ergonomics
...
Improve `Canvas` ergonomics
2020-04-15 05:43:40 +02:00
Héctor Ramón
d0ebcdb936
Merge pull request #294 from MrMonotone/patch-1
...
Fix tour example
2020-04-14 08:04:12 +02:00
Héctor Ramón Jiménez
88b7dd6601
Check Wasm compilation of tour example in CI
2020-04-14 07:44:04 +02:00
Héctor Ramón Jiménez
f7825fd936
Fix Checkbox and Radio API in iced_web
2020-04-14 07:41:35 +02:00
Héctor Ramón Jiménez
6d7f2b30cc
Simplify drawing logic in clock example
2020-04-14 07:19:50 +02:00
Nicholas
67fd107746
Fix tour example
2020-04-13 22:19:47 -07:00
Héctor Ramón Jiménez
3df49bebd4
Implement canvas::Path::line helper method
2020-04-14 07:08:12 +02:00
Héctor Ramón Jiménez
46cd0891d2
Implement canvas::Path::circle helper method
2020-04-14 06:54:12 +02:00