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 741095 - Refine volumes grid
Refine volumes grid
Status: RESOLVED FIXED
Product: gnome-disk-utility
Classification: Core
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gnome-disk-utility-maint
gnome-disk-utility-maint
Depends on:
Blocks:
 
 
Reported: 2014-12-04 04:17 UTC by Trinh Anh Ngoc
Modified: 2015-05-23 21:16 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot 1 (63.14 KB, image/png)
2014-12-04 04:17 UTC, Trinh Anh Ngoc
  Details
Screenshot 2 (Dark variant) (61.07 KB, image/png)
2014-12-04 04:17 UTC, Trinh Anh Ngoc
  Details
Refine volumes grid (6.50 KB, patch)
2014-12-04 04:27 UTC, Trinh Anh Ngoc
none Details | Review
Screenshot (128.38 KB, image/png)
2015-01-27 12:29 UTC, Trinh Anh Ngoc
  Details
Refine volumes grid (6.86 KB, patch)
2015-03-27 06:44 UTC, Trinh Anh Ngoc
committed Details | Review

Description Trinh Anh Ngoc 2014-12-04 04:17:08 UTC
Created attachment 292109 [details]
Screenshot 1

Overview:

1. Move css code to new resource file for easy to edit
2. Fix broken ui in Gnome 3.14
3. Color is changed for fit with theme color -> better for dark variant and custom themes
Comment 1 Trinh Anh Ngoc 2014-12-04 04:17:35 UTC
Created attachment 292110 [details]
Screenshot 2 (Dark variant)
Comment 2 Trinh Anh Ngoc 2014-12-04 04:27:02 UTC
Created attachment 292111 [details] [review]
Refine volumes grid
Comment 3 Allan Day 2015-01-27 10:30:19 UTC
(In reply to comment #0)
> 2. Fix broken ui in Gnome 3.14

It seems that the attached toolbar now has the correct styling. Is that what you mean by this point?
Comment 4 Trinh Anh Ngoc 2015-01-27 12:29:20 UTC
Created attachment 295528 [details]
Screenshot

Yes. But this patch also corrects volumes grid border style. You can see the problems in this screenshot.
Comment 5 Allan Day 2015-01-27 16:32:00 UTC
(In reply to comment #4)
> Created an attachment (id=295528) [details]
> Screenshot
> 
> Yes. But this patch also corrects volumes grid border style. You can see the
> problems in this screenshot.

Thanks, just checking! Looks good from a design point of view.
Comment 6 Michael Catanzaro 2015-03-27 03:36:22 UTC
Review of attachment 292111 [details] [review]:

Thanks for your patch! This definitely looks better than it did before.

::: src/disks/gduvolumegrid.c
@@ +823,3 @@
+                       y + 1,
+                       w - 2,
+                       unused_height - 2);

Can you explain where these numbers come from, please? It looks arbitrary to me. (Could this be handled in CSS instead?)

::: src/disks/gduwindow.c
@@ +795,2 @@
   provider = gtk_css_provider_new ();
+  file = g_file_new_for_uri ("resource:///org/gnome/Disks/ui/gdu.css");

Don't forget to use g_object_unref, or the GFile will be leaked.
Comment 7 Trinh Anh Ngoc 2015-03-27 06:44:11 UTC
Created attachment 300418 [details] [review]
Refine volumes grid

Thank you. Those numbers are used to avoid borders are effected by alpha color.
Comment 8 Michael Catanzaro 2015-05-23 21:16:38 UTC
Review of attachment 300418 [details] [review]:

Well I thought I delayed this patch because I had found something wrong with it and wanted to investigate more, but I forget what it was, and it looks fine, so I will push it. Thanks!
Comment 9 Michael Catanzaro 2015-05-23 21:16:49 UTC
Attachment 300418 [details] pushed as 93195c1 - Refine volumes grid