gpui: Rename rounded_sm to rounded_xs (#26221)

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

This will allow us to add an additional step in the scale.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-03-06 11:08:19 -05:00 committed by GitHub
parent aef25a3bc3
commit 99216acdec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 17 additions and 17 deletions

View file

@ -534,7 +534,7 @@ impl CompletionsMenu {
};
let color_swatch = completion
.color()
.map(|color| div().size_4().bg(color).rounded_sm());
.map(|color| div().size_4().bg(color).rounded_xs());
div().min_w(px(280.)).max_w(px(540.)).child(
ListItem::new(mat.candidate_id)

View file

@ -1201,7 +1201,7 @@ impl Editor {
.bg(cx.theme().colors().ghost_element_background)
.hover(|style| style.bg(cx.theme().colors().ghost_element_hover))
.active(|style| style.bg(cx.theme().colors().ghost_element_active))
.rounded_sm()
.rounded_xs()
.size_full()
.cursor_pointer()
.child("")

View file

@ -1724,7 +1724,7 @@ impl EditorElement {
.h(line_height)
.w_full()
.px_1()
.rounded_sm()
.rounded_xs()
.opacity(opacity)
.bg(severity_to_color(&diagnostic_to_render.severity)
.color(cx)
@ -2741,7 +2741,7 @@ impl EditorElement {
header.child(
div()
.hover(|style| style.bg(colors.element_selected))
.rounded_sm()
.rounded_xs()
.child(
ButtonLike::new("toggle-buffer-fold")
.style(ui::ButtonStyle::Transparent)