Improve tooltip with keybinding styling
This commit is contained in:
parent
2b4f779918
commit
50a44dd8ba
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue