Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add style property transitions #143

Merged
merged 1 commit into from
Nov 5, 2023
Merged

Conversation

Zoxc
Copy link
Contributor

@Zoxc Zoxc commented Nov 5, 2023

This add style property transitions which can be used by the transition method on Style. For example: transition(Background, Transition::linear(0.1)). Users of prop_extracter! will get these animations applied if the property type supports them (current f64 and Color).

The themes example is updated to use them.

Copy link

codecov bot commented Nov 5, 2023

Codecov Report

Merging #143 (1264f0f) into main (d10a3c2) will decrease coverage by 0.08%.
The diff coverage is 0.37%.

@@           Coverage Diff            @@
##            main    #143      +/-   ##
========================================
- Coverage   5.09%   5.02%   -0.08%     
========================================
  Files         56      56              
  Lines      11087   11268     +181     
========================================
+ Hits         565     566       +1     
- Misses     10522   10702     +180     
Files Coverage Δ
src/views/scroll.rs 0.00% <0.00%> (ø)
src/context.rs 0.00% <0.00%> (ø)
src/window_handle.rs 0.00% <0.00%> (ø)
src/view.rs 0.00% <0.00%> (ø)
src/inspector.rs 0.00% <0.00%> (ø)
src/style.rs 11.78% <0.63%> (-1.38%) ⬇️

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

@dzhou121 dzhou121 merged commit 749db2b into lapce:main Nov 5, 2023
9 checks passed
@Zoxc Zoxc deleted the style-transitions branch November 5, 2023 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants