[GH-ISSUE #130] How to set foreground color when terminal background is transparent? #106

Closed
opened 2026-03-03 01:19:52 +03:00 by kerem · 6 comments
Owner

Originally created by @Bellavene on GitHub (Dec 27, 2022).
Original GitHub issue: https://github.com/d99kris/nmail/issues/130

Originally assigned to: @d99kris on GitHub.

color_regular_text_fg stays white when color_regular_text_bg is none :(
This is needed when terminal background is transparent.

Originally created by @Bellavene on GitHub (Dec 27, 2022). Original GitHub issue: https://github.com/d99kris/nmail/issues/130 Originally assigned to: @d99kris on GitHub. color_regular_text_fg stays white when color_regular_text_bg is none :( This is needed when terminal background is transparent.
kerem 2026-03-03 01:19:52 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@Bellavene commented on GitHub (Dec 27, 2022):

Also, would be Groß if there will be an option to add senders to groups to whom you could assign colors. Like in ranger – colors differs by file type.

https://user-images.githubusercontent.com/77557804/209658250-b2b07163-1324-4dc0-af2f-f60480b8720c.mov

<!-- gh-comment-id:1365824014 --> @Bellavene commented on GitHub (Dec 27, 2022): Also, would be Groß if there will be an option to add senders to groups to whom you could assign colors. Like in ranger – colors differs by file type. https://user-images.githubusercontent.com/77557804/209658250-b2b07163-1324-4dc0-af2f-f60480b8720c.mov
Author
Owner

@Bellavene commented on GitHub (Dec 27, 2022):

Also, for some strange reason, automatic profile switching in iTerm isn't working with nmail, but works great with nchat. "Job name" as I discovered is nmail (cat)

<!-- gh-comment-id:1365911225 --> @Bellavene commented on GitHub (Dec 27, 2022): Also, for some strange reason, automatic profile switching in iTerm isn't working with nmail, but works great with nchat. "Job name" as I discovered is `nmail (cat)`
Author
Owner

@d99kris commented on GitHub (Jan 11, 2023):

color_regular_text_fg stays white when color_regular_text_bg is none :(
This is needed when terminal background is transparent.

Could you try setting bg to black and see if it works? I believe black is mapped to default background in the terminal, at least this works in macOS Terminal. Example:

color_regular_text_bg=black
color_regular_text_fg=0x5588bb

Example screenshot on macOS:
Screenshot1

If this doesn't work, please let me know OS/distro and terminal used, and I'll check.

<!-- gh-comment-id:1378748441 --> @d99kris commented on GitHub (Jan 11, 2023): > color_regular_text_fg stays white when color_regular_text_bg is none :( > This is needed when terminal background is transparent. Could you try setting `bg` to `black` and see if it works? I believe black is mapped to default background in the terminal, at least this works in macOS Terminal. Example: ``` color_regular_text_bg=black color_regular_text_fg=0x5588bb ``` Example screenshot on macOS: <img width="406" alt="Screenshot1" src="https://user-images.githubusercontent.com/786150/211817063-7485a720-32d3-4744-95cc-fe6dea62dc03.png"> If this doesn't work, please let me know OS/distro and terminal used, and I'll check.
Author
Owner

@d99kris commented on GitHub (Jan 11, 2023):

Also, would be Groß if there will be an option to add senders to groups to whom you could assign colors. Like in ranger – colors differs by file type.

The question of more color customization has come up before, but I'm somewhat hesitant towards it. Anyway, please feel free to report a separate feature request for this, and we can gauge the interest among other users, and perhaps I'll need to reconsider.

<!-- gh-comment-id:1378755547 --> @d99kris commented on GitHub (Jan 11, 2023): > Also, would be Groß if there will be an option to add senders to groups to whom you could assign colors. Like in ranger – colors differs by file type. The question of more color customization has come up before, but I'm somewhat hesitant towards it. Anyway, please feel free to report a separate [feature request](https://github.com/d99kris/nmail/discussions/new?category=ideas) for this, and we can gauge the interest among other users, and perhaps I'll need to reconsider.
Author
Owner

@d99kris commented on GitHub (Jan 11, 2023):

Also, for some strange reason, automatic profile switching in iTerm isn't working with nmail, but works great with nchat. "Job name" as I discovered is nmail (cat)

Ideally I prefer we use one Github issue per question / bug / feature request in this project, but anyway - how about if you edit ~/.nmail/ui.conf and set terminal_title to something, I personally often set it to the email address of the account, example:

terminal_title=d99kris@example.com

Edit: If you still face issues regarding this, please report a separate issue for this, so we can keep this first Github issue to be about setting foreground color on a terminal background with opacity.

<!-- gh-comment-id:1378761736 --> @d99kris commented on GitHub (Jan 11, 2023): > Also, for some strange reason, automatic profile switching in iTerm isn't working with nmail, but works great with nchat. "Job name" as I discovered is nmail (cat) Ideally I prefer we use one Github issue per question / bug / feature request in this project, but anyway - how about if you edit `~/.nmail/ui.conf` and set `terminal_title` to something, I personally often set it to the email address of the account, example: ``` terminal_title=d99kris@example.com ``` **Edit:** If you still face issues regarding this, please report a separate issue for this, so we can keep this first Github issue to be about setting foreground color on a terminal background with opacity.
Author
Owner

@d99kris commented on GitHub (Jan 15, 2023):

Moving open issues with question label to discussions.

<!-- gh-comment-id:1383092091 --> @d99kris commented on GitHub (Jan 15, 2023): Moving open issues with `question` label to discussions.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nmail#106
No description provided.