Jonathan Johnson
d739ef1b79
Added checks to ZeroToOne division
...
Refs #120
2023-12-31 07:50:26 -08:00
Jonathan Johnson
0fb93c7be8
ZeroToOne now checks when dividing
...
Refs #120
2023-12-31 07:36:54 -08:00
Jonathan Johnson
2fe28729df
Directly depending on figures
...
While this was a workaround for a docs.rs issue (Px/Lp are not
linked), I decided having the shorter import path would look better in
the examples.
It probably wasn't necessary to update all of the references in the
internal code, but I decided it was worth the consistency.
2023-12-28 09:35:24 -08:00
Jonathan Johnson
df479e983e
Renaming crate to Cushy
...
Refs #117
2023-12-27 19:02:59 -08:00
Jonathan Johnson
4e145d7f35
Removed UnwindSafe bounds
...
appit wasn't supposed to pass along this requirement
2023-12-20 11:35:19 -08:00
Jonathan Johnson
353db9dc39
Added Opacity component
...
Closes #87
2023-12-13 14:02:39 -08:00
Jonathan Johnson
87fa4a3478
Moved arc path generation to Kludgine
2023-12-10 15:43:02 -08:00
Jonathan Johnson
c4151d649c
Added Spinner widget
...
Closes #80
2023-12-10 15:05:59 -08:00
Jonathan Johnson
35576f9214
Image widget
...
Closes #23
(Feels good to close a 3 year old issue!)
2023-12-09 13:18:46 -08:00
Jonathan Johnson
16af20269e
Updated figures + kludgine
2023-12-07 15:49:03 -08:00
Jonathan Johnson
aeb55e0b94
run_in_bg and Dynamic<&'static str>
2023-11-27 09:27:37 -08:00
Jonathan Johnson
b2fdf06e60
Dynamic now requires PartialEq
...
This reduces the complexity of operations capable with Dynamic, and also
makes it easier to shortcut deadlocking operations.
2023-11-23 11:53:59 -08:00
Jonathan Johnson
dd38fa7bf4
More fluent APIs
2023-11-22 05:54:35 -08:00
Jonathan Johnson
801337ab7a
Progress bars, repeating animations
...
Closes #70
2023-11-21 09:53:08 -08:00
Jonathan Johnson
4af82ae188
Component type safety, some font support
2023-11-19 21:52:45 -08:00
Jonathan Johnson
01d45a836f
Fixing Gooey compilation on MacOS
...
After trying to run Gooey again on my Mac for the first time in a few
weeks, I found that I ran into the Condvar issue again. Rather than
pasting AssertUnwindSafe in those files, I've both reported the
discrepency in unwind safety (rust-lang/rust#118009 ) and moved the
workaround into a type that only uses AssertUnwindsafe when compiling
for Apple.
2023-11-17 06:20:20 -08:00
Jonathan Johnson
64584c4b14
Merge pull request #76 from ModProg/button-fun
...
derive(LinearInterpolate) on enum
2023-11-14 11:28:52 -08:00
Jonathan Johnson
4668db3983
New slider example showing min/max
2023-11-14 11:27:04 -08:00
Roland Fredenhagen
aec768617a
derive(LinearInterpolate) on enum
2023-11-14 20:03:30 +01:00
Jonathan Johnson
42ed86cdfd
Lerp/PercentBetween fixes
...
Asserting condition on PercentBetween, Color lerping now works
correctly according to testing with gray shades, but due to rounding
errors, no unit test is being checked in at the moment.
2023-11-14 10:16:22 -08:00
Jonathan Johnson
a04619a279
Layout caching, Lerp underflow fix, label fix
2023-11-14 07:38:39 -08:00
Jonathan Johnson
cc7d4bac45
Merge pull request #74 from ModProg/button-fun
...
button outline without drawing
2023-11-13 16:29:41 -08:00
Jonathan Johnson
b1ae9efae2
ColorScheme[Builder]
2023-11-13 16:28:20 -08:00
Jonathan Johnson
ee3813f44d
Switcher, h/v expand
2023-11-13 09:14:38 -08:00
Roland Fredenhagen
4a4578bdd6
button outline without drawing
2023-11-13 17:03:51 +01:00
Jonathan Johnson
eca2b21e6a
contrast_between is now smarter
2023-11-11 17:57:26 -08:00
Jonathan Johnson
d07dcdc9aa
Paired dynamics are now possible
...
Also sliders look better
2023-11-11 16:51:07 -08:00
Jonathan Johnson
27d5baef5d
ThemeMode
2023-11-11 13:41:34 -08:00
Jonathan Johnson
eb4b24f4a9
Slider
2023-11-11 09:42:53 -08:00
Jonathan Johnson
e683b7d31f
fill(), expand at root, Space::colored
2023-11-10 12:20:56 -08:00
Jonathan Johnson
58b98a9a16
LinearInterpolation now requires PartialEq
...
This also means that if an animation is animating over discrete values
and the actual value has not changed, the Dynamic will no longer detect
a change because it's now using update instead of set.
2023-11-09 07:46:02 -08:00
Jonathan Johnson
ad57e02e4f
Generic ForEach/MapEach
2023-11-08 15:32:51 -08:00
Jonathan Johnson
0f6d3838b1
LayoutContext
...
measure() now is layout(). LayoutContext can either persist layout
information or be used temporarily for measurement. While this caching
is constantly thrown out currently, this is a step towards being able to
only re-layout widgets if they've been invalidated.
2023-11-05 11:50:59 -08:00
Jonathan Johnson
6f5ffd80b4
Easing functions as styles
2023-11-03 13:37:27 -07:00
Jonathan Johnson
1bf1b082af
Easings
2023-11-03 11:24:27 -07:00
Jonathan Johnson
126b324b55
Animation docs, on_complete
2023-11-03 09:37:22 -07:00
Jonathan Johnson
501eecd7a5
Async, better scroll, Input::on_key
2023-11-03 07:15:34 -07:00
Jonathan Johnson
ed31805693
Tuple animations
2023-11-02 07:48:30 -07:00
Jonathan Johnson
64f46a46e2
Button animations, hover fixes, ComponentType
2023-11-01 20:11:05 -07:00
Jonathan Johnson
79be9a063b
Scroll and Animations
...
Scroll is only working to the absolute barest of requirements.
2023-11-01 15:15:14 -07:00