Browse Source

app/wallet/send_step2: add glow to recipient input

x 3 weeks ago
parent
commit
44486c0800
1 changed files with 10 additions and 0 deletions
  1. 10 0
      bin/app/src/app/schema/wallet/send_step2.rs

+ 10 - 0
bin/app/src/app/schema/wallet/send_step2.rs

@@ -291,6 +291,16 @@ pub async fn make(
         expr::load_var("h"),
         COLOR_TRANSTEAL,
     );
+    shape.add_radial_glow(
+        cc.compile("w / 2").unwrap(),
+        expr::load_var("h"),
+        cc.compile("w * 1.2").unwrap(),
+        cc.compile("h / 2").unwrap(),
+        8,
+        std::f32::consts::PI,
+        2. * std::f32::consts::PI,
+        [0.3, 0.5, 1., 0.25],
+    );
     shape.add_outline(
         expr::const_f32(0.),
         expr::const_f32(0.),