From f50b51bdad4333f94a65a6e3eea45026a9b246d9 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Fri, 10 Mar 2023 17:37:45 +0100 Subject: [PATCH] Adjust styling --- crates/theme/src/theme.rs | 2 +- crates/zed/src/zed.rs | 2 +- styles/src/styleTree/statusBar.ts | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/theme/src/theme.rs b/crates/theme/src/theme.rs index aa379bf838818121ece93ccbc639746d8b9aaa64..87504d6cd98423424d6994e7f06d6ef1f2e666ed 100644 --- a/crates/theme/src/theme.rs +++ b/crates/theme/src/theme.rs @@ -277,7 +277,7 @@ pub struct StatusBar { pub height: f32, pub item_spacing: f32, pub cursor_position: TextStyle, - pub active_language: Interactive, + pub active_language: Interactive, pub auto_update_progress_message: TextStyle, pub auto_update_done_message: TextStyle, pub lsp_status: Interactive, diff --git a/crates/zed/src/zed.rs b/crates/zed/src/zed.rs index 664833de1e257a948a11b3f4b48578f6d42610ab..26989102e4221dcca3fdcef447271d4b232a7feb 100644 --- a/crates/zed/src/zed.rs +++ b/crates/zed/src/zed.rs @@ -346,8 +346,8 @@ pub fn initialize_workspace( status_bar.add_left_item(feedback_button, cx); status_bar.add_left_item(diagnostic_summary, cx); status_bar.add_left_item(activity_indicator, cx); - status_bar.add_right_item(cursor_position, cx); status_bar.add_right_item(active_buffer_language, cx); + status_bar.add_right_item(cursor_position, cx); }); auto_update::notify_of_any_new_update(cx.weak_handle(), cx); diff --git a/styles/src/styleTree/statusBar.ts b/styles/src/styleTree/statusBar.ts index de33f3d1d5361286557b5e7c8415782f8d36784f..e5c07c07c2b1598a04e31ec34b20fd7a16afc9fe 100644 --- a/styles/src/styleTree/statusBar.ts +++ b/styles/src/styleTree/statusBar.ts @@ -26,6 +26,7 @@ export default function statusBar(colorScheme: ColorScheme) { border: border(layer, { top: true, overlay: true }), cursorPosition: text(layer, "sans", "variant"), activeLanguage: { + padding: { left: 6, right: 6 }, ...text(layer, "sans", "variant"), hover: { ...text(layer, "sans", "on")