Scale down status bar items (#3766)
This PR scales down the sizes of items in the status bar. This brings us more in line with Zed1. Release Notes: - N/A
This commit is contained in:
parent
e2c36633ea
commit
3d1e52297e
8 changed files with 48 additions and 18 deletions
|
@ -3,7 +3,7 @@ use gpui::{
|
|||
div, Div, IntoElement, ParentElement, Render, Subscription, View, ViewContext, WeakView,
|
||||
};
|
||||
use std::sync::Arc;
|
||||
use ui::{Button, ButtonCommon, Clickable, Tooltip};
|
||||
use ui::{Button, ButtonCommon, Clickable, LabelSize, Tooltip};
|
||||
use workspace::{item::ItemHandle, StatusItemView, Workspace};
|
||||
|
||||
use crate::LanguageSelector;
|
||||
|
@ -50,6 +50,7 @@ impl Render for ActiveBufferLanguage {
|
|||
|
||||
el.child(
|
||||
Button::new("change-language", active_language_text)
|
||||
.label_size(LabelSize::Small)
|
||||
.on_click(cx.listener(|this, _, cx| {
|
||||
if let Some(workspace) = this.workspace.upgrade() {
|
||||
workspace.update(cx, |workspace, cx| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue