feat: change text of :theme in welcome message
_
This commit is contained in:
parent
871f12b751
commit
b68aa35bf4
3 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue