chore: improve ui consistently #35

Merged
reya merged 5 commits from improve-consistent into master 2026-11-20 12:28:28 +00:00
5 changed files with 8 additions and 8 deletions
Showing only changes of commit b6bfc3fc15 - Show all commits
@@ -223,7 +223,7 @@ impl Render for RepositorySwitcher {
.h(row_height)
.px_3()
.gap_2()
.rounded(theme.radius.control)
.rounded(theme.radius.full)
.text_sm()
.hover(|row| row.bg(theme.colors.muted))
.child(entry.avatar(&list_directory, cx))
+2 -2
View File
@@ -159,7 +159,7 @@ impl Button {
disabled: false,
loading: false,
padded: true,
fully_rounded: false,
fully_rounded: true,
full_width: false,
side: ButtonSide::default(),
tab_stop: true,
@@ -238,7 +238,7 @@ impl Button {
self
}
/// Renders the button as a circle instead of the control radius.
/// Overrides the pill shape; buttons are fully rounded by default.
pub fn fully_rounded(mut self, fully_rounded: bool) -> Self {
self.fully_rounded = fully_rounded;
self
+1 -1
View File
@@ -194,7 +194,7 @@ impl RenderOnce for DropdownMenu {
fn render(self, window: &mut Window, cx: &mut App) -> impl IntoElement {
let theme = cx.theme();
let colors = theme.colors;
let radius = theme.radius.control;
let radius = theme.radius.full;
let ring = colors.ring;
+3 -3
View File
@@ -201,7 +201,7 @@ pub(crate) struct MenuChrome {
primary_foreground: gpui::Hsla,
destructive: gpui::Hsla,
destructive_foreground: gpui::Hsla,
radius_sm: Pixels,
radius_full: Pixels,
}
/// A floating menu of [`MenuItem`] rows anchored below its trigger.
@@ -235,7 +235,7 @@ impl MenuChrome {
primary_foreground: theme.colors.primary_foreground,
destructive: theme.ramps.destructive.base,
destructive_foreground: theme.colors.destructive_foreground,
radius_sm: theme.radius.sm,
radius_full: theme.radius.full,
},
theme.motion.overlay,
)
@@ -965,7 +965,7 @@ fn row_shell(
.px_4()
.text_sm()
.line_height(relative(1.0))
.rounded(chrome.radius_sm)
.rounded(chrome.radius_full)
.map(|row| {
if item.disabled {
row
+1 -1
View File
@@ -229,7 +229,7 @@ where
h_flex()
.id(("segment", index))
.gap_2()
.gap_1()
.justify_center()
.cursor_pointer()
.h_full()