gpui: Rename rounded_md to rounded_sm (#26228)

This PR renames the `rounded_md` style method to `rounded_sm`.

Follow up to https://github.com/zed-industries/zed/pull/26221, which
freed up the `rounded_sm` name.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-03-06 12:57:31 -05:00 committed by GitHub
parent 9c054f207e
commit aceab76ae4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
49 changed files with 65 additions and 65 deletions

View file

@ -110,7 +110,7 @@ impl ConfigurationView {
.bg(cx.theme().colors().surface_background) .bg(cx.theme().colors().surface_background)
.border_1() .border_1()
.border_color(cx.theme().colors().border_variant) .border_color(cx.theme().colors().border_variant)
.rounded_md() .rounded_sm()
.when(configuration_view.is_none(), |this| { .when(configuration_view.is_none(), |this| {
this.child(div().child(Label::new(format!( this.child(div().child(Label::new(format!(
"No configuration view for {}", "No configuration view for {}",

View file

@ -645,7 +645,7 @@ impl ActiveThread {
Role::System => div().id(("message-container", ix)).py_1().px_2().child( Role::System => div().id(("message-container", ix)).py_1().px_2().child(
v_flex() v_flex()
.bg(colors.editor_background) .bg(colors.editor_background)
.rounded_md() .rounded_sm()
.child(message_content), .child(message_content),
), ),
}; };

View file

@ -134,7 +134,7 @@ impl AssistantConfiguration {
.bg(cx.theme().colors().editor_background) .bg(cx.theme().colors().editor_background)
.border_1() .border_1()
.border_color(cx.theme().colors().border_variant) .border_color(cx.theme().colors().border_variant)
.rounded_md() .rounded_sm()
.map(|parent| match configuration_view { .map(|parent| match configuration_view {
Some(configuration_view) => parent.child(configuration_view), Some(configuration_view) => parent.child(configuration_view),
None => parent.child(div().child(Label::new(format!( None => parent.child(div().child(Label::new(format!(

View file

@ -103,7 +103,7 @@ impl RenderOnce for ContextPill {
.pl_1() .pl_1()
.pb(px(1.)) .pb(px(1.))
.border_1() .border_1()
.rounded_md() .rounded_sm()
.gap_1() .gap_1()
.child(self.icon().size(IconSize::XSmall).color(Color::Muted)); .child(self.icon().size(IconSize::XSmall).color(Color::Muted));

View file

@ -1241,7 +1241,7 @@ impl ContextEditor {
.child("Press") .child("Press")
.child( .child(
h_flex() h_flex()
.rounded_md() .rounded_sm()
.px_1() .px_1()
.mr_0p5() .mr_0p5()
.border_1() .border_1()
@ -2092,7 +2092,7 @@ impl ContextEditor {
.ml(gutter_width) .ml(gutter_width)
.pb_1() .pb_1()
.w(max_width - gutter_width) .w(max_width - gutter_width)
.rounded_md() .rounded_sm()
.border_1() .border_1()
.border_color(theme.colors().border_variant) .border_color(theme.colors().border_variant)
.overflow_hidden() .overflow_hidden()
@ -3422,7 +3422,7 @@ fn invoked_slash_command_fold_placeholder(
.ml_6() .ml_6()
.gap_2() .gap_2()
.bg(cx.theme().colors().surface_background) .bg(cx.theme().colors().surface_background)
.rounded_md() .rounded_sm()
.child(Label::new(format!("/{}", command.name.clone()))) .child(Label::new(format!("/{}", command.name.clone())))
.map(|parent| match &command.status { .map(|parent| match &command.status {
InvokedSlashCommandStatus::Running(_) => { InvokedSlashCommandStatus::Running(_) => {

View file

@ -323,7 +323,7 @@ impl ChatPanel {
.my_0p5() .my_0p5()
.px_0p5() .px_0p5()
.gap_x_1() .gap_x_1()
.rounded_md() .rounded_sm()
.child(Icon::new(IconName::ReplyArrowRight).color(Color::Muted)) .child(Icon::new(IconName::ReplyArrowRight).color(Color::Muted))
.when(reply_to_message.is_none(), |el| { .when(reply_to_message.is_none(), |el| {
el.child( el.child(
@ -358,7 +358,7 @@ impl ChatPanel {
.my_0p5() .my_0p5()
.px_0p5() .px_0p5()
.gap_x_1() .gap_x_1()
.rounded_md() .rounded_sm()
.overflow_hidden() .overflow_hidden()
.hover(|style| style.bg(cx.theme().colors().element_background)) .hover(|style| style.bg(cx.theme().colors().element_background))
.child(Icon::new(IconName::ReplyArrowRight).color(Color::Muted)) .child(Icon::new(IconName::ReplyArrowRight).color(Color::Muted))
@ -476,7 +476,7 @@ impl ChatPanel {
div() div()
.group("") .group("")
.bg(background) .bg(background)
.rounded_md() .rounded_sm()
.overflow_hidden() .overflow_hidden()
.px_1p5() .px_1p5()
.py_0p5() .py_0p5()
@ -563,7 +563,7 @@ impl ChatPanel {
.child( .child(
div() div()
.px_1() .px_1()
.rounded_md() .rounded_sm()
.text_ui_xs(cx) .text_ui_xs(cx)
.bg(cx.theme().colors().background) .bg(cx.theme().colors().background)
.child("New messages"), .child("New messages"),
@ -589,7 +589,7 @@ impl ChatPanel {
div() div()
.w_6() .w_6()
.bg(cx.theme().colors().element_background) .bg(cx.theme().colors().element_background)
.hover(|style| style.bg(cx.theme().colors().element_hover).rounded_md()) .hover(|style| style.bg(cx.theme().colors().element_hover).rounded_sm())
.child(child) .child(child)
} }
@ -604,7 +604,7 @@ impl ChatPanel {
.absolute() .absolute()
.right_2() .right_2()
.overflow_hidden() .overflow_hidden()
.rounded_md() .rounded_sm()
.border_color(cx.theme().colors().element_selected) .border_color(cx.theme().colors().element_selected)
.border_1() .border_1()
.when(!self.has_open_menu(message_id), |el| { .when(!self.has_open_menu(message_id), |el| {

View file

@ -531,7 +531,7 @@ impl Render for MessageEditor {
.px_2() .px_2()
.py_1() .py_1()
.bg(cx.theme().colors().editor_background) .bg(cx.theme().colors().editor_background)
.rounded_md() .rounded_sm()
.child(EditorElement::new( .child(EditorElement::new(
&self.editor, &self.editor,
EditorStyle { EditorStyle {

View file

@ -300,7 +300,7 @@ impl NotificationPanel {
.hover(|style| { .hover(|style| {
style style
.bg(cx.theme().colors().element_selected) .bg(cx.theme().colors().element_selected)
.rounded_md() .rounded_sm()
}) })
.child(Label::new(relative_timestamp).color(Color::Muted)) .child(Label::new(relative_timestamp).color(Color::Muted))
.tooltip(move |_, cx| { .tooltip(move |_, cx| {

View file

@ -108,7 +108,7 @@ impl ComponentPreview {
v_flex() v_flex()
.border_1() .border_1()
.border_color(cx.theme().colors().border) .border_color(cx.theme().colors().border)
.rounded_md() .rounded_sm()
.w_full() .w_full()
.gap_4() .gap_4()
.py_4() .py_4()

View file

@ -122,7 +122,7 @@ impl CopilotCodeVerification {
.p_1() .p_1()
.border_1() .border_1()
.border_muted(cx) .border_muted(cx)
.rounded_md() .rounded_sm()
.cursor_pointer() .cursor_pointer()
.justify_between() .justify_between()
.on_mouse_down(gpui::MouseButton::Left, { .on_mouse_down(gpui::MouseButton::Left, {

View file

@ -973,7 +973,7 @@ fn diagnostic_header_renderer(diagnostic: Diagnostic) -> RenderBlock {
h_flex() h_flex()
.gap_2() .gap_2()
.px_1() .px_1()
.rounded_md() .rounded_sm()
.bg(color.surface_background.opacity(0.5)) .bg(color.surface_background.opacity(0.5))
.map(|stack| { .map(|stack| {
stack.child( stack.child(

View file

@ -2717,7 +2717,7 @@ impl EditorElement {
.flex_basis(Length::Definite(DefiniteLength::Fraction(0.667))) .flex_basis(Length::Definite(DefiniteLength::Fraction(0.667)))
.pl_0p5() .pl_0p5()
.pr_5() .pr_5()
.rounded_md() .rounded_sm()
.shadow_md() .shadow_md()
.border_1() .border_1()
.map(|div| { .map(|div| {

View file

@ -40,7 +40,7 @@ impl RenderOnce for ExtensionCard {
.bg(cx.theme().colors().elevated_surface_background) .bg(cx.theme().colors().elevated_surface_background)
.border_1() .border_1()
.border_color(cx.theme().colors().border) .border_color(cx.theme().colors().border)
.rounded_md() .rounded_sm()
.children(self.children) .children(self.children)
.when(self.overridden_by_dev_extension, |card| { .when(self.overridden_by_dev_extension, |card| {
card.child( card.child(

View file

@ -632,7 +632,7 @@ impl ExtensionsPage {
.px_0p5() .px_0p5()
.border_1() .border_1()
.border_color(cx.theme().colors().border) .border_color(cx.theme().colors().border)
.rounded_md() .rounded_sm()
.child( .child(
Label::new(label).size(LabelSize::XSmall), Label::new(label).size(LabelSize::XSmall),
) )

View file

@ -470,7 +470,7 @@ impl Render for FeedbackModal {
.bg(cx.theme().colors().editor_background) .bg(cx.theme().colors().editor_background)
.p_2() .p_2()
.border_1() .border_1()
.rounded_md() .rounded_sm()
.border_color(cx.theme().colors().border) .border_color(cx.theme().colors().border)
.child(self.feedback_editor.clone()), .child(self.feedback_editor.clone()),
) )
@ -482,7 +482,7 @@ impl Render for FeedbackModal {
.bg(cx.theme().colors().editor_background) .bg(cx.theme().colors().editor_background)
.p_2() .p_2()
.border_1() .border_1()
.rounded_md() .rounded_sm()
.border_color(if self.valid_email_address() { .border_color(if self.valid_email_address() {
cx.theme().colors().border cx.theme().colors().border
} else { } else {

View file

@ -74,7 +74,7 @@ impl Render for AskPassModal {
.px(DynamicSpacing::Base12.rems(cx)) .px(DynamicSpacing::Base12.rems(cx))
.pt(DynamicSpacing::Base08.rems(cx)) .pt(DynamicSpacing::Base08.rems(cx))
.pb(DynamicSpacing::Base04.rems(cx)) .pb(DynamicSpacing::Base04.rems(cx))
.rounded_t_md() .rounded_t_sm()
.w_full() .w_full()
.gap_1p5() .gap_1p5()
.child(Icon::new(IconName::GitBranch).size(IconSize::XSmall)) .child(Icon::new(IconName::GitBranch).size(IconSize::XSmall))

View file

@ -3216,7 +3216,7 @@ impl SplitButton {
impl RenderOnce for SplitButton { impl RenderOnce for SplitButton {
fn render(self, _window: &mut Window, cx: &mut App) -> impl IntoElement { fn render(self, _window: &mut Window, cx: &mut App) -> impl IntoElement {
h_flex() h_flex()
.rounded_md() .rounded_sm()
.border_1() .border_1()
.border_color(cx.theme().colors().text_muted.alpha(0.12)) .border_color(cx.theme().colors().text_muted.alpha(0.12))
.child(self.left) .child(self.left)

View file

@ -402,7 +402,7 @@ impl Render for DataTable {
.overflow_hidden() .overflow_hidden()
.border_1() .border_1()
.border_color(rgb(0xE0E0E0)) .border_color(rgb(0xE0E0E0))
.rounded_md() .rounded_sm()
.child( .child(
div() div()
.flex() .flex()

View file

@ -16,7 +16,7 @@ fn button(text: &str, on_click: impl Fn(&mut Window, &mut App) + 'static) -> imp
.active(|this| this.opacity(0.85)) .active(|this| this.opacity(0.85))
.border_1() .border_1()
.border_color(rgb(0xe0e0e0)) .border_color(rgb(0xe0e0e0))
.rounded_md() .rounded_sm()
.cursor_pointer() .cursor_pointer()
.child(text.to_string()) .child(text.to_string())
.on_click(move |_, window, cx| on_click(window, cx)) .on_click(move |_, window, cx| on_click(window, cx))

View file

@ -1238,7 +1238,7 @@ fn corner_suffixes() -> Vec<CornerStyleSuffix> {
doc_string_suffix: "2px (0.125rem)", doc_string_suffix: "2px (0.125rem)",
}, },
CornerStyleSuffix { CornerStyleSuffix {
suffix: "md", suffix: "sm",
radius_tokens: quote! { rems(0.25) }, radius_tokens: quote! { rems(0.25) },
doc_string_suffix: "4px (0.25rem)", doc_string_suffix: "4px (0.25rem)",
}, },

View file

@ -837,7 +837,7 @@ impl Render for ConfigurationView {
.bg(cx.theme().colors().editor_background) .bg(cx.theme().colors().editor_background)
.border_1() .border_1()
.border_color(cx.theme().colors().border_variant) .border_color(cx.theme().colors().border_variant)
.rounded_md() .rounded_sm()
.child(self.render_api_key_editor(cx)), .child(self.render_api_key_editor(cx)),
) )
.child( .child(

View file

@ -966,7 +966,7 @@ impl Render for ConfigurationView {
.bg(bg_color) .bg(bg_color)
.border_1() .border_1()
.border_color(border_color) .border_color(border_color)
.rounded_md() .rounded_sm()
}; };
if self.load_credentials_task.is_some() { if self.load_credentials_task.is_some() {

View file

@ -636,7 +636,7 @@ impl Render for ConfigurationView {
.bg(cx.theme().colors().editor_background) .bg(cx.theme().colors().editor_background)
.border_1() .border_1()
.border_color(cx.theme().colors().border_variant) .border_color(cx.theme().colors().border_variant)
.rounded_md() .rounded_sm()
.child(self.render_api_key_editor(cx)), .child(self.render_api_key_editor(cx)),
) )
.child( .child(

View file

@ -538,7 +538,7 @@ impl Render for ConfigurationView {
.bg(cx.theme().colors().editor_background) .bg(cx.theme().colors().editor_background)
.border_1() .border_1()
.border_color(cx.theme().colors().border_variant) .border_color(cx.theme().colors().border_variant)
.rounded_md() .rounded_sm()
.child(self.render_api_key_editor(cx)), .child(self.render_api_key_editor(cx)),
) )
.child( .child(

View file

@ -441,7 +441,7 @@ impl Render for ConfigurationView {
div() div()
.bg(inline_code_bg) .bg(inline_code_bg)
.px_1p5() .px_1p5()
.rounded_md() .rounded_sm()
.child(Label::new("lms get qwen2.5-coder-7b")), .child(Label::new("lms get qwen2.5-coder-7b")),
), ),
), ),

View file

@ -602,7 +602,7 @@ impl Render for ConfigurationView {
.bg(cx.theme().colors().editor_background) .bg(cx.theme().colors().editor_background)
.border_1() .border_1()
.border_color(cx.theme().colors().border_variant) .border_color(cx.theme().colors().border_variant)
.rounded_md() .rounded_sm()
.child(self.render_api_key_editor(cx)), .child(self.render_api_key_editor(cx)),
) )
.child( .child(

View file

@ -480,7 +480,7 @@ impl Render for ConfigurationView {
div() div()
.bg(inline_code_bg) .bg(inline_code_bg)
.px_1p5() .px_1p5()
.rounded_md() .rounded_sm()
.child(Label::new("ollama run llama3.2")), .child(Label::new("ollama run llama3.2")),
), ),
), ),

View file

@ -572,7 +572,7 @@ impl Render for ConfigurationView {
.bg(cx.theme().colors().editor_background) .bg(cx.theme().colors().editor_background)
.border_1() .border_1()
.border_color(cx.theme().colors().border_variant) .border_color(cx.theme().colors().border_variant)
.rounded_md() .rounded_sm()
.child(self.render_api_key_editor(cx)), .child(self.render_api_key_editor(cx)),
) )
.child( .child(

View file

@ -690,7 +690,7 @@ impl Element for MarkdownElement {
.flex() .flex()
.border_1() .border_1()
.border_color(cx.theme().colors().border) .border_color(cx.theme().colors().border)
.rounded_md() .rounded_sm()
.when(self.style.table_overflow_x_scroll, |mut table| { .when(self.style.table_overflow_x_scroll, |mut table| {
table.style().restrict_scroll_to_axis = Some(true); table.style().restrict_scroll_to_axis = Some(true);
table.overflow_x_scroll() table.overflow_x_scroll()

View file

@ -398,7 +398,7 @@ fn render_markdown_code_block(
.px_3() .px_3()
.py_3() .py_3()
.bg(cx.code_block_background_color) .bg(cx.code_block_background_color)
.rounded_md() .rounded_sm()
.child(body) .child(body)
.child( .child(
div() div()

View file

@ -326,7 +326,7 @@ impl PickerDelegate for PromptPickerDelegate {
) -> Div { ) -> Div {
h_flex() h_flex()
.bg(cx.theme().colors().editor_background) .bg(cx.theme().colors().editor_background)
.rounded_md() .rounded_sm()
.overflow_hidden() .overflow_hidden()
.flex_none() .flex_none()
.py_1() .py_1()
@ -992,7 +992,7 @@ impl PromptLibrary {
.on_action(cx.listener(Self::move_down_from_title)) .on_action(cx.listener(Self::move_down_from_title))
.border_1() .border_1()
.border_color(transparent_black()) .border_color(transparent_black())
.rounded_md() .rounded_sm()
.group_hover("active-editor-header", |this| { .group_hover("active-editor-header", |this| {
this.border_color( this.border_color(
cx.theme().colors().border_variant, cx.theme().colors().border_variant,

View file

@ -914,7 +914,7 @@ impl RemoteServerProjects {
.child( .child(
h_flex() h_flex()
.bg(theme.colors().editor_background) .bg(theme.colors().editor_background)
.rounded_b_md() .rounded_b_sm()
.w_full() .w_full()
.map(|this| { .map(|this| {
if let Some(ssh_prompt) = ssh_prompt { if let Some(ssh_prompt) = ssh_prompt {

View file

@ -331,7 +331,7 @@ impl RenderOnce for SshConnectionHeader {
.px(DynamicSpacing::Base12.rems(cx)) .px(DynamicSpacing::Base12.rems(cx))
.pt(DynamicSpacing::Base08.rems(cx)) .pt(DynamicSpacing::Base08.rems(cx))
.pb(DynamicSpacing::Base04.rems(cx)) .pb(DynamicSpacing::Base04.rems(cx))
.rounded_t_md() .rounded_t_sm()
.w_full() .w_full()
.gap_1p5() .gap_1p5()
.child(Icon::new(IconName::Server).size(IconSize::XSmall)) .child(Icon::new(IconName::Server).size(IconSize::XSmall))

View file

@ -646,7 +646,7 @@ impl Render for CodeCell {
// .w_full() // .w_full()
// .mt_3() // .mt_3()
// .p_3() // .p_3()
// .rounded_md() // .rounded_sm()
// .bg(cx.theme().colors().editor_background) // .bg(cx.theme().colors().editor_background)
// .border(px(1.)) // .border(px(1.))
// .border_color(cx.theme().colors().border) // .border_color(cx.theme().colors().border)

View file

@ -64,7 +64,7 @@ impl Story {
.p_2() .p_2()
.max_w(rems(36.)) .max_w(rems(36.))
.bg(DefaultColor::Container.hsla(&colors)) .bg(DefaultColor::Container.hsla(&colors))
.rounded_md() .rounded_sm()
.text_sm() .text_sm()
.text_color(DefaultColor::Text.hsla(&colors)) .text_color(DefaultColor::Text.hsla(&colors))
.overflow_hidden() .overflow_hidden()
@ -151,7 +151,7 @@ impl RenderOnce for StoryItem {
.child(Story::label(self.label)) .child(Story::label(self.label))
.child( .child(
div() div()
.rounded_md() .rounded_sm()
.bg(DefaultColor::Background.hsla(&colors)) .bg(DefaultColor::Background.hsla(&colors))
.border_1() .border_1()
.border_color(DefaultColor::Border.hsla(&colors)) .border_color(DefaultColor::Border.hsla(&colors))

View file

@ -500,7 +500,7 @@ impl PickerDelegate for TasksModalDelegate {
.h_8() .h_8()
.p_2() .p_2()
.justify_between() .justify_between()
.rounded_b_md() .rounded_b_sm()
.bg(cx.theme().colors().ghost_element_selected) .bg(cx.theme().colors().ghost_element_selected)
.border_t_1() .border_t_1()
.border_color(cx.theme().colors().border_variant) .border_color(cx.theme().colors().border_variant)

View file

@ -220,7 +220,7 @@ impl TitleBar {
// When the collaborator is not followed, still draw this wrapper div, but leave // When the collaborator is not followed, still draw this wrapper div, but leave
// it transparent, so that it does not shift the layout when following. // it transparent, so that it does not shift the layout when following.
.when_some(leader_selection_color, |div, color| { .when_some(leader_selection_color, |div, color| {
div.rounded_md().bg(color) div.rounded_sm().bg(color)
}) })
.child( .child(
Facepile::empty() Facepile::empty()

View file

@ -152,7 +152,7 @@ impl RenderOnce for AvatarAudioStatusIndicator {
.px(padding_x) .px(padding_x)
.py(px(2.)) .py(px(2.))
.bg(cx.theme().status().error_background) .bg(cx.theme().status().error_background)
.rounded_md() .rounded_sm()
.child( .child(
Icon::new(match self.audio_status { Icon::new(match self.audio_status {
AudioStatus::Muted => IconName::MicMute, AudioStatus::Muted => IconName::MicMute,

View file

@ -509,9 +509,9 @@ impl RenderOnce for ButtonLike {
this.w(width).justify_center().text_center() this.w(width).justify_center().text_center()
}) })
.when_some(self.rounding, |this, rounding| match rounding { .when_some(self.rounding, |this, rounding| match rounding {
ButtonLikeRounding::All => this.rounded_md(), ButtonLikeRounding::All => this.rounded_sm(),
ButtonLikeRounding::Left => this.rounded_l_md(), ButtonLikeRounding::Left => this.rounded_l_sm(),
ButtonLikeRounding::Right => this.rounded_r_md(), ButtonLikeRounding::Right => this.rounded_r_sm(),
}) })
.gap(DynamicSpacing::Base04.rems(cx)) .gap(DynamicSpacing::Base04.rems(cx))
.map(|this| match self.size { .map(|this| match self.size {

View file

@ -82,7 +82,7 @@ impl RenderOnce for ContentGroup {
.when(self.border, |this| { .when(self.border, |this| {
this.border_1().border_color(cx.theme().colors().border) this.border_1().border_color(cx.theme().colors().border)
}) })
.rounded_md() .rounded_sm()
.p_2() .p_2()
.children(self.children) .children(self.children)
} }

View file

@ -110,7 +110,7 @@ impl RenderOnce for DropdownMenuTrigger {
h_flex() h_flex()
.id("dropdown-menu-trigger") .id("dropdown-menu-trigger")
.justify_between() .justify_between()
.rounded_md() .rounded_sm()
.bg(cx.theme().colors().editor_background) .bg(cx.theme().colors().editor_background)
.pl_2() .pl_2()
.pr_1p5() .pr_1p5()

View file

@ -77,7 +77,7 @@ impl RenderOnce for Indicator {
IndicatorKind::Bar => container IndicatorKind::Bar => container
.w_full() .w_full()
.h_1p5() .h_1p5()
.rounded_t_md() .rounded_t_sm()
.bg(self.color.color(cx)), .bg(self.color.color(cx)),
} }
} }

View file

@ -187,7 +187,7 @@ impl RenderOnce for KeybindingHint {
.child( .child(
h_flex() h_flex()
.items_center() .items_center()
.rounded_md() .rounded_sm()
.px_0p5() .px_0p5()
.mr_0p5() .mr_0p5()
.border_1() .border_1()

View file

@ -211,13 +211,13 @@ impl RenderOnce for ListItem {
.when(self.selectable, |this| { .when(self.selectable, |this| {
this.hover(|style| style.bg(cx.theme().colors().ghost_element_hover)) this.hover(|style| style.bg(cx.theme().colors().ghost_element_hover))
.active(|style| style.bg(cx.theme().colors().ghost_element_active)) .active(|style| style.bg(cx.theme().colors().ghost_element_active))
.when(self.outlined, |this| this.rounded_md()) .when(self.outlined, |this| this.rounded_sm())
.when(self.selected, |this| { .when(self.selected, |this| {
this.bg(cx.theme().colors().ghost_element_selected) this.bg(cx.theme().colors().ghost_element_selected)
}) })
}) })
}) })
.when(self.rounded, |this| this.rounded_md()) .when(self.rounded, |this| this.rounded_sm())
.child( .child(
h_flex() h_flex()
.id("inner_list_item") .id("inner_list_item")
@ -260,7 +260,7 @@ impl RenderOnce for ListItem {
.when(self.outlined, |this| { .when(self.outlined, |this| {
this.border_1() this.border_1()
.border_color(cx.theme().colors().border) .border_color(cx.theme().colors().border)
.rounded_md() .rounded_sm()
.overflow_hidden() .overflow_hidden()
}) })
.when_some(self.on_secondary_mouse_down, |this, on_mouse_down| { .when_some(self.on_secondary_mouse_down, |this, on_mouse_down| {
@ -271,7 +271,7 @@ impl RenderOnce for ListItem {
.when_some(self.tooltip, |this, tooltip| this.tooltip(tooltip)) .when_some(self.tooltip, |this, tooltip| this.tooltip(tooltip))
.map(|this| { .map(|this| {
if self.inset { if self.inset {
this.rounded_md() this.rounded_sm()
} else { } else {
// When an item is not inset draw the indent spacing inside of the item // When an item is not inset draw the indent spacing inside of the item
this.ml(self.indent_level as f32 * self.indent_step_size) this.ml(self.indent_level as f32 * self.indent_step_size)

View file

@ -332,7 +332,7 @@ impl RenderOnce for Section {
.child( .child(
v_flex() v_flex()
.w_full() .w_full()
.rounded_md() .rounded_sm()
.border_1() .border_1()
.border_color(cx.theme().colors().border) .border_color(cx.theme().colors().border)
.bg(section_bg) .bg(section_bg)

View file

@ -138,7 +138,7 @@ impl Render for MultibufferHint {
.bg(cx.theme().status().info_background.opacity(0.5)) .bg(cx.theme().status().info_background.opacity(0.5))
.border_1() .border_1()
.border_color(cx.theme().colors().border_variant) .border_color(cx.theme().colors().border_variant)
.rounded_md() .rounded_sm()
.overflow_hidden() .overflow_hidden()
.child( .child(
h_flex() h_flex()

View file

@ -174,7 +174,7 @@ impl Render for MigrationBanner {
.bg(cx.theme().status().info_background.opacity(0.6)) .bg(cx.theme().status().info_background.opacity(0.6))
.border_1() .border_1()
.border_color(cx.theme().colors().border_variant) .border_color(cx.theme().colors().border_variant)
.rounded_md() .rounded_sm()
.overflow_hidden() .overflow_hidden()
.child( .child(
h_flex() h_flex()

View file

@ -83,7 +83,7 @@ impl Render for ZedPredictBanner {
let border_color = cx.theme().colors().editor_foreground.opacity(0.3); let border_color = cx.theme().colors().editor_foreground.opacity(0.3);
let banner = h_flex() let banner = h_flex()
.rounded_md() .rounded_sm()
.border_1() .border_1()
.border_color(border_color) .border_color(border_color)
.child( .child(

View file

@ -248,7 +248,7 @@ impl Render for ZedPredictModal {
.bg(cx.theme().colors().editor_background) .bg(cx.theme().colors().editor_background)
.border_1() .border_1()
.border_color(border_color) .border_color(border_color)
.rounded_md() .rounded_sm()
.font(theme::ThemeSettings::get_global(cx).buffer_font.clone()) .font(theme::ThemeSettings::get_global(cx).buffer_font.clone())
.text_size(TextSize::XSmall.rems(cx)) .text_size(TextSize::XSmall.rems(cx))
.text_color(text_color) .text_color(text_color)
@ -395,7 +395,7 @@ impl Render for ZedPredictModal {
v_flex() v_flex()
.mt_2() .mt_2()
.p_2() .p_2()
.rounded_md() .rounded_sm()
.bg(cx.theme().colors().editor_background.opacity(0.5)) .bg(cx.theme().colors().editor_background.opacity(0.5))
.border_1() .border_1()
.border_color(cx.theme().colors().border_variant) .border_color(cx.theme().colors().border_variant)