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 613195 - altTab.js continued CSSification
altTab.js continued CSSification
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2010-03-17 21:12 UTC by Dan Winship
Modified: 2010-04-06 12:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
AppSwitcher: Use CSS instead of the hardcoded POPUP_LIST_SPACING constant (9.20 KB, patch)
2010-03-20 15:15 UTC, drago01
committed Details | Review

Description Dan Winship 2010-03-17 21:12:51 UTC
as a continuation of bug 597983, there is still some CSSification to be done:

    1. All uses of POPUP_LIST_SPACING should go away; note that this single
       constant is used for multiple things which will split into separate
       declarations in the CSS:

           * AltTabPopup.actor's padding (which keeps AppSwitcher.actor
             and ThumbnailList.actor from touching the screen edges)

           * AltTabPopup.actor's spacing (between AppSwitcher.actor and
             ThumbnailList.actor)

           * SwitcherList._list's spacing

    2. The arrow fg/bg colors should be picked out of CSS instead of being
       hardcoded as constants.

Something like the cssBind code in bug 611647 may be useful here. As currently written there, it assumes a one-to-one mapping between actors and JS delegates, so it doesn't quite work for cases like SwitcherList.actor vs SwitcherList._list. So it would need to be made a little more complicated. (That's the same fix that's needed to make it work with appDisplay, as alluded to in that bug.)
Comment 1 drago01 2010-03-20 15:15:05 UTC
Created attachment 156624 [details] [review]
AppSwitcher: Use CSS instead of the hardcoded POPUP_LIST_SPACING constant

The POPUP_LIST_SPACING constant was used for the AltTabPopup.actor's padding,
AltTabPopup.actor's spacing and SwitcherList._list's spacing.

Switch to CSS and remove the constant.
Comment 2 Dan Winship 2010-03-26 14:27:29 UTC
Comment on attachment 156624 [details] [review]
AppSwitcher: Use CSS instead of the hardcoded POPUP_LIST_SPACING constant

>+        this.actor = new Shell.GenericContainer({ name: 'altTabPopup', reactive: true });

newline after the comma

otherwise looks good, though it will need rebasing for the dual-monitor-fixing patch
Comment 3 drago01 2010-03-26 16:49:49 UTC
Comment on attachment 156624 [details] [review]
AppSwitcher: Use CSS instead of the hardcoded POPUP_LIST_SPACING constant

Pushed rebased version as 5ff609e.
Comment 4 drago01 2010-04-06 12:39:45 UTC
(In reply to comment #0)

>     2. The arrow fg/bg colors should be picked out of CSS instead of being
>        hardcoded as constants.

This part is done in bug 614516, so we can close this one.