소스 검색

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.),