Skip to content

Preview weird background color problem #482

@fqidz

Description

@fqidz

The background color looks different in the dashboard. I am using alacritty. I have rose-pine theme installed in both nvim and alacritty. The default background color for my terminal is the same with nvim's background color, so there should be no difference. What is happening here?

image

config:

require('dashboard').setup {
  theme = 'hyper',
  shortcut_type = 'number',
  preview = {
    command = 'cat',
    file_path = "~/.config/nvim/logo.txt",
    file_width = 54,
    file_height = 12,
  },
  config = {
    shortcut = {
      {
        icon = '',
        desc = 'files',
        group = 'Label',
        action = 'Telescope find_files',
        key = 'f',
      },
      {
        desc = ' nixconfig',
        group = 'DiagnosticHint',
        action = 'Telescope find_files search_dirs=/etc/nixos/',
        key = 'n',
      },
      {
        desc = ' dotfiles',
        group = 'Number',
        action = 'Telescope find_files search_dirs=~/.config/',
        -- action = 'Telescope find_files cwd=~/.config/',
        key = 'c',
      },
    },
    footer = {},
  },
}

logo.txt:

�[1;49m





�[1;35m███╗   ██╗ ███████╗ ██████╗  ██╗   ██╗ ██╗ ███╗   ███╗
████╗  ██║ ██╔════╝██╔═══██╗ ██║   ██║ ██║ ████╗ ████║
██╔██╗ ██║ █████╗  ██║   ██║ ██║   ██║ ██║ ██╔████╔██║
██║╚██╗██║ ██╔══╝  ██║   ██║ ╚██╗ ██╔╝ ██║ ██║╚██╔╝██║
██║ ╚████║ ███████╗╚██████╔╝  ╚████╔╝  ██║ ██║ ╚═╝ ██║
╚═╝  ╚═══╝ ╚══════╝ ╚═════╝    ╚═══╝   ╚═╝ ╚═╝     ╚═╝

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions