Skip to content

[bug]: UI colours inconsistent across commands for default theme #38

@techygrrrl

Description

@techygrrrl

Description

The colours used in the output are inconsistent across the snitch (or snitch top) and snitch ls commands.

  • snitch / snitch top: This uses the colours I've configured in my terminal (this is preferred). It appears to use Lipgloss and has the desired result.
  • snitch ls: This uses specific, hardcoded colour values (reference)

I found the colour-related code references for each:

  • Code for top command
  • Code for ls command

They appear to be doing very different things, not sure if this is intentional. It would be great if all commands used the colours I've configured in my terminal instead of custom colours.

It also seems like the --theme flag is only supported for top but that looks intentional.

macOS 14.5
go1.25.7

iTerm2 colour configuration, for reference (bright and normal are the same):

Image

Output for command snitch top

Uses the colours I've configured (this is desirable).

Image

Output for command snitch ls

Uses custom colours that I have not configured for my terminal (undesirable).

Image

Other example output using macOS Terminal with Homebrew theme

I've also provided output for a default theme and terminal all macOS users would have. In this output you can see the colours are lighter in the ls command, which changes them from the theme's configuration. It's not as noticeable in this theme as it is in mine.

Image

Steps to Reproduce

  1. Choose a theme (maybe one that's custom, or Homebrew in macOS Terminal)
  2. Run snitch or snitch top to see the desirable colour output
  3. Run snitch ls to see the undesirable colours

Expected Behavior

It's expected that CLI tools use the terminal colours I've configured instead of creating custom colours.

Actual Behavior

Unexpected colour output for colours that are not defined in my terminal theme.

Version

snitch dev commit none built unknown go go1.25.7 os darwin/amd64

Operating System

macOS

OS Version

macOS 14.5

Installation Method

go install

Configuration

n/a

Logs / Terminal Output

n/a

Additional Context

If you wanted to test with my iTerm2 theme you can get it here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions