Commit graph

11 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
5e6c9eeb7e
Add iced widget helper to display the iced logo ☄️ 2024-07-11 04:33:19 +02:00
Héctor Ramón Jiménez
05f69f495e
Ask for explicit Length in center_* methods 2024-05-13 17:56:02 +02:00
Héctor Ramón Jiménez
15057a05c1
Introduce center widget helper
... and also make `center_x` and `center_y` set
`width` and `height` to `Length::Fill`, respectively.

This targets the most common use case when centering
things and removes a bunch of boilerplate as a result.
2024-05-03 09:11:46 +02:00
Héctor Ramón Jiménez
c22269bff3
Introduce Program API 2024-03-16 05:33:47 +01:00
Héctor Ramón Jiménez
468f6a461a
Simplify slider example 2024-01-31 21:56:55 +01:00
Jonatan Pettersson
5e2b3d4a51
Enhance Slider and VerticalSlider functionality
* Add optional default behavior
  * Add a `default` field
  * Add a `default()` method to set the `default` field
  * A double-click, ctrl-click or command-click will set the slider to the default value
* Add optional fine-grained control
  * Add an optional `step_fine` field
  * Add a `step_fine()` method to set the `step_fine` field
  * Use `step_fine` in place of `step` while shift is pressed
* Add increment/decrement via up/down keys
* Update `Slider` and `VerticalSlider` examples
2024-01-31 21:25:19 +01:00
Héctor Ramón Jiménez
f468e25d0c
Use workspace dependencies and package inheritance
We are also taking this as a chance to synchronize
the versions of all the crates! Because of this, we
will skip the `0.11` version.
2023-09-04 13:08:17 +02:00
Héctor Ramón Jiménez
7b8b01f560
Use f32 in Length::Units and rename it to Fixed 2023-02-17 15:40:17 +01:00
Casper Storm
55f36bc865
updated README for slider example 2022-12-13 10:13:27 +01:00
Casper Storm
bb4161c1ae
Split vertical orientation into VerticalSlider 2022-12-13 10:05:52 +01:00
Casper Storm
ba95042fff
Vertical orientation added to Slider. 2022-12-12 15:27:00 +01:00