From b68aa35bf4af8d80276e092558123732784c497e Mon Sep 17 00:00:00 2001 From: Nik Revenco <154856872+NikitaRevenco@users.noreply.github.com> Date: Wed, 26 Mar 2025 15:17:55 +0000 Subject: [PATCH] feat: change text of :theme in welcome message _ --- helix-term/src/ui/editor.rs | 6 +++--- helix-view/src/document.rs | 2 +- helix-view/src/editor.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 353311caf..53f809319 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -122,7 +122,7 @@ impl EditorView { [Left] vec![ "type ".into(), Span::styled(":theme", theme.get("markup.raw")), - " to choose a color scheme".into(), + " to choose a theme".into(), ], [Left] vec![ "type ".into(), @@ -170,10 +170,10 @@ impl EditorView { // towards the end it is low. Therefore to achieve an optical balance we must // do a little offset // - // this padding of 4 is not cruicial though, so if we can't fit it on the screen + // this padding of 3 is not cruicial though, so if we can't fit it on the screen // we just decrease it until it is 0. Once that happens, if it still overflows // we don't want to draw the welcome screen. - let padding = 4.min(max_padding.max(0) as u16); + let padding = 3.min(max_padding.max(0) as u16); let x_start_left = padding + view.area.x + (view.area.width / 2).saturating_sub(longest_left as u16 / 2); diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs index 3402335c8..a9a78d4fa 100644 --- a/helix-view/src/document.rs +++ b/helix-view/src/document.rs @@ -208,7 +208,7 @@ pub struct Document { // large refactor that would make `&mut Editor` available on the `DocumentDidChange` event. pub color_swatch_controller: TaskController, - /// Whether to render the dashboard when opening the document + /// Whether to render the welcome screen when opening the document pub is_welcome: bool, } diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index 408f39fce..d3a3c6dc4 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -247,7 +247,7 @@ where #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] #[serde(rename_all = "kebab-case", default, deny_unknown_fields)] pub struct Config { - /// Whether to enable the dashboard + /// Whether to enable the welcome screen pub welcome_screen: bool, /// Padding to keep between the edge of the screen and the cursor when scrolling. Defaults to 5. pub scrolloff: usize,