wip
This commit is contained in:
@@ -16,9 +16,9 @@ use crate::{IconName, Selectable, Sizable, Size, StyleSized, StyledExt, h_flex,
|
||||
/// The background of an input frame, which reads muted while the input is disabled.
|
||||
fn input_background(disabled: bool, cx: &App) -> Hsla {
|
||||
if disabled {
|
||||
cx.theme().surface_background
|
||||
cx.theme().shell
|
||||
} else {
|
||||
cx.theme().elevated_surface_background
|
||||
cx.theme().input
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,9 +32,9 @@ fn input_editor_style(cx: &App) -> InputEditorStyle {
|
||||
InputEditorStyle {
|
||||
foreground: theme.text,
|
||||
muted_foreground: theme.text_muted,
|
||||
background: theme.elevated_surface_background,
|
||||
background: theme.input,
|
||||
border: theme.border,
|
||||
selection: theme.selection,
|
||||
selection: theme.accent.selection,
|
||||
caret: theme.cursor,
|
||||
..InputEditorStyle::default()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user