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:
parent
aef25a3bc3
commit
99216acdec
12 changed files with 17 additions and 17 deletions
|
@ -534,7 +534,7 @@ impl CompletionsMenu {
|
||||||
};
|
};
|
||||||
let color_swatch = completion
|
let color_swatch = completion
|
||||||
.color()
|
.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(
|
div().min_w(px(280.)).max_w(px(540.)).child(
|
||||||
ListItem::new(mat.candidate_id)
|
ListItem::new(mat.candidate_id)
|
||||||
|
|
|
@ -1201,7 +1201,7 @@ impl Editor {
|
||||||
.bg(cx.theme().colors().ghost_element_background)
|
.bg(cx.theme().colors().ghost_element_background)
|
||||||
.hover(|style| style.bg(cx.theme().colors().ghost_element_hover))
|
.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))
|
||||||
.rounded_sm()
|
.rounded_xs()
|
||||||
.size_full()
|
.size_full()
|
||||||
.cursor_pointer()
|
.cursor_pointer()
|
||||||
.child("⋯")
|
.child("⋯")
|
||||||
|
|
|
@ -1724,7 +1724,7 @@ impl EditorElement {
|
||||||
.h(line_height)
|
.h(line_height)
|
||||||
.w_full()
|
.w_full()
|
||||||
.px_1()
|
.px_1()
|
||||||
.rounded_sm()
|
.rounded_xs()
|
||||||
.opacity(opacity)
|
.opacity(opacity)
|
||||||
.bg(severity_to_color(&diagnostic_to_render.severity)
|
.bg(severity_to_color(&diagnostic_to_render.severity)
|
||||||
.color(cx)
|
.color(cx)
|
||||||
|
@ -2741,7 +2741,7 @@ impl EditorElement {
|
||||||
header.child(
|
header.child(
|
||||||
div()
|
div()
|
||||||
.hover(|style| style.bg(colors.element_selected))
|
.hover(|style| style.bg(colors.element_selected))
|
||||||
.rounded_sm()
|
.rounded_xs()
|
||||||
.child(
|
.child(
|
||||||
ButtonLike::new("toggle-buffer-fold")
|
ButtonLike::new("toggle-buffer-fold")
|
||||||
.style(ui::ButtonStyle::Transparent)
|
.style(ui::ButtonStyle::Transparent)
|
||||||
|
|
|
@ -69,7 +69,7 @@ struct ImageLoadingExample {}
|
||||||
|
|
||||||
impl ImageLoadingExample {
|
impl ImageLoadingExample {
|
||||||
fn loading_element() -> impl IntoElement {
|
fn loading_element() -> impl IntoElement {
|
||||||
div().size_full().flex_none().p_0p5().rounded_sm().child(
|
div().size_full().flex_none().p_0p5().rounded_xs().child(
|
||||||
div().size_full().with_animation(
|
div().size_full().with_animation(
|
||||||
"loading-bg",
|
"loading-bg",
|
||||||
Animation::new(Duration::from_secs(3))
|
Animation::new(Duration::from_secs(3))
|
||||||
|
@ -89,7 +89,7 @@ impl ImageLoadingExample {
|
||||||
.flex()
|
.flex()
|
||||||
.items_center()
|
.items_center()
|
||||||
.justify_center()
|
.justify_center()
|
||||||
.rounded_sm()
|
.rounded_xs()
|
||||||
.text_sm()
|
.text_sm()
|
||||||
.text_color(fallback_color)
|
.text_color(fallback_color)
|
||||||
.border_1()
|
.border_1()
|
||||||
|
|
|
@ -135,7 +135,7 @@ impl Render for FallbackPromptRenderer {
|
||||||
.border_1()
|
.border_1()
|
||||||
.border_color(opaque_grey(0.2, 0.5))
|
.border_color(opaque_grey(0.2, 0.5))
|
||||||
.mt_1()
|
.mt_1()
|
||||||
.rounded_sm()
|
.rounded_xs()
|
||||||
.cursor_pointer()
|
.cursor_pointer()
|
||||||
.text_sm()
|
.text_sm()
|
||||||
.child(action.clone())
|
.child(action.clone())
|
||||||
|
|
|
@ -1233,7 +1233,7 @@ fn corner_suffixes() -> Vec<CornerStyleSuffix> {
|
||||||
doc_string_suffix: "0px",
|
doc_string_suffix: "0px",
|
||||||
},
|
},
|
||||||
CornerStyleSuffix {
|
CornerStyleSuffix {
|
||||||
suffix: "sm",
|
suffix: "xs",
|
||||||
radius_tokens: quote! { rems(0.125) },
|
radius_tokens: quote! { rems(0.125) },
|
||||||
doc_string_suffix: "2px (0.125rem)",
|
doc_string_suffix: "2px (0.125rem)",
|
||||||
},
|
},
|
||||||
|
|
|
@ -229,7 +229,7 @@ impl MarkdownPreviewView {
|
||||||
s.bg(cx.theme().colors().border_variant)
|
s.bg(cx.theme().colors().border_variant)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.rounded_sm();
|
.rounded_xs();
|
||||||
|
|
||||||
container.child(
|
container.child(
|
||||||
div()
|
div()
|
||||||
|
|
|
@ -397,7 +397,7 @@ impl Render for MarkdownCell {
|
||||||
h_flex()
|
h_flex()
|
||||||
.w_full()
|
.w_full()
|
||||||
.pr_6()
|
.pr_6()
|
||||||
.rounded_sm()
|
.rounded_xs()
|
||||||
.items_start()
|
.items_start()
|
||||||
.gap(DynamicSpacing::Base08.rems(cx))
|
.gap(DynamicSpacing::Base08.rems(cx))
|
||||||
.bg(self.selected_bg_color(window, cx))
|
.bg(self.selected_bg_color(window, cx))
|
||||||
|
@ -572,7 +572,7 @@ impl Render for CodeCell {
|
||||||
h_flex()
|
h_flex()
|
||||||
.w_full()
|
.w_full()
|
||||||
.pr_6()
|
.pr_6()
|
||||||
.rounded_sm()
|
.rounded_xs()
|
||||||
.items_start()
|
.items_start()
|
||||||
.gap(DynamicSpacing::Base08.rems(cx))
|
.gap(DynamicSpacing::Base08.rems(cx))
|
||||||
.bg(self.selected_bg_color(window, cx))
|
.bg(self.selected_bg_color(window, cx))
|
||||||
|
@ -598,7 +598,7 @@ impl Render for CodeCell {
|
||||||
h_flex()
|
h_flex()
|
||||||
.w_full()
|
.w_full()
|
||||||
.pr_6()
|
.pr_6()
|
||||||
.rounded_sm()
|
.rounded_xs()
|
||||||
.items_start()
|
.items_start()
|
||||||
.gap(DynamicSpacing::Base08.rems(cx))
|
.gap(DynamicSpacing::Base08.rems(cx))
|
||||||
.bg(self.selected_bg_color(window, cx))
|
.bg(self.selected_bg_color(window, cx))
|
||||||
|
@ -718,7 +718,7 @@ impl Render for RawCell {
|
||||||
h_flex()
|
h_flex()
|
||||||
.w_full()
|
.w_full()
|
||||||
.pr_2()
|
.pr_2()
|
||||||
.rounded_sm()
|
.rounded_xs()
|
||||||
.items_start()
|
.items_start()
|
||||||
.gap(DynamicSpacing::Base08.rems(cx))
|
.gap(DynamicSpacing::Base08.rems(cx))
|
||||||
.bg(self.selected_bg_color(window, cx))
|
.bg(self.selected_bg_color(window, cx))
|
||||||
|
|
|
@ -120,7 +120,7 @@ impl RenderOnce for KeyBinding {
|
||||||
h_flex()
|
h_flex()
|
||||||
.flex_none()
|
.flex_none()
|
||||||
.py_0p5()
|
.py_0p5()
|
||||||
.rounded_sm()
|
.rounded_xs()
|
||||||
.text_color(cx.theme().colors().text_muted)
|
.text_color(cx.theme().colors().text_muted)
|
||||||
.when(use_text, |el| {
|
.when(use_text, |el| {
|
||||||
el.child(
|
el.child(
|
||||||
|
|
|
@ -75,7 +75,7 @@ impl RenderOnce for NumericStepper {
|
||||||
h_flex()
|
h_flex()
|
||||||
.gap_1()
|
.gap_1()
|
||||||
.px_1()
|
.px_1()
|
||||||
.rounded_sm()
|
.rounded_xs()
|
||||||
.bg(cx.theme().colors().editor_background)
|
.bg(cx.theme().colors().editor_background)
|
||||||
.child(
|
.child(
|
||||||
IconButton::new("decrement", IconName::Dash)
|
IconButton::new("decrement", IconName::Dash)
|
||||||
|
|
|
@ -197,7 +197,7 @@ impl RenderOnce for Checkbox {
|
||||||
.items_center()
|
.items_center()
|
||||||
.m(DynamicSpacing::Base04.px(cx))
|
.m(DynamicSpacing::Base04.px(cx))
|
||||||
.size(DynamicSpacing::Base16.rems(cx))
|
.size(DynamicSpacing::Base16.rems(cx))
|
||||||
.rounded_sm()
|
.rounded_xs()
|
||||||
.bg(bg_color)
|
.bg(bg_color)
|
||||||
.border_1()
|
.border_1()
|
||||||
.border_color(border_color)
|
.border_color(border_color)
|
||||||
|
|
|
@ -199,7 +199,7 @@ impl Render for MigrationBanner {
|
||||||
div()
|
div()
|
||||||
.px_1()
|
.px_1()
|
||||||
.bg(cx.theme().colors().background)
|
.bg(cx.theme().colors().background)
|
||||||
.rounded_sm()
|
.rounded_xs()
|
||||||
.child(
|
.child(
|
||||||
Label::new(backup_file_name)
|
Label::new(backup_file_name)
|
||||||
.buffer_font(cx)
|
.buffer_font(cx)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue