Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 304125 - app-portage/gentoolkit-0.3.0_rc8-r1 : equery colors are inconsistent with those used by eix, emerge and other tools
Summary: app-portage/gentoolkit-0.3.0_rc8-r1 : equery colors are inconsistent with tho...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement with 3 votes (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
: 321477 385381 (view as bug list)
Depends on:
Blocks: 346443
  Show dependency tree
 
Reported: 2010-02-09 12:30 UTC by 404 Error
Modified: 2016-09-02 09:47 UTC (History)
10 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Swap useflag colors (red/blue) (gentoolkit-useflag-colorswap.patch,538 bytes, patch)
2010-12-01 00:38 UTC, Mike Gilbert
Details | Diff
New git-based patch (0001-Swap-red-blue-for-use-flag-display.patch,830 bytes, patch)
2011-05-14 18:46 UTC, Mike Gilbert
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description 404 Error 2010-02-09 12:30:06 UTC
equery shows active useflags in blue whereas several other tools like emerge and eix uses red to indicate what is active. This is confusing...


Reproducible: Always
Comment 1 pierinz 2010-02-20 00:05:08 UTC
That's true, i have the same problem.
Comment 2 Boney McCracker 2010-04-15 04:10:56 UTC
This actually has a fairly significant impact on the "usability" of the equery utility.
Comment 3 404 Error 2010-04-15 10:34:52 UTC
Technically speaking yes, absolutely but from a user interface point of view this would be flagged as a major issue.  
Comment 4 Martin Väth 2010-07-24 07:23:10 UTC
Actually, this is also an eix bug: Portage shows inactive useflags in blue
whereas eix uses gray.  I only realized now that I had an
/etc/portage/colors.map mapping blue to grey since ages...

Next eix version will fix this (as well as downgrade colors), but the release
will take time, since the svn host is currently down and will stay so
for a while.
Comment 5 Mike Gilbert gentoo-dev 2010-12-01 00:38:53 UTC
Created attachment 256005 [details, diff]
Swap useflag colors (red/blue)

I think this should fix it; it works for equery uses.
Comment 6 Alex Legler (RETIRED) archtester gentoo-dev Security 2011-05-14 18:36:41 UTC
(In reply to comment #5)
> Created attachment 256005 [details, diff]
> Swap useflag colors (red/blue)
> 
> I think this should fix it; it works for equery uses.

tools-portage guys: is that patch acceptable? ^
If yes, can you please apply it? Or can I help with anything?
Comment 7 Mike Gilbert gentoo-dev 2011-05-14 18:46:09 UTC
Created attachment 273221 [details, diff]
New git-based patch
Comment 8 Brian Dolbec gentoo-dev 2011-05-14 20:41:01 UTC
I have brought up the subject of the colors being inconsistent before but, I also feel that portage has them wrong.  Red I feel being akin to Not enabled, much like a RED light means stop, while a GREEN light means go.  That is also how they are shown in porthole.

does that mean you run RED lights when driving? ;)  Heaven help us!

At least -0.3.0 should be consistent throughout it's modules.

This one needs the Boss's decision.
Comment 9 Robin Bankhead 2011-05-15 10:54:21 UTC
(In reply to comment #8)
> I have brought up the subject of the colors being inconsistent before but, I
> also feel that portage has them wrong.  Red I feel being akin to Not enabled,
> much like a RED light means stop, while a GREEN light means go.  That is also
> how they are shown in porthole.
> 
> does that mean you run RED lights when driving? ;)  Heaven help us!
> 
Valid point, but then again you also have the red "ON AIR" light in a radio studio, and the US president has his "Big Red Button" - both denote a positive state/action (well, sorta)

Also the red is more vibrant than the blue on a (typically black, though this may well be true on white too) shell background so it makes the flags that are enabled stand out more.  And green is already used to denote changed flags in emerge -vp output.

I'd say the prevailing colour scheme should be that already used by most tools (and portage itself ought to have greater weight in the evaluation, since everyone uses it).
Comment 10 Zac Medico gentoo-dev 2011-10-02 19:07:11 UTC
*** Bug 385381 has been marked as a duplicate of this bug. ***
Comment 11 Paul Varner (RETIRED) gentoo-dev 2012-05-10 21:19:24 UTC
*** Bug 321477 has been marked as a duplicate of this bug. ***
Comment 12 Paul Varner (RETIRED) gentoo-dev 2012-05-16 21:22:21 UTC
I just changed this in the git repository, set useflags are now displayed in red and unset flags in blue.  This change does not take into account any user defined colormaps.  Using the colormaps from portage will be done in gentoolkit-0.3.1
Comment 13 Paul Varner (RETIRED) gentoo-dev 2012-05-17 20:32:52 UTC
The hardcoded change to match portage colors was released with gentoolkit-0.3.0.6-r2.