Fix up toggles

This commit is contained in:
Piotr Osiewicz 2023-06-16 14:30:16 +02:00 committed by Mikayla Maki
parent ae53c3e623
commit 60b4054b0a
No known key found for this signature in database
16 changed files with 1670 additions and 1620 deletions

View file

@ -326,7 +326,7 @@ impl View for ActivityIndicator {
let mut element = MouseEventHandler::<Self, _>::new(0, cx, |state, cx| {
let theme = &theme::current(cx).workspace.status_bar.lsp_status;
let style = if state.hovered() && on_click.is_some() {
theme.hover.as_ref().unwrap_or(&theme.default)
theme.hovered.as_ref().unwrap_or(&theme.default)
} else {
&theme.default
};