Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Colorcheme changes when switching account or logging out #268

Closed
1 of 5 tasks
Kruhlmann opened this issue Apr 9, 2020 · 5 comments
Closed
1 of 5 tasks

Colorcheme changes when switching account or logging out #268

Kruhlmann opened this issue Apr 9, 2020 · 5 comments
Labels
bug Something isn't working

Comments

@Kruhlmann
Copy link

Kruhlmann commented Apr 9, 2020

How have you installed cordless

  • Arch User Repository
  • Snap
  • scoop
  • brew
  • go get

What happened

Colorscheme resets when switching account.

image
image

How do you reproduce this bug

Add an additional cordless account and switch to it with account switch <name>. This also happens when the user triggers account logout.

I'm not sure if this is a problem with cordless or my terminal emulator (termite). I noticed it while fixing an unrelated issue and verified, that it also exists in the upstream version.

Error output

How to fix

System information

Key Value
OS Manjaro Linux
Architechture x86_64
@Bios-Marcel Bios-Marcel added the bug Something isn't working label Apr 10, 2020
@Bios-Marcel
Copy link
Owner

Is this issue still relevant? I can't reproduce this, I use termite as well.

@Kruhlmann
Copy link
Author

Kruhlmann commented Aug 31, 2020

I was able to reproduce this:

account add tmp tmp
account switch tmp

Prior to the switch cordless used my default terminal colors, afterwards it swapped to the same black/white look as shown in the second screenshot of the issue description.

@Bios-Marcel
Copy link
Owner

While I was able to reproduce this, I've now tried figuring this out a couple of times and I couldn't manage. Do you perhaps have an idea why this happens?

@Bios-Marcel
Copy link
Owner

Actually, I might've come a step farther. It seems that initially the colors are translated to your terminals color palete, however the second time a terminal screen is created, it uses the colors as is. In my case for example, PrimitiveBackgroundColor is 0 in both situations (black), but is initially interpreted as a gray tone.

@Bios-Marcel
Copy link
Owner

This appears to be a tcell bug, I've created an issue over there: gdamore/tcell#397

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants