forge
Explore
Log in

Don't you dare go Hollow

Viewer name chip and quality/stats buttons fade with the control bar (stats buttons stay while the stats card is open)

Browse files at this commit

aca42591a71eef19b7e92961b268e45d93f99ec8Ahmet Kaan GümüşParent: 52eed39
  • feat
    • viewer name chip and quality/stats buttons fade with the control bar (stats buttons stay while the stats card is open)
Show full message
✨ feat: viewer name chip and quality/stats buttons fade with the control bar (stats buttons stay while the stats card is open)
crates/client/src/gui/share_view.rsmodified+3 -1
@@ -588,7 +588,8 @@ impl Yumush {
588 camera_view::tile_label(self, palette, (viewer.user_id, viewer.kind))588 camera_view::tile_label(self, palette, (viewer.user_id, viewer.kind))
589 .absolute()589 .absolute()
590 .left(px(10.))590 .left(px(10.))
591- .top(px(10.)),591+ .top(px(10.))
592+ .when(!bar, |this| this.opacity(0.)),
592 )593 )
593 .children(stats.map(|_| {594 .children(stats.map(|_| {
594 let entity = entity.clone();595 let entity = entity.clone();
@@ -598,6 +599,7 @@ impl Yumush {
598 .absolute()599 .absolute()
599 .right(px(10.))600 .right(px(10.))
600 .top(px(10.))601 .top(px(10.))
602+ .when(!bar && !viewer.stats, |this| this.opacity(0.))
601 .flex()603 .flex()
602 .items_center()604 .items_center()
603 .gap(px(6.))605 .gap(px(6.))