Commit graph

261 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
66f8cf8215
Simplify slider logic further 2024-01-31 21:48:34 +01:00
Héctor Ramón Jiménez
00716a159a
Simplify Change enum in slider logic and remove double-click behavior 2024-01-31 21:38:16 +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
d72ac36a0f
Avoid returning early on Captured event in scrollable
Co-authored-by: Austin M. Reppert <austinmreppert@gmail.com>
2024-01-31 18:46:29 +01:00
jhannyj
feccf15e15 Add cut functionality to text editor 2024-01-25 20:55:51 -05:00
Héctor Ramón Jiménez
b544c90812
Fix impossible to type v in TextInput 2024-01-22 14:30:40 +01:00
Héctor Ramón Jiménez
e695f7a04c
Introduce themer widget 2024-01-21 19:02:01 +01:00
Héctor Ramón Jiménez
7a50e9e8fb
Convert Renderer::Theme to generic Widget type 2024-01-21 17:56:01 +01:00
Héctor Ramón Jiménez
bf375587aa
Add Shadow to container::Appearance 2024-01-20 13:34:07 +01:00
Héctor Ramón Jiménez
e736038d5f
Add Shadow to button::Appearance 2024-01-20 13:32:19 +01:00
Héctor Ramón Jiménez
25f182f933
Introduce Border struct analogous to Shadow 2024-01-20 13:29:25 +01:00
Héctor Ramón Jiménez
370b2f6df7
Use Default implementation of renderer::Quad 2024-01-20 12:25:07 +01:00
Nick Senger
cc906c83cd
feat: quad shadows 2024-01-20 11:59:37 +01:00
Héctor Ramón
61e3d8502f
Merge pull request #2163 from hicaru/svg_hover
added svg hover, for styles impl
2024-01-18 03:46:13 +01:00
Héctor Ramón Jiménez
64d1ce5532
Refactor KeyCode into Key and Location 2024-01-16 13:28:00 +01:00
Héctor Ramón Jiménez
534c7dd7b0
Merge branch 'master' into update-winit 2024-01-16 12:02:42 +01:00
Héctor Ramón
50c310fd9f
Merge pull request #2192 from iced-rs/fix/layout-inconsistencies
Layout consistency
2024-01-12 14:41:40 +01:00
Héctor Ramón Jiménez
5315e04a26
Fix clipping of TextInput selection 2024-01-12 13:34:14 +01:00
Héctor Ramón Jiménez
03c901d49b
Make Button sizing strategy adaptive 2024-01-11 06:12:19 +01:00
Héctor Ramón Jiménez
3850a46db6
Add Theme selector to layout example 2024-01-10 10:01:51 +01:00
Héctor Ramón Jiménez
88f8c343fa
Fix cross calculation in layout::flex 2024-01-10 10:01:50 +01:00
Héctor Ramón Jiménez
ecf571dfeb
Fix unnecessary into call in Container::new 2024-01-10 10:01:50 +01:00
Héctor Ramón Jiménez
67277fbf93
Make column and row take an IntoIterator 2024-01-10 10:01:50 +01:00
Héctor Ramón Jiménez
e710e76949
Fix size_hint for keyed_column 2024-01-10 10:01:49 +01:00
Héctor Ramón Jiménez
d62bb8193c
Introduce useful helpers in layout module 2024-01-10 10:01:49 +01:00
Héctor Ramón Jiménez
d278bfd21d
Replace width and height with Widget::size 2024-01-10 10:01:49 +01:00
Héctor Ramón Jiménez
22226394f7
Introduce Widget::size_hint and fix further layout inconsistencies 2024-01-10 10:01:49 +01:00
Héctor Ramón Jiménez
0322e820eb
Create layout example 2024-01-10 10:01:41 +01:00
Héctor Ramón
b083eda663
Fix Svg styling 2024-01-09 02:03:13 +01:00
William Shere
6c9dfbf01e Fix doc to include missing feature tags
Helper functions behind `lazy` feature were missing the tag in the documentation.
2024-01-05 13:50:38 +00:00
Héctor Ramón Jiménez
ed3b393018
Fix needless borrow in row::layout 2024-01-04 06:51:23 +01:00
Héctor Ramón Jiménez
0655a20ad1
Make Shrink have priority over Fill in layout 2024-01-04 06:51:21 +01:00
Héctor Ramón
68c0484b5c
Merge pull request #2168 from jhff/fix/pane_grid_top_edge_click
[Fix] `PaneGrid` click interaction on the top edge
2024-01-04 05:26:12 +01:00
Giuliano Bellini s294739
9bbf7822e9 added text::Shaping to Tooltip 2023-12-23 00:17:10 +01:00
Héctor Ramón Jiménez
e819c2390b
Update winit to 0.29.4 2023-12-15 13:39:00 +01:00
Joao Freitas
116fb666b0
Add deadband distance before initiating drag action on pane grid 2023-12-15 10:29:43 +00:00
hicaru
b54f27d30d added svg hover, for styles impl 2023-12-12 14:02:15 +05:00
Bingus
07b0aed5d3
Added the ability to change the style of a TextEditor 2023-12-06 14:52:53 -08:00
Héctor Ramón
fc285d3e46
Merge pull request #1964 from bungoboingo/feat/multi-window-support
[Feature] 🪟 Multi Window 🪟 .. redux!
2023-12-05 01:03:09 +01:00
Héctor Ramón Jiménez
43a7cc2222
Fix clippy lint 2023-12-01 16:10:37 +01:00
Héctor Ramón Jiménez
936d480267
Clip text to viewport bounds instead of layout bounds 2023-12-01 16:04:27 +01:00
Héctor Ramón Jiménez
e09b4e24dd
Merge branch 'master' into feat/multi-window-support 2023-11-29 22:28:31 +01:00
Héctor Ramón Jiménez
ab7dae554c
Provide actual bounds to Shader primitives
... and allow for proper translation and scissoring.
2023-11-28 23:13:38 +01:00
Héctor Ramón
100d15f306
Merge pull request #2143 from iced-rs/fix/tooltip-layout-invalidation
Invalidate layout when `Tooltip` changes `overlay`
2023-11-21 19:13:39 +01:00
Héctor Ramón Jiménez
f67387f2d8
Invalidate layout when Tooltip changes overlay 2023-11-21 18:58:54 +01:00
Héctor Ramón Jiménez
25006b9c6f
Fix Overlay composition
Translations were not easily composable.
2023-11-21 14:41:22 +01:00
Héctor Ramón Jiménez
811aa673e9
Improve module hierarchy of custom_shader example 2023-11-14 15:48:01 +01:00
Héctor Ramón Jiménez
63f36b0463
Export wgpu crate in shader module in iced_widget 2023-11-14 14:04:54 +01:00
Héctor Ramón Jiménez
91d7df52cd
Create shader function helper in iced_widget 2023-11-14 13:25:49 +01:00
Héctor Ramón Jiménez
280d3736d5
Fix broken intra-doc links 2023-11-14 13:23:28 +01:00