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 610740 - Use AppWellIcon for search results
Use AppWellIcon for search results
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2010-02-22 21:31 UTC by Colin Walters
Modified: 2010-03-04 19:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[ShellGenericContainer] Add method to get number of skipped children (1.74 KB, patch)
2010-02-22 21:31 UTC, Colin Walters
committed Details | Review
Use AppWellIcon for search results (8.32 KB, patch)
2010-02-22 21:31 UTC, Colin Walters
committed Details | Review

Description Colin Walters 2010-02-22 21:31:52 UTC
See second patch
Comment 1 Colin Walters 2010-02-22 21:31:54 UTC
Created attachment 154446 [details] [review]
[ShellGenericContainer] Add method to get number of skipped children

This will be used in search results.
Comment 2 Colin Walters 2010-02-22 21:31:57 UTC
Created attachment 154447 [details] [review]
Use AppWellIcon for search results

Switch to using an application icon as per design.

We need to drop the 4 pixels padding to ensure we fit 3 icons.

There was a typo where getVisibleCount should have been getVisibleResultsCount.
Comment 3 Owen Taylor 2010-02-22 22:27:40 UTC
Review of attachment 154447 [details] [review]:

Trying it out, it should left-justify not center when there are less results than columns.

I'm wondering if two rows would make more sense than one - right now, if you type just a few characters you definitely get the sense of "only 4 results?". We'll see. (Certainly not worth implementing two rows certainly without design feedback)

Looks fine to commit in review other than minor fixes.

::: data/theme/gnome-shell.css
@@ +431,3 @@
 }
 
+.app-well-app.selected {

Hmm, this is sort of ugly - we use pseudo-classes for :selected in some other places, but not here (presumbaly because we have hover on this and that would override and erase the :selected pseudo-class). Wonder if we should make it add and remove 'hover' from the style pseudo-class rather than overriding the style pseudo-class completely. (The pseudo-class, like the class can be a list of classes) Well, this is OK for now.

@@ +432,3 @@
 
+.app-well-app.selected {
+    border: 1px solid #666666;

Selection indication for other search results is the border + a lighter background - I'm pretty sure we need that here as well - indication for keyboard focus has to be strong than for hover since the user isn't already looking right there.

::: js/ui/appDisplay.js
@@ +195,3 @@
+            childBox.x2 = childBox.x1 + natWidth;
+            childBox.y1 = Math.floor(yPadding / 2);
+            childBox.y2 = availHeight - childBox.y1;

This is an off-by-one, if yPadding is odd. You want:

 availHeight - (yPadding - childBox.y1);

@@ +234,3 @@
+    selectIndex: function (index) {
+        let nVisible = this.getVisibleResultCount();
+        log("nVisible=" + nVisible);

Leftover log

@@ +246,3 @@
+            return false;
+        let targetActor = children[index];
+        log("setting selected = true");

leftover log
Comment 4 Owen Taylor 2010-02-24 17:00:08 UTC
Review of attachment 154446 [details] [review]:

This looked fine
Comment 5 Colin Walters 2010-02-26 21:27:54 UTC
(In reply to comment #3)
> 
> Selection indication for other search results is the border + a lighter
> background - I'm pretty sure we need that here as well - indication for
> keyboard focus has to be strong than for hover since the user isn't already
> looking right there.

I'm not quite sure how to handle this though if the app is running; should we use a lighter gradient?
Comment 6 Colin Walters 2010-03-04 19:12:29 UTC
Attachment 154446 [details] pushed as c635cb7 - [ShellGenericContainer] Add method to get number of skipped children
Attachment 154447 [details] pushed as 83f1187 - Use AppWellIcon for search results