Tweak LSP log menu styling
This commit is contained in:
parent
afaff7f9a9
commit
908de23b72
3 changed files with 11 additions and 6 deletions
|
@ -659,16 +659,17 @@ impl LspLogToolbarItemView {
|
||||||
)
|
)
|
||||||
.contained()
|
.contained()
|
||||||
.with_style(style.container)
|
.with_style(style.container)
|
||||||
.aligned()
|
.constrained()
|
||||||
.left()
|
.with_height(theme.lsp_log_menu.row_height)
|
||||||
})
|
})
|
||||||
.with_child(
|
.with_child(
|
||||||
MouseEventHandler::<ActivateLog, _>::new(id.0, cx, move |state, _| {
|
MouseEventHandler::<ActivateLog, _>::new(id.0, cx, move |state, _| {
|
||||||
let style = theme.lsp_log_menu.item.style_for(state, logs_selected);
|
let style = theme.lsp_log_menu.item.style_for(state, logs_selected);
|
||||||
Flex::row()
|
Label::new(SERVER_LOGS, style.text.clone())
|
||||||
.with_child(Label::new(SERVER_LOGS, style.text.clone()).aligned().left())
|
|
||||||
.contained()
|
.contained()
|
||||||
.with_style(style.container)
|
.with_style(style.container)
|
||||||
|
.constrained()
|
||||||
|
.with_height(theme.lsp_log_menu.row_height)
|
||||||
})
|
})
|
||||||
.with_cursor_style(CursorStyle::PointingHand)
|
.with_cursor_style(CursorStyle::PointingHand)
|
||||||
.on_click(MouseButton::Left, move |_, view, cx| {
|
.on_click(MouseButton::Left, move |_, view, cx| {
|
||||||
|
@ -681,8 +682,8 @@ impl LspLogToolbarItemView {
|
||||||
Flex::row()
|
Flex::row()
|
||||||
.with_child(
|
.with_child(
|
||||||
Label::new(RPC_MESSAGES, style.text.clone())
|
Label::new(RPC_MESSAGES, style.text.clone())
|
||||||
.aligned()
|
.constrained()
|
||||||
.left(),
|
.with_height(theme.lsp_log_menu.row_height),
|
||||||
)
|
)
|
||||||
.with_child(
|
.with_child(
|
||||||
ui::checkbox_with_label::<Self, _, Self, _>(
|
ui::checkbox_with_label::<Self, _, Self, _>(
|
||||||
|
@ -700,6 +701,8 @@ impl LspLogToolbarItemView {
|
||||||
.align_children_center()
|
.align_children_center()
|
||||||
.contained()
|
.contained()
|
||||||
.with_style(style.container)
|
.with_style(style.container)
|
||||||
|
.constrained()
|
||||||
|
.with_height(theme.lsp_log_menu.row_height)
|
||||||
})
|
})
|
||||||
.with_cursor_style(CursorStyle::PointingHand)
|
.with_cursor_style(CursorStyle::PointingHand)
|
||||||
.on_click(MouseButton::Left, move |_, view, cx| {
|
.on_click(MouseButton::Left, move |_, view, cx| {
|
||||||
|
|
|
@ -252,6 +252,7 @@ pub struct LspLogMenu {
|
||||||
pub header: Interactive<ContainedText>,
|
pub header: Interactive<ContainedText>,
|
||||||
pub server: ContainedText,
|
pub server: ContainedText,
|
||||||
pub item: Interactive<ContainedText>,
|
pub item: Interactive<ContainedText>,
|
||||||
|
pub row_height: f32,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Deserialize, Default)]
|
#[derive(Clone, Deserialize, Default)]
|
||||||
|
|
|
@ -5,6 +5,7 @@ export default function contactsPanel(colorScheme: ColorScheme) {
|
||||||
let layer = colorScheme.middle
|
let layer = colorScheme.middle
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
rowHeight: 30,
|
||||||
background: background(layer),
|
background: background(layer),
|
||||||
border: border(layer),
|
border: border(layer),
|
||||||
shadow: colorScheme.popoverShadow,
|
shadow: colorScheme.popoverShadow,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue