From 67186e8e626f85f9c3fdf921f12ff6d219d63ac4 Mon Sep 17 00:00:00 2001 From: carrascomj Date: Tue, 31 Jan 2023 12:57:11 +0100 Subject: [PATCH] enhance: make legend ui more compact and collapsible --- assets/arrow_grad.png | Bin 1376 -> 3210 bytes assets/hist_legend.png | Bin 730 -> 1317 bytes assets/hist_legend_right.png | Bin 777 -> 1324 bytes assets/met_grad.png | Bin 2619 -> 7385 bytes src/legend/setup.rs | 235 ++++++++++++++++++----------------- 5 files changed, 118 insertions(+), 117 deletions(-) diff --git a/assets/arrow_grad.png b/assets/arrow_grad.png index 4a3f392090a3cc39d5b66dfc85954acd81650223..0c141f85860ea32a77e6384ffc4c15cb0524d2e4 100644 GIT binary patch literal 3210 zcmY*b2~?9;7XCZfsS7Pes)(}GV3ofj;0g!75X8g^{C{QPU%~J5h4I_LpGAqj!88PMw1c0I(ga>-fYCC=J1FIF z0yTvmk$eiF)9H@Ur(|3c}gj}LtH`$A6r%C^rnJgw>|ocm}OrhVpqJs`GQ@S?ES6M7WuM# zZ&vu$ELdp&>w;ao`8)077kgJ;A~3akVt*Gt(#jpCQN{5-Qm$NC|15?2L_# zZ3t$Xh3rd25a$iYTnfp$4mVpH+31&I*}ZKGK0y%CtxH^&T#C(Ow{UA*U96e3g-C_+Ae_LK+>I!NiwtrcLW*N$LK;=njo-`%uaE*x1hY$z1+;7RX>6 zUOIjvkQi!%k!B5ICB3poZ&#clV>ShubIH zySlo~mG-(dL@ukua3QO-hSyPqQYuoz8bnQs>3$f~n_CkaONSc=fZKoSX!Z8H?!A zFjgdhKn8syz$|WI$|70@1X7*9G$Iqiko(XHWZde;PFl(7eqkeWfW@^Ah*5#l8-9Yd z5k`j{5QojR_V~GaY^*0=<9;SkDY|F${3l^NUDhp2s{cuU-5Un_LfyR&rGwxGxm;cz z%L`r$vO?N@QAx&*LS->cddf;>(XA9MgvV#9bGX&@Sn|o09FwTIHpVhgSmGI{{b(;n zld|LEwG(1l+XfIF>Ckp{4!#@Vj~A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KZ)^JA1u&o^?{i5OzwO;X55xKl}t^-lmB*v^>QWWqczucSG%!8 zU$~-Ud#BbF2zvvOvWALvk*&%5keZOf^dZf~va8lR?V(TKhD-FI=&RO`@X&p-v39kO kxx#uP`_DJ$>>?IfGkC}zqZ>x{>VBC3q5AvOdWZhqf&zuR?AAAKXs|Fr!k^Mj4ToGcR^1n5shr1Mu~^0gmsH$3+Grgh&& zozv?#o7<>NwAr&gx##pv%P>7}vugCCz*M4gge_CMi$M)EcIeVLT7w0+BJL9yZ-v546I&PNyaS8R! z?lQ@@x7ANi-8p0L7Fi*Ar*7p-nI2&4wP_v zSnhP;(Eca^7H;mWiF#4vlCkj4~L|HkwS{YiG~RvfycMFS3J==$z^lg zagqtMtlA#+n>vMy7Un%%cA+w_O=`mwbu5}-rd)a6_$qVKX4d{#-K`yV>^43|Yxi<& zH-H-sQwI@P7&ti8I0 zxt1we(LFB_>V1SNGyxO7-#2UD=L;=&`%t?5k7{{$v;-F3eu;%_u)PNB?EibWM>B z-jCO${_@xq_`s%bvj&#%cmAifUCwSt#p_E3i8JLs{pH_$MCIhafcuTAXD0dlbP0l+XkK&zB9u diff --git a/assets/hist_legend_right.png b/assets/hist_legend_right.png index 28c99f2b26d926ee58c9aeae9564d3251707b173..a55cec540faa2463d5c694a01dba55f3fe9ad848 100644 GIT binary patch literal 1324 zcmeAS@N?(olHy`uVBq!ia0vp^Cm9$Ri#XVTtoS|u*nt#hfk$L91B0G22s2hJwJ!q- zN|v}rlmzFem6RtIr81P4m+NKbWfvzW7NqLs7p2dBXCuYHz_QcR#WAE}&f9AnbJapc z+8$>Ap5EG$)*?Jd@DiKSJ++JmwiV5O9ot!$PIPQ%l<0|!baQt4cT4JF_WS=fqBRFA zmlki#y=`~y$iDaT*Gm6pedD_~?etCN2U~?XStdFN(4W|GV_WWg+efUmGRb>@^n&>5 zsXr6HbrcuPvVG86Yj&){y!wda{PS`Jd3&M-T$mhH27=JrmU}zB|3PG(eDWWo>LbB- z@893Qd+*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%Z83V196Dp*X{aWjF0M3-NyfLLTfOW}avaAQf z%L)|$QmNEABDxo5%!r^}&|0@o=fG&ZvO@&`%d(CG_!!LH{Xx0J%ZqSae1!@C zQp!#tL>qv9zirKMLjcy>wtdiVL%u@=fMhcHS0cI-z}X<$n}30n)_Sd!vNMRr$~mQ( zkWy*^fENHP39QlD_d0-kq?CajbOy4f7I-`NH82lbm8w%~y(Y*&fq>W4QR*DW*-AtY zBj8`08o>a5Dy94yfZ?DU4=YpvKqiyfptb%v05hcf{|yk)gWe_AP=p#P0Ho9D79qq_ z0B#Spqv~*&h<`R&mUTMJPC^gWQ>T>LjQoe~S4Yudg}DIW+fvHM5yAM%QH2Ts=P8?Wm5aRW1W~4!}++a3!g<4D|lW7I8Tx-1u zKr0coGIJC1mnNH#pCPLOKt1x;SuY}gR65}O=_8_(TI-WU)D7T-l(MQn8~z`e_Gqt1 SO7D*V0000) { 200., 200., font, - 20., + 15., Color::hex("504d50").unwrap(), ); let scales_mets = scales_arrow.clone(); @@ -67,7 +67,7 @@ pub fn spawn_legend(mut commands: Commands, asset_server: Res) { commands .spawn(NodeBundle { style: Style { - size: Size::new(WIDTH, HEIGHT), + max_size: Size::new(WIDTH, HEIGHT), flex_direction: FlexDirection::ColumnReverse, align_items: AlignItems::Center, position_type: PositionType::Absolute, @@ -81,6 +81,108 @@ pub fn spawn_legend(mut commands: Commands, asset_server: Res) { ..Default::default() }) .insert((Drag::default(), Interaction::default())) + // box-point legend + .with_children(|p| { + // container for both box sides + p.spawn(NodeBundle { + style: Style { + max_size: Size::new(ARROW_BUNDLE_WIDTH, HIST_HEIGHT_CHILD / 2.0), + display: Display::Flex, + align_items: AlignItems::Center, + justify_content: JustifyContent::SpaceEvenly, + ..Default::default() + }, + ..Default::default() + }) + // container for left box side with text tags for axis + .with_children(|p| { + p.spawn(NodeBundle { + style: Style { + size: Size::new(ARROW_BUNDLE_WIDTH / 2.3, HIST_HEIGHT_CHILD / 2.0), + display: Display::None, + align_items: AlignItems::Center, + justify_content: JustifyContent::SpaceBetween, + ..Default::default() + }, + ..Default::default() + }) + .insert(LegendBox) + .insert(Side::Left) + // left box side + .with_children(|p| { + p.spawn(( + TextBundle { + text: scales_right_box.x_0.text, + ..default() + }, + Xmin, + )); + }) + .with_children(|p| { + p.spawn(ImageBundle { + style: Style { + size: Size::new(CIRCLE_DIAM * 0.5, CIRCLE_DIAM * 0.5), + ..default() + }, + image: UiImage(box_handle.clone()), + ..default() + }); + }) + .with_children(|p| { + p.spawn(( + TextBundle { + text: scales_right_box.x_n.text, + ..default() + }, + Xmax, + )); + }); + }) + // container for right box side with text tags for axis + .with_children(|p| { + p.spawn(NodeBundle { + style: Style { + size: Size::new(ARROW_BUNDLE_WIDTH / 2.3, HIST_HEIGHT_CHILD / 2.0), + display: Display::None, + align_items: AlignItems::Center, + justify_content: JustifyContent::SpaceBetween, + ..Default::default() + }, + ..Default::default() + }) + .insert(LegendBox) + .insert(Side::Right) + // right box side + .with_children(|p| { + p.spawn(( + TextBundle { + text: scales_left_box.x_0.text, + ..default() + }, + Xmin, + )); + }) + .with_children(|p| { + p.spawn(ImageBundle { + style: Style { + size: Size::new(CIRCLE_DIAM * 0.5, CIRCLE_DIAM * 0.5), + ..default() + }, + image: UiImage(box_handle.clone()), + ..default() + }); + }) + .with_children(|p| { + p.spawn(( + TextBundle { + text: scales_left_box.x_n.text, + ..default() + }, + Xmax, + )); + }); + }); + }) // arrow legend .with_children(|p| { p.spawn(NodeBundle { @@ -148,7 +250,7 @@ pub fn spawn_legend(mut commands: Commands, asset_server: Res) { .with_children(|p| { p.spawn(ImageBundle { style: Style { - size: Size::new(CIRCLE_DIAM, CIRCLE_DIAM), + size: Size::new(CIRCLE_DIAM, CIRCLE_DIAM * 0.8), ..default() }, image: UiImage(met_handle), @@ -170,7 +272,8 @@ pub fn spawn_legend(mut commands: Commands, asset_server: Res) { // container for both histogram sides p.spawn(NodeBundle { style: Style { - size: Size::new(ARROW_BUNDLE_WIDTH, HIST_HEIGHT_CHILD * 2.0), + min_size: Size::new(ARROW_BUNDLE_WIDTH, Val::Px(0.0)), + max_size: Size::new(ARROW_BUNDLE_WIDTH, HIST_HEIGHT_CHILD * 2.0), display: Display::Flex, align_items: AlignItems::Center, justify_content: JustifyContent::SpaceBetween, @@ -182,7 +285,7 @@ pub fn spawn_legend(mut commands: Commands, asset_server: Res) { .with_children(|p| { p.spawn(NodeBundle { style: Style { - size: Size::new(ARROW_BUNDLE_WIDTH / 2.2, HIST_HEIGHT_CHILD * 20.), + size: Size::new(ARROW_BUNDLE_WIDTH / 2.2, HIST_HEIGHT_CHILD * 2.0), display: Display::None, align_items: AlignItems::FlexEnd, flex_direction: FlexDirection::Column, @@ -206,7 +309,7 @@ pub fn spawn_legend(mut commands: Commands, asset_server: Res) { .with_children(|p| { p.spawn(ImageBundle { style: Style { - size: Size::new(HIST_HEIGHT_CHILD, HIST_HEIGHT_CHILD), + size: Size::new(HIST_HEIGHT_CHILD * 0.6, HIST_HEIGHT_CHILD), ..default() }, image: UiImage(hist_left_handle), @@ -251,7 +354,7 @@ pub fn spawn_legend(mut commands: Commands, asset_server: Res) { .with_children(|p| { p.spawn(ImageBundle { style: Style { - size: Size::new(HIST_HEIGHT_CHILD, HIST_HEIGHT_CHILD), + size: Size::new(HIST_HEIGHT_CHILD * 0.6, HIST_HEIGHT_CHILD), ..default() }, image: UiImage(hist_right_handle), @@ -268,107 +371,5 @@ pub fn spawn_legend(mut commands: Commands, asset_server: Res) { )); }); }); - }) - // box-point legend - .with_children(|p| { - // container for both box sides - p.spawn(NodeBundle { - style: Style { - size: Size::new(ARROW_BUNDLE_WIDTH, HIST_HEIGHT_CHILD), - display: Display::Flex, - align_items: AlignItems::Center, - justify_content: JustifyContent::SpaceBetween, - ..Default::default() - }, - ..Default::default() - }) - // container for left box side with text tags for axis - .with_children(|p| { - p.spawn(NodeBundle { - style: Style { - size: Size::new(ARROW_BUNDLE_WIDTH / 2.2, HIST_HEIGHT_CHILD), - display: Display::None, - align_items: AlignItems::Center, - justify_content: JustifyContent::SpaceBetween, - ..Default::default() - }, - ..Default::default() - }) - .insert(LegendBox) - .insert(Side::Left) - // left box side - .with_children(|p| { - p.spawn(( - TextBundle { - text: scales_right_box.x_0.text, - ..default() - }, - Xmin, - )); - }) - .with_children(|p| { - p.spawn(ImageBundle { - style: Style { - size: Size::new(CIRCLE_DIAM * 0.8, CIRCLE_DIAM * 0.8), - ..default() - }, - image: UiImage(box_handle.clone()), - ..default() - }); - }) - .with_children(|p| { - p.spawn(( - TextBundle { - text: scales_right_box.x_n.text, - ..default() - }, - Xmax, - )); - }); - }) - // container for right box side with text tags for axis - .with_children(|p| { - p.spawn(NodeBundle { - style: Style { - size: Size::new(ARROW_BUNDLE_WIDTH / 2.2, HIST_HEIGHT_CHILD), - display: Display::None, - align_items: AlignItems::Center, - justify_content: JustifyContent::SpaceBetween, - ..Default::default() - }, - ..Default::default() - }) - .insert(LegendBox) - .insert(Side::Right) - // right box side - .with_children(|p| { - p.spawn(( - TextBundle { - text: scales_left_box.x_0.text, - ..default() - }, - Xmin, - )); - }) - .with_children(|p| { - p.spawn(ImageBundle { - style: Style { - size: Size::new(CIRCLE_DIAM * 0.8, CIRCLE_DIAM * 0.8), - ..default() - }, - image: UiImage(box_handle.clone()), - ..default() - }); - }) - .with_children(|p| { - p.spawn(( - TextBundle { - text: scales_left_box.x_n.text, - ..default() - }, - Xmax, - )); - }); - }); }); }