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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user