-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Table for permissions doesn't use same colors other tables do #1951
Comments
Hello @MaienM Can you confirm that this is the expected output? I also tested with my skin and the colour is maintained. |
It's an improvement for sure, thanks! Looks like the checks and crosses are still using fixed colors though, and as you mention in your PR there are some other places that do as well. Perhaps it's worth to - as you suggest in the linked comment - keep this issue open as an overview of work that remains to be done to get all colors adjustable from the skin? I did a quick search on the codebase to get an idea of how many more such places there might be, and it looks like there are actually quite a few (67)! There's a few false positives in this list, but at a glance most of these look to be real. I wonder how many of these could be easily converted to use an existing color from the skin, and how many (if any) would need new categories added to the skins.
|
After some digging it seems that ticks and crosses colour from permissions are hardcoded here. Perhaps @derailed or @slimus or someone else could tell if this is worth doing. |
Describe the bug
The colors of the permission table for (clustter)roles don't use the
views.table
/frame.status
colors like other tables do.(The
n/a
in the info for CPU/MEM also seem to not be affected by any color option in the config, but this isn't nearly as bothersome.)To Reproduce
I've made a skin that sets every color option to
black
(using internal/config/styles.go as a guide for what options are available), just to make sure I wasn't just setting changing the wrong option:Henry Ford's personal skin
Steps to reproduce the behavior:
Expected behavior
I would expect the colors of this table to be either affected by the same color options that other tables use, or to have its own set of options.
Screenshots
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: