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 779075 - Re-align and desaturate the supply level bar
Re-align and desaturate the supply level bar
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Printers
git master
Other Linux
: Normal normal
: ---
Assigned To: Marek Kašík
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-02-22 15:53 UTC by Felipe Borges
Modified: 2017-02-26 11:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
printers: Resize the supply level bar (2.41 KB, patch)
2017-02-22 15:54 UTC, Felipe Borges
none Details | Review
printers: Fill the supply_frame background when supply is empty (1.83 KB, patch)
2017-02-22 15:54 UTC, Felipe Borges
none Details | Review
printers: Desaturate the supply level colors (1.72 KB, patch)
2017-02-22 15:54 UTC, Felipe Borges
none Details | Review
printers: Tweak the printer supply level bar (3.94 KB, patch)
2017-02-24 11:41 UTC, Felipe Borges
committed Details | Review
printers: Fill the supply_frame background when supply is empty (1.83 KB, patch)
2017-02-24 11:41 UTC, Felipe Borges
committed Details | Review
screenshot (40.53 KB, image/png)
2017-02-24 11:44 UTC, Felipe Borges
  Details

Description Felipe Borges 2017-02-22 15:53:33 UTC
.
Comment 1 Felipe Borges 2017-02-22 15:54:14 UTC
Created attachment 346457 [details] [review]
printers: Resize the supply level bar

Make the supply level bar size, margin, border, and background
match the mockups at
https://wiki.gnome.org/Design/SystemSettings/Printers#Guidelines
Comment 2 Felipe Borges 2017-02-22 15:54:23 UTC
Created attachment 346458 [details] [review]
printers: Fill the supply_frame background when supply is empty

According to the mockups at
https://wiki.gnome.org/Design/SystemSettings/Printers#Guidelines
The supply level bar should have a grey background when there are
no colors in the supply bar.

This patch sets the "background" css name to the supply_frame when
there's not a single color in the supply bar.
Comment 3 Felipe Borges 2017-02-22 15:54:31 UTC
Created attachment 346459 [details] [review]
printers: Desaturate the supply level colors

Even though we would obtain primary colors by querying the printer
supply info, it is more eye-candy to desaturate (tone down) the
colors in the UI.

These changes are according to the mockups of the new Printers
panel at https://wiki.gnome.org/Design/SystemSettings/Printers
Comment 4 Felipe Borges 2017-02-22 15:59:12 UTC
(In reply to Felipe Borges from comment #3)
> Created attachment 346459 [details] [review] [review]
> printers: Desaturate the supply level colors
> 
> Even though we would obtain primary colors by querying the printer
> supply info, it is more eye-candy to desaturate (tone down) the
> colors in the UI.
> 
> These changes are according to the mockups of the new Printers
> panel at https://wiki.gnome.org/Design/SystemSettings/Printers

jimmac suggested that we should tone down the colors a bit.
Comment 5 Marek Kašík 2017-02-23 17:52:06 UTC
Thank you for the patches but they need some tweak still.

First thing which needs to change is the way you "tone down" the colors. You have to transform the colors to HSV model, do the change there and convert them back to RGB then. I suggest 0.6 ratio for saturation and 0.9 for value.

Another thing is that the bar misses borders which are there thanks to the initial position of (3.5, 3.5) now. I suggest to draw the inner part of the rectangle by the toned down color and draw a 1 pixel wide border around that after with again toned down color (use ratio 0.85 on value of the fill color).

This way it will look really better.
Comment 6 Felipe Borges 2017-02-24 11:41:46 UTC
Created attachment 346626 [details] [review]
printers: Tweak the printer supply level bar

Make the supply level bar size, margin, border, background, and
saturation match the mockups at
https://wiki.gnome.org/Design/SystemSettings/Printers#Guidelines

Even though we would obtain primary colors by querying the printer
supply info, it is more eye-candy to desaturate (tone down) the
colors in the UI.
Comment 7 Felipe Borges 2017-02-24 11:41:52 UTC
Created attachment 346627 [details] [review]
printers: Fill the supply_frame background when supply is empty

According to the mockups at
https://wiki.gnome.org/Design/SystemSettings/Printers#Guidelines
The supply level bar should have a grey background when there are
no colors in the supply bar.

This patch sets the "background" css name to the supply_frame when
there's not a single color in the supply bar.
Comment 8 Felipe Borges 2017-02-24 11:44:08 UTC
Created attachment 346628 [details]
screenshot
Comment 9 Marek Kašík 2017-02-24 18:40:03 UTC
Review of attachment 346626 [details] [review]:

Thank you for the patch. Please ask for freeze break and push it to master if accepted.
Comment 10 Marek Kašík 2017-02-24 18:40:24 UTC
Review of attachment 346627 [details] [review]:

This one too. Thanks.
Comment 11 Felipe Borges 2017-02-26 11:53:23 UTC
These UI freeze exceptions were authorized by the release-team
https://mail.gnome.org/archives/release-team/2017-February/msg00045.html

Attachment 346626 [details] pushed as 2c7fc86 - printers: Tweak the printer supply level bar
Attachment 346627 [details] pushed as 86c028f - printers: Fill the supply_frame background when supply is empty