Improve tooltip with keybinding styling

This commit is contained in:
Nate Butler 2023-12-15 11:07:17 -05:00
parent 2b4f779918
commit 50a44dd8ba

View file

@ -78,13 +78,13 @@ impl Render for Tooltip {
v_stack()
.elevation_2(cx)
.font(ui_font)
.text_ui_sm()
.text_ui()
.text_color(cx.theme().colors().text)
.py_1()
.px_2()
.child(
h_stack()
.gap_2()
.gap_4()
.child(self.title.clone())
.when_some(self.key_binding.clone(), |this, key_binding| {
this.justify_between().child(key_binding)