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

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -211,13 +211,13 @@ impl RenderOnce for ListItem {
.when(self.selectable, |this| {
this.hover(|style| style.bg(cx.theme().colors().ghost_element_hover))
.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| {
this.bg(cx.theme().colors().ghost_element_selected)
})
})
})
.when(self.rounded, |this| this.rounded_md())
.when(self.rounded, |this| this.rounded_sm())
.child(
h_flex()
.id("inner_list_item")
@ -260,7 +260,7 @@ impl RenderOnce for ListItem {
.when(self.outlined, |this| {
this.border_1()
.border_color(cx.theme().colors().border)
.rounded_md()
.rounded_sm()
.overflow_hidden()
})
.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))
.map(|this| {
if self.inset {
this.rounded_md()
this.rounded_sm()
} else {
// 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)

View file

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