forge
Explore
Log in

Don't you dare go Hollow

Share settings kind tabs sit at the bottom next to the trigger so they stay put when the card height changes

Browse files at this commit

77b4013566b5d693d223cbd1011d0b8b08e6bc7bAhmet Kaan GümüşParent: 0edf6ef
  • ui
    • share settings kind tabs sit at the bottom next to the trigger so they stay put when the card height changes
Show full message
💄 ui: share settings kind tabs sit at the bottom next to the trigger so they stay put when the card height changes
crates/client/src/gui/share_view.rsmodified+7 -7
@@ -621,13 +621,6 @@ fn settings_card(entity: &Entity<Yumush>, yumush: &Yumush, palette: Palette) ->
621621 .border_1()
622622 .border_color(palette.border)
623623 .bg(palette.panel)
624- .child(segmented(
625- [(Kind::Screen, "Screen"), (Kind::Camera, "Camera")],
626- kind,
627- entity,
628- palette,
629- Yumush::set_share_tab,
630- ))
631624 .child(field(
632625 "Resolution",
633626 segmented(
@@ -680,6 +673,13 @@ fn settings_card(entity: &Entity<Yumush>, yumush: &Yumush, palette: Palette) ->
680673 ))
681674 .children(audio_list(entity, yumush, palette))
682675 })
676+ .child(segmented(
677+ [(Kind::Screen, "Screen"), (Kind::Camera, "Camera")],
678+ kind,
679+ entity,
680+ palette,
681+ Yumush::set_share_tab,
682+ ))
683683 }
684684
685685 fn share_limits(source: Option<Source>) -> (Vec<Resolution>, Vec<Fps>) {