Revert "remove usages of theme::color_alpha"

This reverts commit c0d11be75f.
This commit is contained in:
Nate Butler 2024-11-19 00:24:48 -05:00
parent c0d11be75f
commit a35b73e63e
4 changed files with 16 additions and 5 deletions

View file

@ -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