Revert "remove usages of theme::color_alpha
"
This reverts commit c0d11be75f
.
This commit is contained in:
parent
c0d11be75f
commit
a35b73e63e
4 changed files with 16 additions and 5 deletions
|
@ -17,7 +17,7 @@ use language::{Outline, OutlineItem};
|
|||
use ordered_float::OrderedFloat;
|
||||
use picker::{Picker, PickerDelegate};
|
||||
use settings::Settings;
|
||||
use theme::{ActiveTheme, ThemeSettings};
|
||||
use theme::{color_alpha, ActiveTheme, ThemeSettings};
|
||||
use ui::{prelude::*, ListItem, ListItemSpacing};
|
||||
use util::ResultExt;
|
||||
use workspace::{DismissDecision, ModalView};
|
||||
|
@ -297,7 +297,7 @@ pub fn render_item<T>(
|
|||
cx: &AppContext,
|
||||
) -> StyledText {
|
||||
let highlight_style = HighlightStyle {
|
||||
background_color: Some(cx.theme().colors().text_accent.opacity(0.3)),
|
||||
background_color: Some(color_alpha(cx.theme().colors().text_accent, 0.3)),
|
||||
..Default::default()
|
||||
};
|
||||
let custom_highlights = match_ranges
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue