Skip to content

[info] flyline light variant #934

Closed

Description

@georglauterbach

As promised in #852, here is some feedback regarding flyline with light terminal colors. The following images provide a comparison. The left side shows the defaults, the right side shows my adjustments:

Note

The color of the terminal is sometimes dimmed because of a different mouse focus (this is a thing that my Wayland compositor does).

Image Image Image
flyline_cursor_light_issues.mp4

My Adjustments

I am running a fork of flyline that affects the fade effect for the cursor. No other adjustments were added. I am configuring flyline like this:

eval "$(dircolors || :)" # LS_COLORS for coloring completions

__HERMES__FLYLINE_BASE_COLORS=(
  recognised-command='green'
  unrecognised-command='bold red'
  single-quoted-text='yellow'
  double-quoted-text='yellow'
  inline-suggestion='cyan'
  key-sequence-style='bold cyan'
  opening-and-closing-pair='magenta'
  rainbow-bracket1='yellow'
  rainbow-bracket2='green'
  rainbow-bracket3='cyan'
  rainbow-bracket4='blue'
)

function __hermes__set_theme_flyline() {
  __is_command flyline || return 0
  if [[ ${HERMES_THEME_VARIANT:?} == light ]]; then
    flyline set-style --default-theme "${HERMES_THEME_VARIANT}" \
      "${__HERMES__FLYLINE_BASE_COLORS[@]}" normal-text=black secondary-text=
  elif [[ ${HERMES_THEME_VARIANT} == dark ]]; then
    flyline set-style --default-theme "${HERMES_THEME_VARIANT}" \
      "${__HERMES__FLYLINE_BASE_COLORS[@]}" normal-text= secondary-text=white
  fi
  flyline set-cursor --backend flyline --effect fade --style "${__HERMES__COLOR_BLUE}"
}

Observations

My custom theme is not terribly different from the base. The base looks decent and is very usable out of the box. I noticed that the colors for the suggestions field seem to be "inverted in term of priority", i.e. what is most important, the suggestions, have less contrast than the box around the suggestions (which IMO is less important). This is only a minor inconvenience, though, and can easily be adjusted. Moreover, I know that handling of colors in light terminal themes is not streamlined, and it could be that with another theme, the default looks different (for example when you enable or disable rendering bold as bright).

A real issue IMO is the Cursor fade effect. The current implementations simply adjusts the RGB values by multiplication down to 0.2, which on a light theme does not work. Hence, I have patched the fade and I will propose a patch once #931 and #933 are resolved.

Activity

  1. georglauterbach commented on Aug 16, 2026

    @georglauterbach
    ContributorAuthor

    @HalFrgrd I have proposed a patch for the fading issue on light themes in #939

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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