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 607872 - Minor improvements to the new workspaces views
Minor improvements to the new workspaces views
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-01-23 14:40 UTC by Florian Müllner
Modified: 2010-02-01 23:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix transition to zoomed window in single view (971 bytes, patch)
2010-01-23 14:40 UTC, Florian Müllner
committed Details | Review
Fix slightly misplaced overlays in single view (2.65 KB, patch)
2010-01-23 14:41 UTC, Florian Müllner
committed Details | Review
[Overview] CSS tweaks to match mockups better (7.37 KB, patch)
2010-01-23 14:41 UTC, Florian Müllner
none Details | Review
Make inactive workspace buttons insensitive (3.60 KB, patch)
2010-01-23 14:41 UTC, Florian Müllner
reviewed Details | Review
Reduce the gap between workspaces in linear view (1.29 KB, patch)
2010-01-25 17:05 UTC, Florian Müllner
reviewed Details | Review
[Overview] CSS tweaks to match mockups better (9.26 KB, patch)
2010-01-25 19:48 UTC, Florian Müllner
committed Details | Review
Make inactive workspace buttons insensitive (3.44 KB, patch)
2010-01-28 12:02 UTC, Florian Müllner
committed Details | Review
Make spacing between workspaces themable via CSS (4.27 KB, patch)
2010-01-28 12:33 UTC, Florian Müllner
reviewed Details | Review
"Fix" prelighting of the scroll bar handle (6.70 KB, patch)
2010-01-29 17:45 UTC, Florian Müllner
committed Details | Review

Description Florian Müllner 2010-01-23 14:40:52 UTC
A series of small patches which IMHO improve the overall look of the
workspaces views.
Comment 1 Florian Müllner 2010-01-23 14:40:57 UTC
Created attachment 152089 [details] [review]
Fix transition to zoomed window in single view

Fix messed up transition from overview when activating a zoomed in
window.
Comment 2 Florian Müllner 2010-01-23 14:41:12 UTC
Created attachment 152090 [details] [review]
Fix slightly misplaced overlays in single view

Correct the positioning of window captions and close buttons for
non-active workspaces in single view.
Comment 3 Florian Müllner 2010-01-23 14:41:18 UTC
Created attachment 152091 [details] [review]
[Overview] CSS tweaks to match mockups better

- add some spacing between buttons
- move controls closer to the workspaces view (we'll need that space
  for the message tray)
- fix the look of the scrollbar background
- some general CSS cleanup
Comment 4 Florian Müllner 2010-01-23 14:41:23 UTC
Created attachment 152092 [details] [review]
Make inactive workspace buttons insensitive

Update sensitivity instead of hiding buttons - hiding the
add workspace button looks especially weird.
Comment 5 Florian Müllner 2010-01-25 17:05:13 UTC
Created attachment 152243 [details] [review]
Reduce the gap between workspaces in linear view
Comment 6 William Jon McCann 2010-01-25 18:20:34 UTC
Spacing between buttons and workspaces are nice changes.  Making it look more like the mockups is almost always good :)

Not sure if it is a result of this patch or it was there before but the grid and single buttons are different sizes or at least the single one seems to not be aligned to the top of the grid one.  If this was in the mockup it was a mistake.

Also, the prelighting on the scrollbar seems to only happen when leaving it or something.
Comment 7 Florian Müllner 2010-01-25 19:39:48 UTC
(In reply to comment #6)
> Not sure if it is a result of this patch or it was there before but the grid
> and single buttons are different sizes or at least the single one seems to not
> be aligned to the top of the grid one.  If this was in the mockup it was a
> mistake.

Not a result of the patch, but I'll attach an update.


> Also, the prelighting on the scrollbar seems to only happen when leaving it or
> something.

Yup, that's a scrollbar bug - it is much more obvious with the workspaces scrollbar, but if looking closely you'll notice that the same applies to the app/doc menu.
Comment 8 Florian Müllner 2010-01-25 19:48:04 UTC
Created attachment 152254 [details] [review]
[Overview] CSS tweaks to match mockups better

Adjust the size of the single-view images; while now technically
of the same size, we probably want to do something about the huge
difference in border luminance as well ...
Comment 9 Colin Walters 2010-01-28 01:31:51 UTC
Review of attachment 152089 [details] [review]:

Looks right; we recreate the workspaces when reentering so I can't see why we would reposition before hiding.
Comment 10 Colin Walters 2010-01-28 01:52:40 UTC
Review of attachment 152090 [details] [review]:

This is a nice cleanup.
Comment 11 Colin Walters 2010-01-28 02:08:51 UTC
Review of attachment 152092 [details] [review]:

::: js/ui/workspacesView.js
@@ +259,3 @@
+            return;
+        if (button == null)
+    _setButtonSensitivity: function(button, sensitive) {

Why are you testing the current button reactive state here?  Both the reactive and opacity property setters are noops if set to the same value.
Comment 12 Colin Walters 2010-01-28 02:12:26 UTC
Review of attachment 152243 [details] [review]:

Ideally this would be done through CSS; it's pretty easy to call .get_theme_node().get_length('-shell-workspace-spacing') or the like (or could just be 'spacing').

I understand that the constant mirrors the GRID_SPACING constant though so this isn't a blocker.
Comment 13 Colin Walters 2010-01-28 02:20:21 UTC
Review of attachment 152254 [details] [review]:

::: data/theme/gnome-shell.css
@@ +146,1 @@
 }

I'd tighten this rule a bit by saying ".workspaces-bar > StBoxLayout" for example; if someone later adds an internal box for another reason they might have to debug why it has a 5 spacing.
Comment 14 Florian Müllner 2010-01-28 12:02:44 UTC
Created attachment 152481 [details] [review]
Make inactive workspace buttons insensitive

(In reply to comment #11)
> Review of attachment 152092 [details] [review]:
> Why are you testing the current button reactive state here?  Both the reactive
> and opacity property setters are noops if set to the same value.

OK, I wasn't aware of that - it's the same check that was used by the "old" 
workspace button.
Updated patch removes that check then ...
Comment 15 Florian Müllner 2010-01-28 12:33:36 UTC
Created attachment 152483 [details] [review]
Make spacing between workspaces themable via CSS

(was: Reduce the gap between workspaces in linear view)

(In reply to comment #12)
> Review of attachment 152243 [details] [review]:
> I understand that the constant mirrors the GRID_SPACING constant though so this
> isn't a blocker.

Moved both constants to CSS.
Comment 16 Florian Müllner 2010-01-29 17:45:47 UTC
Created attachment 152594 [details] [review]
"Fix" prelighting of the scroll bar handle

By default buttons fade from the hover to the normal state, by animating
the opacity of a copy of the previous border-image. This works as
expected for opaque and fully transparent pixels, but results in a
flickering effect for others.
Making StButton's fade effect work with partly transparent pixels is
hard, not using images with transparency is easy ...
Comment 17 Colin Walters 2010-01-29 22:19:58 UTC
Comment on attachment 152481 [details] [review]
Make inactive workspace buttons insensitive

Looks good, thanks!
Comment 18 Colin Walters 2010-01-29 22:27:39 UTC
Review of attachment 152483 [details] [review]:

One small comment

::: js/ui/workspacesView.js
@@ +273,3 @@
+                           Lang.bind(this, this._positionWorkspaces));
+        this.actor.connect('style-changed',
+        this.actor.style_class = "workspaces mosaic";

Why does only the MosaicView call _positionWorkspaces on style changes, but not the SingleView?
Comment 19 Colin Walters 2010-01-29 22:33:45 UTC
Review of attachment 152594 [details] [review]:

Sounds reasonable.
Comment 20 Florian Müllner 2010-01-29 23:06:15 UTC
(In reply to comment #18)
> Review of attachment 152483 [details] [review]:
> Why does only the MosaicView call _positionWorkspaces on style changes, but not
> the SingleView?

MosaicView seems to require it, while SingleView's zoom-to-overlay animation breaks when _positionWorkspaces is called - not exactly sure about the why yet :(
Comment 21 Florian Müllner 2010-02-01 21:49:19 UTC
Comment on attachment 152594 [details] [review]
"Fix" prelighting of the scroll bar handle

Attachment 152594 [details] pushed as e6902a1 - "Fix" prelighting of the scroll bar handle
Comment 22 Florian Müllner 2010-02-01 23:55:13 UTC
Closing as the important part of attachment 152483 [details] [review] was pushed as cd78f1158cb. The moving of spacing constants to CSS should probably be done with some general cleanup in a separate bug.