migrate to gpui-component
This commit is contained in:
@@ -7,8 +7,8 @@ use gpui::{
|
||||
AnyElement, App, ElementId, Entity, FontStyle, FontWeight, HighlightStyle, InteractiveText,
|
||||
IntoElement, SharedString, StrikethroughStyle, StyledText, UnderlineStyle, Window,
|
||||
};
|
||||
use gpui_component::ActiveTheme;
|
||||
use person::PersonRegistry;
|
||||
use theme::ActiveTheme;
|
||||
|
||||
#[allow(clippy::enum_variant_names)]
|
||||
#[allow(dead_code)]
|
||||
@@ -68,8 +68,8 @@ impl RenderedText {
|
||||
}
|
||||
|
||||
pub fn element(&self, id: ElementId, window: &Window, cx: &App) -> AnyElement {
|
||||
let code_background = cx.theme().elevated_surface_background;
|
||||
let color = cx.theme().text_accent;
|
||||
let code_background = cx.theme().secondary;
|
||||
let color = cx.theme().primary_active;
|
||||
|
||||
InteractiveText::new(
|
||||
id,
|
||||
|
||||
Reference in New Issue
Block a user