Add toolbar spacing and alignment improvements (#22771)
Tackles some of the points here: https://github.com/zed-industries/zed/issues/22673. However, this is not doing anything yet to treat misalignment when with odd-number UI font sizes. Here are some screenshots with a theme that makes easier to spot them. It's subtle: | Before | After | |--------|--------| | <img width="1313" alt="Screenshot 2025-01-07 at 10 23 31 AM" src="https://github.com/user-attachments/assets/fdf125a7-ef1c-4368-aea8-579f916b9c34" /> | <img width="1313" alt="Screenshot 2025-01-07 at 10 26 11 AM" src="https://github.com/user-attachments/assets/9728fd47-3c17-4c42-9cf6-11083eb32980" /> | | <img width="1313" alt="Screenshot 2025-01-07 at 10 23 36 AM" src="https://github.com/user-attachments/assets/dc2010e9-4ae4-451c-afd1-6bd13750dc66" /> | <img width="1313" alt="Screenshot 2025-01-07 at 10 26 08 AM" src="https://github.com/user-attachments/assets/a71ef2ef-3ac7-4b0a-8d50-1c3c4f17d5cb" /> | Release Notes: - N/A
This commit is contained in:
parent
6af9e8ded8
commit
677868ba1a
6 changed files with 46 additions and 36 deletions
|
@ -349,7 +349,7 @@ impl Render for QuickActionBar {
|
|||
|
||||
h_flex()
|
||||
.id("quick action bar")
|
||||
.gap(DynamicSpacing::Base06.rems(cx))
|
||||
.gap(DynamicSpacing::Base04.rems(cx))
|
||||
.children(self.render_repl_menu(cx))
|
||||
.children(self.render_toggle_markdown_preview(self.workspace.clone(), cx))
|
||||
.children(search_button)
|
||||
|
|
|
@ -309,6 +309,7 @@ impl QuickActionBar {
|
|||
worktree_id,
|
||||
ButtonLike::new("kernel-selector")
|
||||
.style(ButtonStyle::Subtle)
|
||||
.size(ButtonSize::Compact)
|
||||
.child(
|
||||
h_flex()
|
||||
.w_full()
|
||||
|
@ -357,9 +358,10 @@ impl QuickActionBar {
|
|||
.child(self.render_kernel_selector(cx))
|
||||
.child(
|
||||
IconButton::new("toggle_repl_icon", IconName::ReplNeutral)
|
||||
.size(ButtonSize::Compact)
|
||||
.icon_color(Color::Muted)
|
||||
.style(ButtonStyle::Subtle)
|
||||
.shape(ui::IconButtonShape::Square)
|
||||
.icon_size(ui::IconSize::Small)
|
||||
.icon_color(Color::Muted)
|
||||
.tooltip(move |cx| Tooltip::text(tooltip.clone(), cx))
|
||||
.on_click(|_, cx| {
|
||||
cx.open_url(&format!("{}#installation", ZED_REPL_DOCUMENTATION))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue