Size command palette rows with control text
- Set command labels to the medium control text size.
This commit is contained in:
@@ -368,6 +368,8 @@ impl Render for CommandPaletteState {
|
|||||||
.px_2()
|
.px_2()
|
||||||
.py_1()
|
.py_1()
|
||||||
.min_h(metrics.control_height)
|
.min_h(metrics.control_height)
|
||||||
|
.text_size(metrics.text_size)
|
||||||
|
.line_height(relative(1.0))
|
||||||
.rounded(radius.sm)
|
.rounded(radius.sm)
|
||||||
.when(highlighted, |row| row.bg(colors.muted))
|
.when(highlighted, |row| row.bg(colors.muted))
|
||||||
.when(!highlighted, |row| row.hover(|row| row.bg(colors.muted)))
|
.when(!highlighted, |row| row.hover(|row| row.bg(colors.muted)))
|
||||||
|
|||||||
Reference in New Issue
Block a user