Commit graph

2889 commits

Author SHA1 Message Date
Héctor Ramón
0eb24bd56a
Merge pull request #1496 from tarkah/fix/dropdown-scrollable
Fix drop down not closing when inside scrollable
2022-10-29 01:45:00 +02:00
Ian Douglas Scott
be9cd3a09f Use once_cell instead of lazy_static
This seems to be generally considered the preferred, idiomatic solution
now. This is in the standard library behind a feature flag (apparently
now called `std::sync::LazyLock`).
2022-10-28 15:58:21 -07:00
Cory Forsstrom
f8c363eeac Fix drop down not closing when inside scrollable
and user clicks outside the scrollable. This is because the scrollable
sets -1.0 on cursor.y for any events where cursor is outside it's
bounds. I'm not sure why picklist had this logic to stay open on -1.0 /
-1.0, any click outside the overlay should close it.
2022-10-27 17:40:18 -07:00
Cory Forsstrom
ea4b3cd6ae Fix text input padding 2022-10-27 12:10:47 -07:00
Cory Forsstrom
2c103f8654 Constrain padding to inner & outer sizes 2022-10-27 11:50:12 -07:00
Héctor Ramón
82217947aa
Merge pull request #1480 from tarkah/more-pane-grid-fixes
More pane grid fixes
2022-10-19 23:32:12 +02:00
Cory Forsstrom
069371c86b Use child layout 2022-10-19 13:21:46 -07:00
Cory Forsstrom
470723c232 Eliminate unnecessary allocation 2022-10-19 13:05:56 -07:00
bungoboingo
d53e262425 Documentation changes 2022-10-19 10:13:07 -07:00
bungoboingo
67ab4fd8c0 Updated syntax for color stop iteration re: PR comments. 2022-10-18 18:05:53 -07:00
bungoboingo
ab311c9375 Changed gradient builder to be more clear about what caused certain errors. 2022-10-18 17:45:47 -07:00
bungoboingo
c4565759e4 Cleaned up namespaces re: PR comments. 2022-10-18 15:18:37 -07:00
Cory Forsstrom
fb036529a2 Render picked pane last 2022-10-17 14:56:06 -07:00
Cory Forsstrom
dca99f35e9 Fix pane grid mouse interactions
- Use `grabbing` interaction while dragging
- Ignore grab interaction when dragging is disabled
2022-10-17 14:38:24 -07:00
Héctor Ramón
69e288cad1
Merge pull request #1463 from tarkah/fix/pane-grid-render-order
Render pane grid titlebar after body
2022-10-17 19:26:59 +02:00
Michael Aaron Murphy
ac6e137be3
feat: Add window minimize support 2022-10-11 21:56:45 +02:00
Michael Aaron Murphy
8a50836ffc
feat: Add window maximize support 2022-10-11 21:56:01 +02:00
Michael Aaron Murphy
7ea7dbef57
feat: Add window drag support from winit
Exposes access to the winit window's window_drag method as an action.
2022-10-11 21:39:53 +02:00
bungoboingo
bb8d46a3fd Fixed fragment shader compatibility issues with GLES 3.0+ 2022-10-10 20:55:43 -07:00
Bingus
aabc4e87b5
Merge branch 'master' into fear/linear-gradients 2022-10-07 16:58:45 -07:00
shan
7a124476b1 Jumped the gun on pushing; one more readability update :P 2022-10-07 16:57:29 -07:00
shan
fd5e1e5ab0 Adjusted gradient transform function to be more readable. 2022-10-07 16:55:55 -07:00
shan
a4a1262fa2 Fixed import issue with canvas in the gradient mod for situations where canvas feature is not enabled. 2022-10-07 16:28:13 -07:00
shan
215e6c95be More import adjusting. 2022-10-07 13:21:32 -07:00
shan
3e600fe775 Adjusted reexports for clarity. 2022-10-07 13:10:37 -07:00
shan
87371ce934 Fixed an edge case where when gradient start/end are identical the GL fragment shader was not choosing the appropriate color. 2022-10-07 13:06:06 -07:00
shan
12a87c54eb Added support for relative positioning of gradient fills. Addressed some PR feedback. 2022-10-07 12:01:07 -07:00
Cory Forsstrom
20fd1f2047 Render pane grid titlebar after body 2022-10-07 09:03:44 -07:00
Héctor Ramón
77c838011f
Merge pull request #1458 from AlistairKeiller/master
Fix wgpu README supported backends
2022-10-07 12:25:07 +02:00
shan
f9a6efcaa0 Fixed some more imports/documentation. 2022-10-06 19:41:00 -07:00
shan
72feba51be Fixed some imports/documentation. 2022-10-06 19:13:40 -07:00
shan
9c7bf417ac Added support for gradients to respect current frame transform. 2022-10-06 18:59:54 -07:00
Alistair Keiller
520907e997 remove iced 2022-10-06 11:27:45 -07:00
Alistair Keiller
c9641b0b5d add a link to wgpu supported platforms list 2022-10-06 11:22:27 -07:00
Alistair Keiller
013c1f1f89 remove DX11 support from wgpu 2022-10-06 09:55:20 -07:00
shan
f4878a1a66 Changed tesselation functions to take Vertex2D builder instead of using lyon's builtin Point type to avoid extra copies. 2022-10-06 08:04:43 -07:00
shan
cb7c467654 Fixed lint issues & cleaned up some documentation. 2022-10-06 07:28:05 -07:00
shan
1eb8d972ba Reduced memory transfer of OpenGL gradient uniform upload. Rearranged gradient uniforms on OpenGL side to be more performant. 2022-10-05 16:07:43 -07:00
shan
f7ce7244d0 Adjusted gradient uniforms to be more tightly packed. 2022-10-05 11:32:59 -07:00
shan
e540b7f642 Fixed issue with offsets not being reset properly leading to borked draws. 2022-10-05 11:23:36 -07:00
shan
30432cbade Readjusted namespaces, removed Geometry example as it's no longer relevant. 2022-10-05 10:49:58 -07:00
Héctor Ramón
cd5a5f2ed2
Merge pull request #1331 from ThisIsRex/master
`is_selected` property for `Radio` `StyleSheet`
2022-10-05 19:15:14 +02:00
MG_REX
dbd76ea21c
Derive Clone and Copy for toggler::Appearance 2022-10-05 19:08:07 +02:00
MG_REX
d95c216b2d
Add is_selected argument in radio::StyleSheet 2022-10-05 19:07:02 +02:00
shan
6e7b3ced0b Reworked wgpu buffers, updated glow side to have proper transform location storage, attempting to fix visibility modifiers, implemented some of the feedback received in initial PR. 2022-10-04 18:24:46 -07:00
Héctor Ramón
2278bade55
Merge pull request #1305 from artursapek/canvas-touch
Expose touch events in canvas widget
2022-10-04 18:20:14 +02:00
Héctor Ramón Jiménez
8c74464b0d
Fix clippy lints 2022-10-04 11:53:03 +02:00
Héctor Ramón Jiménez
ce2c795bda
Replace voronoi crate with voronator 2022-10-04 11:50:32 +02:00
Héctor Ramón Jiménez
ddb8f5b96c
Finish multitouch example 2022-10-04 11:35:22 +02:00
Artur Sapek
9d6834f250
vornoi experiment 2022-10-04 11:24:10 +02:00