After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 48021 - the selection rectangle is invisible if its color matches the desktop background
the selection rectangle is invisible if its color matches the desktop background
Status: RESOLVED DUPLICATE of bug 47458
Product: nautilus
Classification: Core
Component: Views: Icon View
unspecified
Other Linux
: Low normal
: future
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2001-04-09 20:07 UTC by Ben FrantzDale
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ben FrantzDale 2001-09-10 01:18:25 UTC
Set your desktop background color to be the same color that the bounding box
uses from the GTK theme. Now the bounding box is invisible.

Suggested fix:
Add one pixel around the edge of the bounding box that is the same color that
Nautilus has chosen for icon text. 

While fixing this it should be trivial to change the bounding box to have a
gradient like EFM had.

Here's some psudocode (assume opacity has 0=clear, 1=opaque)

DrawBoundingBox(left, bottom, right, top) {
  DrawFilledRectangle(left, bottom, 
                      right, top, 
                      gtk_active_color, .4 alpha); //draw base filled with some
transparency

//now draw the gradients (drawing concentric rectangles makes ugly corners)
  for(int n = 1; n < 10; n++) {
    DrawLine(left, top-n, 
             right, top-n, 
             gtk_active_color,  1-(n/10)); //draw top gradient

    DrawLine(left, bottom+n,
             right, bottom+n,
             gtk_active_color, 1-(n/10)); //draw bottom gradient
    DrawLine(left+n, top,
             left+n, bottom,
             gtk_active_color, 1-(n/10)); //draw left gradient
    DrawLine(right-n, top,
             right-n, bottom,
             gtk_active_color, 1-(n/10)); //draw bottom gradient
  }
  //finally draw the edge in a different color for clarity
  Draw1pxlRectangle(left,bottom, right, top, [same color as icon text]);
}



------- Additional Comments From bfrantzda@hmc.edu 2001-04-09 20:46:08 ----

It appears I was wrong. The bounding box color is determined by the Nautilus
theme, not the GTK theme. Either way, the problem exists :-)



------- Bug moved to this database by unknown@bugzilla.gnome.org 2001-09-09 21:18 -------
Comment 1 John Fleck 2002-01-05 04:23:05 UTC
Changing to "old" target milestone for all bugs laying around with no milestone set.
Comment 2 Dave Bordoley [Not Reading Bug Mail] 2002-03-20 05:20:30 UTC
I assume this would still be a problem in gnome2 but don't see any
reason that we need to act upon this right now. setting priority to low.
Comment 3 Dave Bordoley [Not Reading Bug Mail] 2002-03-26 16:03:16 UTC

*** This bug has been marked as a duplicate of 47458 ***