Переглянути джерело

app/wallet/send_step2: add radial glow to recipient input

x 3 тижнів тому
батько
коміт
17f0c4e479
1 змінених файлів з 10 додано та 0 видалено
  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.),