Skip to content
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

Show toolbox & distrobox containers different in containers listing #1409

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

subhoghoshX
Copy link
Member

@subhoghoshX subhoghoshX commented Sep 14, 2023

fixes #865

image


Show toolbox & distrobox containers different in containers listing

image

@subhoghoshX
Copy link
Member Author

I wonder whether gray looks better:

image

@garrett
Copy link
Member

garrett commented Sep 14, 2023

Yeah, blue is probably too in-your-face. Grey works, but might be too understated. I wonder if any other color could work. (Green, orange, red are all probably out, as they often mean "good", "problem", and "error".)

Perhaps a light purple or light cyan?
https://www.patternfly.org/design-foundations/colors#color-palette

Can you also add distrobox support? It should be the same, but say "distrobox" instead of "toolbox". Thanks!

Copy link
Member

@jelly jelly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but needs a design review from @garrett

@jelly
Copy link
Member

jelly commented Sep 14, 2023

Yeah, blue is probably too in-your-face. Grey works, but might be too understated. I wonder if any other color could work. (Green, orange, red are all probably out, as they often mean "good", "problem", and "error".)

Perhaps a light purple or light cyan? https://www.patternfly.org/design-foundations/colors#color-palette

Can you also add distrobox support? It should be the same, but say "distrobox" instead of "toolbox". Thanks!

Seems it uses a different label? https://github.com/89luca89/distrobox/blob/3099d53a71ea5511eec23e83c33e25c032729e4f/distrobox-create#L579

@jelly
Copy link
Member

jelly commented Sep 14, 2023

A test would be great, just create a container with a label which matches toolbox's behaviour

@subhoghoshX subhoghoshX force-pushed the toolbox-containers branch 2 times, most recently from e0e65ca to 8b0ff42 Compare September 21, 2023 12:21
@subhoghoshX
Copy link
Member Author

Now it looks like this (I went with purple for toolbox and gold for distrobox, which is very loosely based on their brand colors):

image

@garrett
Copy link
Member

garrett commented Sep 21, 2023

Previously, I was thinking that we'd just use one color, because how many people use both toolbox and distrobox? I mean, I do, and perhaps others on the team as well... but we're probably not that ordinary. 😉

But this works for me.

My one concern is the contrast ratio for the colors, primarily the gold color.

If I plug the colors into https://accessible-colors.com/ — I get this:

image

Which means we either need to make the background or foreground darker to have the correct color contrast ratio, so people can more easily read it.

The purple also has the same problem, but not as much:

image

We'll want to stick with the PF color palette (extended), so moving a shade down for the background colors of each would work... Or moving the shade up and flipping the text to dark instead of light.

(At the size and weight do matter, but not at this size or smaller, which this is. For the purple to pass without color changes, it'd have to be 18px and bold... which we definitely don't want to do here.)

https://www.patternfly.org/design-foundations/colors/#color-palette

@subhoghoshX subhoghoshX force-pushed the toolbox-containers branch 2 times, most recently from cc2a7c0 to 4c0c569 Compare September 21, 2023 15:11
@subhoghoshX
Copy link
Member Author

Fixed the contrast issues @garrett, new look:

image

In dark mode it looks good:

image

PS: Using https://accessible-colors.com/ the image badge doesn't seem to have a good contrast.

@subhoghoshX
Copy link
Member Author

umm not sure why the tests failed...

@garrett
Copy link
Member

garrett commented Sep 21, 2023

Ah! I was working on color choices and used the hex on that website... and made this:

image

@subhoghoshX
Copy link
Member Author

Ah! I was working on color choices and used the hex on that website... and made this:

image

Thanks @garrett. So which one should we go for? Or use both? second one for light theme and first one for dark theme?

@garrett
Copy link
Member

garrett commented Sep 25, 2023

I like the first set overall (dark on light), but if we have to do custom CSS anyway for assigning the colors, then we could do the light/dark, with the first set as light and second set as dark.

@subhoghoshX subhoghoshX changed the title enhance: show toolbox containers different in containers listing Show toolbox containers different in containers listing Sep 26, 2023
@subhoghoshX subhoghoshX changed the title Show toolbox containers different in containers listing Show toolbox & distrobox containers different in containers listing Sep 26, 2023
@subhoghoshX
Copy link
Member Author

Thanks @garrett, it indeed looks cool now.

Light:

image

Dark:

image

garrett
garrett previously approved these changes Sep 27, 2023
Copy link
Member

@garrett garrett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks great! Thanks for working on this.

I've added a note about an alternate way to write the SCSS (which is probably how I would've done it), but it's totally fine as-is.

src/podman.scss Outdated Show resolved Hide resolved
@subhoghoshX
Copy link
Member Author

👍 Looks great! Thanks for working on this.

I've added a note about an alternate way to write the SCSS (which is probably how I would've done it), but it's totally fine as-is.

Makes sense. It did cross my mind once to nest it, but I brushed it off for some reason :P... fixed it! thanks again!

Copy link
Member

@jelly jelly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@jelly jelly merged commit f115398 into cockpit-project:main Sep 27, 2023
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show toolbox containers different in the containers listing
4 participants