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 731952 - Replace hardcoded colors with theme colors
Replace hardcoded colors with theme colors
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: 3.22
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
: 734923 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-06-20 09:16 UTC by Lasse Schuirmann
Modified: 2016-03-31 13:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
wizard: Use default style for Customize button (1.24 KB, patch)
2014-06-20 09:16 UTC, Lasse Schuirmann
needs-work Details | Review
Screencast of w/ and w/o the style class in question (109.69 KB, video/webm)
2014-06-20 14:30 UTC, Zeeshan Ali
  Details
gtk-style: Remove .boxes-machine-name-label (726 bytes, patch)
2014-08-17 17:41 UTC, Lasse Schuirmann
none Details | Review
gtk-style: Remove hardcoded color for .boxes-wizard-summary-prop-value-label (841 bytes, patch)
2014-08-17 17:45 UTC, Lasse Schuirmann
none Details | Review
gtk-style: Remove hardcoded color for .boxes-wizard-summary-prop-value-label (1.39 KB, patch)
2014-08-17 17:49 UTC, Lasse Schuirmann
none Details | Review
gtk-style: Remove .boxes-wizard-summary-prop-value-label (1.37 KB, patch)
2014-08-17 17:54 UTC, Lasse Schuirmann
none Details | Review
gtk-style: Remove .boxes-wizard-summary-customize-button (1.30 KB, patch)
2014-08-17 17:54 UTC, Lasse Schuirmann
none Details | Review
gtk-style: Use theme color for boxes-wizard-current-page-label (804 bytes, patch)
2014-08-17 17:57 UTC, Lasse Schuirmann
none Details | Review
gtk-style: Use theme color for .boxes-property-name-label (807 bytes, patch)
2014-08-17 18:06 UTC, Lasse Schuirmann
none Details | Review
gtk-style: Use theme color for .boxes-wizard-summary-prop-name-label (841 bytes, patch)
2014-08-17 18:06 UTC, Lasse Schuirmann
none Details | Review
gtk-style: Use theme color for .boxes-wizard-label (793 bytes, patch)
2014-08-17 18:28 UTC, Lasse Schuirmann
none Details | Review
gtk-style: Replace .boxes-continue with .suggested-action (1.94 KB, patch)
2014-08-18 09:12 UTC, Lasse Schuirmann
accepted-commit_now Details | Review
util-app: Remove get_boxes_bg_color() (unused) (964 bytes, patch)
2014-08-18 09:37 UTC, Lasse Schuirmann
none Details | Review
wizard: Remove .boxes-bg (unneeded) (2.12 KB, patch)
2014-08-18 10:21 UTC, Lasse Schuirmann
none Details | Review
gtk-style: Rename .boxes-bg to .transparent-bg (2.59 KB, patch)
2014-08-18 10:21 UTC, Lasse Schuirmann
none Details | Review
gtk-style: Rename .wizard to .content-bg (2.78 KB, patch)
2014-08-18 10:21 UTC, Lasse Schuirmann
none Details | Review
gtk-style: Remove .empty-boxes, use .content-bg (2.41 KB, patch)
2014-08-18 10:21 UTC, Lasse Schuirmann
none Details | Review
gtk-style: Remove .boxes-icon-view, use .content-bg (1.42 KB, patch)
2014-08-18 10:21 UTC, Lasse Schuirmann
none Details | Review
gtk-style: Remove .properties, use .content-bg (1.21 KB, patch)
2014-08-18 10:21 UTC, Lasse Schuirmann
none Details | Review
content-bg: Use theme-color instead of image (10.49 KB, patch)
2014-08-18 11:28 UTC, Lasse Schuirmann
none Details | Review
sidebar: Use theme-color instead of image (11.92 KB, patch)
2014-08-18 11:28 UTC, Lasse Schuirmann
none Details | Review
BoxesMiniGraph: Use theme colors (951 bytes, patch)
2014-08-18 11:43 UTC, Lasse Schuirmann
none Details | Review
gtk-style: Remove .boxes-machine-name-label (726 bytes, patch)
2014-08-18 14:16 UTC, Lasse Schuirmann
needs-work Details | Review
gtk-style: Remove unneeded classes (1.77 KB, patch)
2014-08-18 14:16 UTC, Lasse Schuirmann
needs-work Details | Review
gtk-style: Replace hardcoded colors by theme colors (1.19 KB, patch)
2014-08-18 14:16 UTC, Lasse Schuirmann
accepted-commit_now Details | Review
gtk-style: Replace .boxes-continue with .suggested-action (1.94 KB, patch)
2014-08-18 14:16 UTC, Lasse Schuirmann
accepted-commit_now Details | Review
util-app: Remove get_boxes_bg_color() (unused) (964 bytes, patch)
2014-08-18 14:16 UTC, Lasse Schuirmann
needs-work Details | Review
wizard: Remove .boxes-bg (unneeded) (2.12 KB, patch)
2014-08-18 14:16 UTC, Lasse Schuirmann
needs-work Details | Review
gtk-style: Rename .boxes-bg to .transparent-bg (2.59 KB, patch)
2014-08-18 14:17 UTC, Lasse Schuirmann
accepted-commit_now Details | Review
gtk-style: Rename .wizard to .content-bg (2.78 KB, patch)
2014-08-18 14:17 UTC, Lasse Schuirmann
needs-work Details | Review
gtk-style: Replace unneeded classes by .content-bg (4.00 KB, patch)
2014-08-18 14:17 UTC, Lasse Schuirmann
accepted-commit_now Details | Review
content-bg: Use theme-color instead of image (10.49 KB, patch)
2014-08-18 14:17 UTC, Lasse Schuirmann
accepted-commit_now Details | Review
sidebar: Use theme-color instead of image (11.92 KB, patch)
2014-08-18 14:17 UTC, Lasse Schuirmann
accepted-commit_now Details | Review
BoxesMiniGraph: Use theme colors (951 bytes, patch)
2014-08-18 14:17 UTC, Lasse Schuirmann
needs-work Details | Review
gtk-style: Remove .boxes-machine-name-label (732 bytes, patch)
2014-08-18 15:11 UTC, Lasse Schuirmann
needs-work Details | Review
gtk-style: Remove unneeded hardcoded colors (1.78 KB, patch)
2014-08-18 15:11 UTC, Lasse Schuirmann
accepted-commit_now Details | Review
gtk-style: Replace hardcoded colors by theme colors (1.19 KB, patch)
2014-08-18 15:11 UTC, Lasse Schuirmann
none Details | Review
gtk-style: Replace .boxes-continue by .suggested-action (1.93 KB, patch)
2014-08-18 15:11 UTC, Lasse Schuirmann
none Details | Review
util-app: Remove unused get_boxes_bg_color() (1.02 KB, patch)
2014-08-18 15:11 UTC, Lasse Schuirmann
none Details | Review
wizard: Remove unneeded .boxes-bg (2.17 KB, patch)
2014-08-18 15:11 UTC, Lasse Schuirmann
needs-work Details | Review
gtk-style: Rename .boxes-bg to .transparent-bg (2.59 KB, patch)
2014-08-18 15:12 UTC, Lasse Schuirmann
none Details | Review
gtk-style: Rename .wizard to .content-bg (2.88 KB, patch)
2014-08-18 15:12 UTC, Lasse Schuirmann
none Details | Review
gtk-style: Replace unneeded classes by .content-bg (4.00 KB, patch)
2014-08-18 15:12 UTC, Lasse Schuirmann
none Details | Review
content-bg: Use theme color instead of image (10.49 KB, patch)
2014-08-18 15:12 UTC, Lasse Schuirmann
none Details | Review
sidebar: Use theme color instead of image (11.92 KB, patch)
2014-08-18 15:12 UTC, Lasse Schuirmann
none Details | Review
BoxesMiniGraph: Replace hardcoded colors by theme colors (976 bytes, patch)
2014-08-18 15:12 UTC, Lasse Schuirmann
none Details | Review
gtk-style: Remove .boxes-machine-name-label (738 bytes, patch)
2014-08-18 15:32 UTC, Lasse Schuirmann
committed Details | Review
gtk-style: Remove unneeded hardcoded colors (1.78 KB, patch)
2014-08-18 15:32 UTC, Lasse Schuirmann
committed Details | Review
gtk-style: Replace hardcoded colors by theme colors (1.19 KB, patch)
2014-08-18 15:32 UTC, Lasse Schuirmann
committed Details | Review
gtk-style: Replace .boxes-continue by .suggested-action (1.93 KB, patch)
2014-08-18 15:32 UTC, Lasse Schuirmann
committed Details | Review
util-app: Remove unused get_boxes_bg_color() (1.02 KB, patch)
2014-08-18 15:32 UTC, Lasse Schuirmann
committed Details | Review
wizard: Drop use of .boxes-bg (2.17 KB, patch)
2014-08-18 15:32 UTC, Lasse Schuirmann
committed Details | Review
gtk-style: Rename .boxes-bg to .transparent-bg (2.59 KB, patch)
2014-08-18 15:32 UTC, Lasse Schuirmann
committed Details | Review
gtk-style: Rename .wizard to .content-bg (2.88 KB, patch)
2014-08-18 15:32 UTC, Lasse Schuirmann
committed Details | Review
gtk-style: Replace unneeded classes by .content-bg (4.00 KB, patch)
2014-08-18 15:32 UTC, Lasse Schuirmann
committed Details | Review
content-bg: Use theme color instead of image (10.49 KB, patch)
2014-08-18 15:33 UTC, Lasse Schuirmann
committed Details | Review
sidebar: Use theme color instead of image (11.92 KB, patch)
2014-08-18 15:33 UTC, Lasse Schuirmann
committed Details | Review
BoxesMiniGraph: Replace hardcoded colors by theme colors (976 bytes, patch)
2014-08-18 15:33 UTC, Lasse Schuirmann
committed Details | Review

Description Lasse Schuirmann 2014-06-20 09:16:19 UTC
The style until now was first introduced in e37e4da0. I don't see any
difference between the mockup given in that commit log and the button
after the patch.

However when the window is unfocused the customize button greys out
like the others and does not break consistency anymore.
Comment 1 Lasse Schuirmann 2014-06-20 09:16:21 UTC
Created attachment 278821 [details] [review]
wizard: Use default style for Customize button

The previous style was useless and looked weird when window was
unfocused.
Comment 2 Zeeshan Ali 2014-06-20 13:04:10 UTC
Review of attachment 278821 [details] [review]:

Commit log seems to suggest you are changing the style but you are only removing a style class.

Also the button now looks like this here w/o its style: http://static.fi/~zeenix/tmp/boxes-customize-button-style.png
Comment 3 Lasse Schuirmann 2014-06-20 13:07:29 UTC
Review of attachment 278821 [details] [review]:

I could change the commit log...

It would be good to know the reason why it looks that way on your system; I would not expect that behaviour and it does not occur on my system.
Comment 4 Zeeshan Ali 2014-06-20 14:29:42 UTC
(In reply to comment #3)
> It would be good to know the reason why it looks that way on your system; I
> would not expect that behaviour and it does not occur on my system.

I updated gtk+ and icon theme and now it doesn't have that affect. OTOH it now does what I was expecting: the color of text just becomes darker and not helping the fact that button looks pressed when not in focus.
Comment 5 Zeeshan Ali 2014-06-20 14:30:41 UTC
Created attachment 278839 [details]
Screencast of w/ and w/o the style class in question
Comment 6 Lasse Schuirmann 2014-06-20 14:36:36 UTC
Anyway we shouldn't use hardcoded colors. In the end we just end up with
something like contacts with the dark theme:
http://i.imgur.com/Iz9U4MQ.png

Why does the button look pressed? GTK bug?
Comment 7 Zeeshan Ali 2014-06-20 14:42:11 UTC
(In reply to comment #6)
> Anyway we shouldn't use hardcoded colors.

Putting it in the theme means 'no hardcoding'. What do you suggest?

> In the end we just end up with
> something like contacts with the dark theme:
> http://i.imgur.com/Iz9U4MQ.png

?? How come we end up looking like that?
 
> Why does the button look pressed? GTK bug?

I don't know. I'm not even sure if its a bug or intended way of showing 'not in focus'.
Comment 8 Lasse Schuirmann 2014-06-20 14:48:50 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > Anyway we shouldn't use hardcoded colors.
> 
> Putting it in the theme means 'no hardcoding'. What do you suggest?

We have
.boxes-property-name-label {
    color: #bebebe;
}

.boxes-machine-name-label {
    color: white;
}

and all those things. These are definitely hard coded colors.

Quote from [0]:
"Be wary that your color choices might not be good for everyone and there should be a good way to override them. Whenever possible, pull your colors from the GNOME theme. Your colors should not be hard-coded, and must be override-able.
Yes, your interface may not appear in colors that are in your brand book or evoke the emotion you wish to convey in your interface – but consider that the ability for someone to be able to use your software or not be able to use it at all also affects your brand as well."

And I agree strongly. I cant use contacts :(

> > In the end we just end up with
> > something like contacts with the dark theme:
> > http://i.imgur.com/Iz9U4MQ.png
> 
> ?? How come we end up looking like that?

1. Start gnome-tweak-tool
2. Activate "Global dark theme"
3. Start contacts

Tested on several archlinux installations as well as on fedora.

> > Why does the button look pressed? GTK bug?
> 
> I don't know. I'm not even sure if its a bug or intended way of showing 'not in
> focus'.

Shouldn't it be just an ordinary button like all the others? Why should it differ?


[0] http://mairin.wordpress.com/2010/02/23/painless-accessibility-tips-for-gnome-designers-and-developers/
Comment 9 Zeeshan Ali 2014-06-20 15:55:11 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > (In reply to comment #6)
> > > Anyway we shouldn't use hardcoded colors.
> > 
> > Putting it in the theme means 'no hardcoding'. What do you suggest?
> 
> We have
> .boxes-property-name-label {
>     color: #bebebe;
> }
> 
> .boxes-machine-name-label {
>     color: white;
> }
> 
> and all those things. These are definitely hard coded colors.

Again, whats a non-hardcoded color?

> 
> > > In the end we just end up with
> > > something like contacts with the dark theme:
> > > http://i.imgur.com/Iz9U4MQ.png
> > 
> > ?? How come we end up looking like that?
> 
> 1. Start gnome-tweak-tool
> 2. Activate "Global dark theme"
> 3. Start contacts

1. No, how do *we* end up looking like that, not Contacts?
2. We are not interested in supporting all scenerios and envorinments. You are supposed to use the default theme and any tweaking you do, you are most likely on your own and will have many issues in many different software.

> > > Why does the button look pressed? GTK bug?
> > 
> > I don't know. I'm not even sure if its a bug or intended way of showing 'not in
> > focus'.
> 
> Shouldn't it be just an ordinary button like all the others? Why should it
> differ?

Because we have a different background and you'll see that the same is set for other widget too in the theme.

Having said all that, I agree that it would be nice to have this coming from the default theme (which is now part of gtk+) but the defaults are not what we need here.
Comment 10 Lasse Schuirmann 2014-06-21 14:48:42 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > (In reply to comment #7)
> > > (In reply to comment #6)
> > > > Anyway we shouldn't use hardcoded colors.
> > > 
> > > Putting it in the theme means 'no hardcoding'. What do you suggest?
> > 
> > We have
> > .boxes-property-name-label {
> >     color: #bebebe;
> > }
> > 
> > .boxes-machine-name-label {
> >     color: white;
> > }
> > 
> > and all those things. These are definitely hard coded colors.
> 
> Again, whats a non-hardcoded color?

Its a color provided by the theme. The problem here is that the background color is hardcoded in the first place as you'll see below.

> > 
> > > > In the end we just end up with
> > > > something like contacts with the dark theme:
> > > > http://i.imgur.com/Iz9U4MQ.png
> > > 
> > > ?? How come we end up looking like that?
> > 
> > 1. Start gnome-tweak-tool
> > 2. Activate "Global dark theme"
> > 3. Start contacts
> 
> 1. No, how do *we* end up looking like that, not Contacts?

This is how Boxes looks when turning on the default accessibility theme:
http://i.imgur.com/2Wqr7mX.png

See also the HIG:
https://developer.gnome.org/hig-book/3.2/design-color.html.en
Right at the bottom:
"Ensure your application is not dependent on a particular theme. Test it with different themes, especially high and low contrast accessibility themes, which use fewer colors, to ensure your application respects the settings. For example, all text should appear in the foreground color against the background color specified in the chosen theme."

https://developer.gnome.org/hig-book/3.2/checks-yourself.html.en
12.1.3
"Test your application with black and white, high contrast themes and confirm that all information is still conveyed correctly."

> 2. We are not interested in supporting all scenerios and envorinments. You are
> supposed to use the default theme and any tweaking you do, you are most likely
> on your own and will have many issues in many different software.

This sounds sad for the 11% of our users with any visual disability dependent on the a11y themes. (Source: again Gnome HIG)

By the way: there are whole distributions built on custom themes. (e.g. I use antergos) Thats _many_ users you abandon with that. I didn't see any gnome app having problems with the default theme of Antergos besides Boxes. (Its very near to adwaita so it breaks almost nothing. Except Boxes because of the dark background thing...)
Comment 11 Zeeshan Ali 2014-06-27 12:21:16 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > (In reply to comment #8)
> > > (In reply to comment #7)
> > > > (In reply to comment #6)
> > > > > Anyway we shouldn't use hardcoded colors.
> > > > 
> > > > Putting it in the theme means 'no hardcoding'. What do you suggest?
> > > 
> > > We have
> > > .boxes-property-name-label {
> > >     color: #bebebe;
> > > }
> > > 
> > > .boxes-machine-name-label {
> > >     color: white;
> > > }
> > > 
> > > and all those things. These are definitely hard coded colors.
> > 
> > Again, whats a non-hardcoded color?
> 
> Its a color provided by the theme. The problem here is that the background
> color is hardcoded in the first place as you'll see below.

As I said before, would be nice if the color comes from system theme. The solution is not to just drop the theme but ensure that we have something from system theme to use.

> > > > ?? How come we end up looking like that?
> > > 
> > > 1. Start gnome-tweak-tool
> > > 2. Activate "Global dark theme"
> > > 3. Start contacts
> > 
> > 1. No, how do *we* end up looking like that, not Contacts?
> 
> This is how Boxes looks when turning on the default accessibility theme:
> http://i.imgur.com/2Wqr7mX.png

Good, now that is the answer to my question. :)
 
> > 2. We are not interested in supporting all scenerios and envorinments. You are
> > supposed to use the default theme and any tweaking you do, you are most likely
> > on your own and will have many issues in many different software.
> 
> This sounds sad for the 11% of our users with any visual disability dependent
> on the a11y themes. (Source: again Gnome HIG)

Not at all. There should be system themes for both. Satisfying a11y is different from satisfying all kinds of scenerios and all possible themes.
Comment 12 Zeeshan Ali 2014-06-29 16:35:55 UTC
(In reply to comment #10)
> > 2. We are not interested in supporting all scenerios and envorinments. You are
> > supposed to use the default theme and any tweaking you do, you are most likely
> > on your own and will have many issues in many different software.
> 
> This sounds sad for the 11% of our users with any visual disability dependent
> on the a11y themes. (Source: again Gnome HIG)

By the way this sentence is quite an exageration of what HIG actually says: "An estimated 11% of the world population has some sort of color-blindness. Those affected typically have trouble distinguishing between certain hues such as red and green (deuteranopia or protanopia), or blue and yellow (tritanopia)."

Keeping in mind that color blindless is not affected by black on white vs white on black, I don't think 11% of ours users are affected by this. Just wanted to get the record straight.
Comment 13 Lasse Schuirmann 2014-06-29 16:57:44 UTC
(In reply to comment #12)
> By the way this sentence is quite an exageration of what HIG actually says: "An
> estimated 11% of the world population has some sort of color-blindness. Those
> affected typically have trouble distinguishing between certain hues such as red
> and green (deuteranopia or protanopia), or blue and yellow (tritanopia)."
> 
> Keeping in mind that color blindless is not affected by black on white vs white
> on black, I don't think 11% of ours users are affected by this. Just wanted to
> get the record straight.

Thanks. That is very true. Indeed I just checked Boxes' default appearance with a visual disability simulator. The good message is: all of the three mentioned visual disabilities don't seem to really affect grey shades. (Assuming the visual disabilities only shift some colors.) That did astonish me a bit indeed.

I am not an expert on this but I can imagine some users having problems with low contrasts (grey shades), e.g. if you have very bad eyes in general. (With no specific color blindness.)

All in all I think removing as much hardcoded colors as possible is no bad thing at all:
- IMHO it increases maintainability since the application will just auto-adjust to adwaita changes, less bugs
- If there are people having problems distinguishing the different shades of gray they'll also profit
- We'd also have a better support for custom themes - you, zeenix, stated that it's not important but I think its neither a bad thing

I am tense to hear jimmacs opinion.
Comment 14 Zeeshan Ali 2014-06-30 16:28:06 UTC
<zeenix> jimmac: just wanted to remind you about bug#731952
<jimmac> zeenix, when he speaks about default does he mean suggested-action?
<jimmac> zeenix, i'm quite lost on what that bug is about
<zeenix> jimmac: no, he is talking about color
<zeenix> .boxes-wizard-summary-customize-button {
<zeenix>     color: white;
<zeenix> }
<jimmac> zeenix, why is that?
<jimmac> zeenix, why not just @theme_fg_color?
<zeenix> jimmac: https://bug731952.bugzilla-attachments.gnome.org/attachment.cgi?id=278839
<zeenix> we also setting colors for a few other widgets
<zeenix> lables mostly
<jimmac> so in essence you don't like :backdrop being toned down in terms of contrast?
<jimmac> that's what I was saying to lapo with the recent redesign
<jimmac> we should just be flattening :backdrop now
<zeenix> jimmac: no clue what :backdrop is
<jimmac> unfocused window state
<zeenix> ah
<zeenix> jimmac: ok, so i guess I'll just take the patch to remove the custom CSS then
Comment 15 Zeeshan Ali 2014-06-30 16:29:04 UTC
Review of attachment 278821 [details] [review]:

Based on last comment, I'll take it but can you please remove other custom colors just above this one?
Comment 16 Zeeshan Ali 2014-06-30 16:29:36 UTC
Review of attachment 278821 [details] [review]:

And yes, the log still needs improvement. :)
Comment 17 Zeeshan Ali 2014-08-17 12:30:58 UTC
*** Bug 734923 has been marked as a duplicate of this bug. ***
Comment 18 Lasse Schuirmann 2014-08-17 17:41:42 UTC
Created attachment 283664 [details] [review]
gtk-style: Remove .boxes-machine-name-label

This class was introduced in ea48c29e and its usage was removed.
Comment 19 Lasse Schuirmann 2014-08-17 17:45:01 UTC
Created attachment 283665 [details] [review]
gtk-style: Remove hardcoded color for .boxes-wizard-summary-prop-value-label

The inherited value looks almost the same and provides better
maintainability due to less hardcoded colors and less code in general.
Comment 20 Lasse Schuirmann 2014-08-17 17:49:40 UTC
Created attachment 283667 [details] [review]
gtk-style: Remove hardcoded color for .boxes-wizard-summary-prop-value-label

The inherited value looks almost the same and provides better
maintainability due to less hardcoded colors and less code in general.
Comment 21 Lasse Schuirmann 2014-08-17 17:54:20 UTC
Created attachment 283668 [details] [review]
gtk-style: Remove .boxes-wizard-summary-prop-value-label

The inherited value looks almost the same and provides better
maintainability due to less hardcoded colors and less code in general.
Comment 22 Lasse Schuirmann 2014-08-17 17:54:25 UTC
Created attachment 283669 [details] [review]
gtk-style: Remove .boxes-wizard-summary-customize-button

The inherited value looks almost the same and provides better
maintainability due to less hardcoded colors and less code in general.
Comment 23 Lasse Schuirmann 2014-08-17 17:57:30 UTC
Created attachment 283670 [details] [review]
gtk-style: Use theme color for boxes-wizard-current-page-label

The theme_fg_color looks almost the same and provides better
maintainability due to less hardcoded colors and less code in general.
Comment 24 Lasse Schuirmann 2014-08-17 18:06:44 UTC
Created attachment 283671 [details] [review]
gtk-style: Use theme color for .boxes-property-name-label

The theme_unfocused_fg_color looks almost the same and provides better
maintainability due to less hardcoded colors and less code in general.
Comment 25 Lasse Schuirmann 2014-08-17 18:06:49 UTC
Created attachment 283672 [details] [review]
gtk-style: Use theme color for .boxes-wizard-summary-prop-name-label

The theme_unfocused_fg_color looks almost the same and provides better
maintainability due to less hardcoded colors and less code in general.
Comment 26 Lasse Schuirmann 2014-08-17 18:28:18 UTC
Created attachment 283675 [details] [review]
gtk-style: Use theme color for .boxes-wizard-label

The theme_fg_color looks almost the same and provides better
maintainability due to less hardcoded colors and less code in general.
Comment 27 Lasse Schuirmann 2014-08-17 20:41:14 UTC
How about changing the background color to a theme color? I have a draft of this based on the patches provided here; you can look at it here (four screenshots):
http://imgur.com/h60n1Hg,lT1kvNA,W0wVOke,gYn6Esi

* It adapts better to other themes, e.g. high contrast, and theme changes.
* Its more consistent with other apps e.g. Nautilus which has almost the same background colors for sidebar and content as this new version.
Comment 28 Lasse Schuirmann 2014-08-18 09:12:37 UTC
Created attachment 283718 [details] [review]
gtk-style: Replace .boxes-continue with .suggested-action

The .suggested-action class is available from the theme. There is no
need to maintain an extra clone of this class.
Comment 29 Jakub Steiner 2014-08-18 09:28:02 UTC
Review of attachment 283718 [details] [review]:

looks good to me.
Comment 30 Lasse Schuirmann 2014-08-18 09:37:31 UTC
Created attachment 283725 [details] [review]
util-app: Remove get_boxes_bg_color() (unused)
Comment 31 Lasse Schuirmann 2014-08-18 10:21:07 UTC
Created attachment 283727 [details] [review]
wizard: Remove .boxes-bg (unneeded)

.boxes-bg defines that the background color is transparent. This
property is overwritten by the .wizard class.
Comment 32 Lasse Schuirmann 2014-08-18 10:21:12 UTC
Created attachment 283728 [details] [review]
gtk-style: Rename .boxes-bg to .transparent-bg

The new name describes way better that the class just makes the
background transparent.
Comment 33 Lasse Schuirmann 2014-08-18 10:21:17 UTC
Created attachment 283729 [details] [review]
gtk-style: Rename .wizard to .content-bg

This class describes the background for any content area and should have
an appropriate name.
Comment 34 Lasse Schuirmann 2014-08-18 10:21:21 UTC
Created attachment 283730 [details] [review]
gtk-style: Remove .empty-boxes, use .content-bg

Both classes do exactly the same.
Comment 35 Lasse Schuirmann 2014-08-18 10:21:27 UTC
Created attachment 283731 [details] [review]
gtk-style: Remove .boxes-icon-view, use .content-bg

Both classes do exactly the same.
Comment 36 Lasse Schuirmann 2014-08-18 10:21:32 UTC
Created attachment 283732 [details] [review]
gtk-style: Remove .properties, use .content-bg

Both classes do exactly the same.
Comment 37 Lasse Schuirmann 2014-08-18 11:28:23 UTC
Created attachment 283735 [details] [review]
content-bg: Use theme-color instead of image

This is a minor visual change while it allows Boxes to adapt to theme
changes and especially makes themes like the high contrast accessibility
theme work.
Comment 38 Lasse Schuirmann 2014-08-18 11:28:28 UTC
Created attachment 283736 [details] [review]
sidebar: Use theme-color instead of image

This is a minor visual change while it allows Boxes to adapt to theme
changes and especially makes themes like the high contrast accessibility
theme work.
Comment 39 Lasse Schuirmann 2014-08-18 11:43:22 UTC
Created attachment 283737 [details] [review]
BoxesMiniGraph: Use theme colors

This is a minor visual change while it allows Boxes to adapt to theme
changes and especially makes themes like the high contrast accessibility
theme work. The BoxesMiniGraph will now invert colors with the theme if
needed.
Comment 40 Lasse Schuirmann 2014-08-18 12:06:44 UTC
The provided patches create this appearance:
http://imgur.com/dSuDUj3,MPnW2we,oeoeurz,vC125RX,ZpCnRuk,VBQAlqW,0CHnXDK,MjFANVp,LsMVb9Z,8gpnWaS,uhEH4Jd,N4tmQ3P,sUs9nDl,qMyR03b
(First chunk of images with adwaita, dark, second chunk with high contras a11y theme.)
Comment 41 Lasse Schuirmann 2014-08-18 14:16:30 UTC
Created attachment 283742 [details] [review]
gtk-style: Remove .boxes-machine-name-label

This class was introduced in ea48c29e and its usage was removed.
Comment 42 Lasse Schuirmann 2014-08-18 14:16:35 UTC
Created attachment 283743 [details] [review]
gtk-style: Remove unneeded classes

The inherited values look almost the same and provide better
maintainability due to less hardcoded colors and less code in general.
Comment 43 Lasse Schuirmann 2014-08-18 14:16:39 UTC
Created attachment 283745 [details] [review]
gtk-style: Replace hardcoded colors by theme colors

The colors from the theme look almost the same while providing better
maintainability due to less hardcoded colors and less code in general.
Comment 44 Lasse Schuirmann 2014-08-18 14:16:45 UTC
Created attachment 283746 [details] [review]
gtk-style: Replace .boxes-continue with .suggested-action

The .suggested-action class is available from the theme. There is no
need to maintain an extra clone of this class.
Comment 45 Lasse Schuirmann 2014-08-18 14:16:50 UTC
Created attachment 283747 [details] [review]
util-app: Remove get_boxes_bg_color() (unused)
Comment 46 Lasse Schuirmann 2014-08-18 14:16:55 UTC
Created attachment 283748 [details] [review]
wizard: Remove .boxes-bg (unneeded)

.boxes-bg defines that the background color is transparent. This
property is overwritten by the .wizard class.
Comment 47 Lasse Schuirmann 2014-08-18 14:17:01 UTC
Created attachment 283749 [details] [review]
gtk-style: Rename .boxes-bg to .transparent-bg

The new name describes way better that the class just makes the
background transparent.
Comment 48 Lasse Schuirmann 2014-08-18 14:17:06 UTC
Created attachment 283751 [details] [review]
gtk-style: Rename .wizard to .content-bg

This class describes the background for any content area and should have
an appropriate name.
Comment 49 Lasse Schuirmann 2014-08-18 14:17:11 UTC
Created attachment 283752 [details] [review]
gtk-style: Replace unneeded classes by .content-bg

The .content-bg class does exactly the same as these classes so we can
use this everywhere.
Comment 50 Lasse Schuirmann 2014-08-18 14:17:16 UTC
Created attachment 283753 [details] [review]
content-bg: Use theme-color instead of image

This is a minor visual change while it allows Boxes to adapt to theme
changes and especially makes themes like the high contrast accessibility
theme work.
Comment 51 Lasse Schuirmann 2014-08-18 14:17:21 UTC
Created attachment 283754 [details] [review]
sidebar: Use theme-color instead of image

This is a minor visual change while it allows Boxes to adapt to theme
changes and especially makes themes like the high contrast accessibility
theme work.
Comment 52 Lasse Schuirmann 2014-08-18 14:17:26 UTC
Created attachment 283755 [details] [review]
BoxesMiniGraph: Use theme colors

This is a minor visual change while it allows Boxes to adapt to theme
changes and especially makes themes like the high contrast accessibility
theme work. The BoxesMiniGraph will now invert colors with the theme if
needed.
Comment 53 Zeeshan Ali 2014-08-18 14:32:54 UTC
Review of attachment 283742 [details] [review]:

from log it sounds like the class as added and its usage removed in the same commit. Could you make it clearer.
Comment 54 Zeeshan Ali 2014-08-18 14:34:28 UTC
Review of attachment 283743 [details] [review]:

The patch is about removal of hardcoding of colors so shortlog should reflect that instead of a side-effect.
Comment 55 Zeeshan Ali 2014-08-18 14:35:08 UTC
Review of attachment 283745 [details] [review]:

ack
Comment 56 Zeeshan Ali 2014-08-18 14:38:31 UTC
Review of attachment 283746 [details] [review]:

abbreviate 'with' as 'w/' to keep shortlog short. Good otherwise.
Comment 57 Zeeshan Ali 2014-08-18 14:40:22 UTC
Review of attachment 283747 [details] [review]:

"util-app: Remove unused get_boxes_bg_color()" would be shorter. :)

Some details would be nice (when it become redundant?).
Comment 58 Zeeshan Ali 2014-08-18 14:43:01 UTC
Review of attachment 283748 [details] [review]:

Same comment about shortlog. A bit confused by the details as facts are mentiond but a conclusion seems missing . :)
Comment 59 Zeeshan Ali 2014-08-18 14:49:12 UTC
Review of attachment 283749 [details] [review]:

ack
Comment 60 Zeeshan Ali 2014-08-18 14:50:59 UTC
Review of attachment 283751 [details] [review]:

well its only used by wizard so i'll keep 'wizard' in name at least if rename it at all (which I think isn't needed/justified).
Comment 61 Zeeshan Ali 2014-08-18 14:51:58 UTC
Review of attachment 283751 [details] [review]:

Ah you later re-use it in other classes, so you might want to reflect that in the log.
Comment 62 Zeeshan Ali 2014-08-18 14:52:40 UTC
Review of attachment 283752 [details] [review]:

ack
Comment 63 Zeeshan Ali 2014-08-18 14:55:25 UTC
Review of attachment 283753 [details] [review]:

ack
Comment 64 Zeeshan Ali 2014-08-18 14:56:21 UTC
Review of attachment 283754 [details] [review]:

'theme-color' -> 'theme color'. :)
Comment 65 Zeeshan Ali 2014-08-18 14:57:56 UTC
Review of attachment 283755 [details] [review]:

'Use theme colors'

As opposed to what? When shortlog is self-explainatory, the details sections should start with describing the change before justification for it. This actually applies to last few patches too.
Comment 66 Lasse Schuirmann 2014-08-18 14:58:16 UTC
Review of attachment 283747 [details] [review]:

it was introduced in 2011, you really want me to git bisect through all commits since then to find the removal? or is there a better way?
Comment 67 Lasse Schuirmann 2014-08-18 15:11:29 UTC
Created attachment 283763 [details] [review]
gtk-style: Remove .boxes-machine-name-label

This class was introduced in ea48c29e and its usage was removed later.
Comment 68 Lasse Schuirmann 2014-08-18 15:11:35 UTC
Created attachment 283764 [details] [review]
gtk-style: Remove unneeded hardcoded colors

The inherited values look almost the same and provide better
maintainability due to less hardcoded colors and less code in general.
Comment 69 Lasse Schuirmann 2014-08-18 15:11:40 UTC
Created attachment 283765 [details] [review]
gtk-style: Replace hardcoded colors by theme colors

The colors from the theme look almost the same while providing better
maintainability due to less hardcoded colors and less code in general.
Comment 70 Lasse Schuirmann 2014-08-18 15:11:46 UTC
Created attachment 283766 [details] [review]
gtk-style: Replace .boxes-continue by .suggested-action

The .suggested-action class is available from the theme. There is no
need to maintain an extra clone of this class.
Comment 71 Lasse Schuirmann 2014-08-18 15:11:51 UTC
Created attachment 283767 [details] [review]
util-app: Remove unused get_boxes_bg_color()

This function was introduced back in b60fccda and its usage was removed
later.
Comment 72 Lasse Schuirmann 2014-08-18 15:11:57 UTC
Created attachment 283768 [details] [review]
wizard: Remove unneeded .boxes-bg

.boxes-bg defines that the background color is transparent. This
property is overwritten by the .wizard class and therefore the use of
this class is unneeded here.
Comment 73 Lasse Schuirmann 2014-08-18 15:12:02 UTC
Created attachment 283769 [details] [review]
gtk-style: Rename .boxes-bg to .transparent-bg

The new name describes way better that the class just makes the
background transparent.
Comment 74 Zeeshan Ali 2014-08-18 15:12:10 UTC
Review of attachment 283747 [details] [review]:

You don't need to bisect. You need to use `git blame` with `git show`.
Comment 75 Lasse Schuirmann 2014-08-18 15:12:13 UTC
Created attachment 283770 [details] [review]
gtk-style: Rename .wizard to .content-bg

This class describes the background for any content area and should have
an appropriate name. With the new name this class will later be used to
describe other content backgrounds outside the wizard.
Comment 76 Lasse Schuirmann 2014-08-18 15:12:20 UTC
Created attachment 283771 [details] [review]
gtk-style: Replace unneeded classes by .content-bg

The .content-bg class does exactly the same as these classes so we can
use this everywhere.
Comment 77 Lasse Schuirmann 2014-08-18 15:12:26 UTC
Created attachment 283772 [details] [review]
content-bg: Use theme color instead of image

This is a minor visual change while it allows Boxes to adapt to theme
changes and especially makes themes like the high contrast accessibility
theme work.
Comment 78 Lasse Schuirmann 2014-08-18 15:12:32 UTC
Created attachment 283773 [details] [review]
sidebar: Use theme color instead of image

This is a minor visual change while it allows Boxes to adapt to theme
changes and especially makes themes like the high contrast accessibility
theme work.
Comment 79 Lasse Schuirmann 2014-08-18 15:12:40 UTC
Created attachment 283774 [details] [review]
BoxesMiniGraph: Replace hardcoded colors by theme colors

The BoxesMiniGraph will now invert colors with the theme if needed.

This is a minor visual change while it allows Boxes to adapt to theme
changes and especially makes themes like the high contrast accessibility
theme work.
Comment 80 Lasse Schuirmann 2014-08-18 15:15:32 UTC
Review of attachment 283768 [details] [review]:

new shortlog: wizard: Drop use of .boxes-bg
Comment 81 Zeeshan Ali 2014-08-18 15:17:38 UTC
Review of attachment 283763 [details] [review]:

I don't think the addition of this class was important w.r.t to patch but removal, i-e we need info of when it was removed more than info of when it was added.
Comment 82 Zeeshan Ali 2014-08-18 15:18:06 UTC
Review of attachment 283764 [details] [review]:

ack
Comment 83 Lasse Schuirmann 2014-08-18 15:32:07 UTC
Created attachment 283776 [details] [review]
gtk-style: Remove .boxes-machine-name-label

This class was introduced in ea48c29e and its usage was removed in
2526a28c.
Comment 84 Lasse Schuirmann 2014-08-18 15:32:13 UTC
Created attachment 283777 [details] [review]
gtk-style: Remove unneeded hardcoded colors

The inherited values look almost the same and provide better
maintainability due to less hardcoded colors and less code in general.
Comment 85 Lasse Schuirmann 2014-08-18 15:32:19 UTC
Created attachment 283778 [details] [review]
gtk-style: Replace hardcoded colors by theme colors

The colors from the theme look almost the same while providing better
maintainability due to less hardcoded colors and less code in general.
Comment 86 Lasse Schuirmann 2014-08-18 15:32:26 UTC
Created attachment 283779 [details] [review]
gtk-style: Replace .boxes-continue by .suggested-action

The .suggested-action class is available from the theme. There is no
need to maintain an extra clone of this class.
Comment 87 Lasse Schuirmann 2014-08-18 15:32:33 UTC
Created attachment 283780 [details] [review]
util-app: Remove unused get_boxes_bg_color()

This function was introduced back in b60fccda and its usage was removed
in 6155dc10.
Comment 88 Lasse Schuirmann 2014-08-18 15:32:39 UTC
Created attachment 283781 [details] [review]
wizard: Drop use of .boxes-bg

.boxes-bg defines that the background color is transparent. This
property is overwritten by the .wizard class and therefore the use of
this class is unneeded here.
Comment 89 Lasse Schuirmann 2014-08-18 15:32:45 UTC
Created attachment 283782 [details] [review]
gtk-style: Rename .boxes-bg to .transparent-bg

The new name describes way better that the class just makes the
background transparent.
Comment 90 Lasse Schuirmann 2014-08-18 15:32:51 UTC
Created attachment 283783 [details] [review]
gtk-style: Rename .wizard to .content-bg

This class describes the background for any content area and should have
an appropriate name. With the new name this class will later be used to
describe other content backgrounds outside the wizard.
Comment 91 Lasse Schuirmann 2014-08-18 15:32:57 UTC
Created attachment 283784 [details] [review]
gtk-style: Replace unneeded classes by .content-bg

The .content-bg class does exactly the same as these classes so we can
use this everywhere.
Comment 92 Lasse Schuirmann 2014-08-18 15:33:03 UTC
Created attachment 283785 [details] [review]
content-bg: Use theme color instead of image

This is a minor visual change while it allows Boxes to adapt to theme
changes and especially makes themes like the high contrast accessibility
theme work.
Comment 93 Lasse Schuirmann 2014-08-18 15:33:09 UTC
Created attachment 283786 [details] [review]
sidebar: Use theme color instead of image

This is a minor visual change while it allows Boxes to adapt to theme
changes and especially makes themes like the high contrast accessibility
theme work.
Comment 94 Lasse Schuirmann 2014-08-18 15:33:15 UTC
Created attachment 283787 [details] [review]
BoxesMiniGraph: Replace hardcoded colors by theme colors

The BoxesMiniGraph will now invert colors with the theme if needed.

This is a minor visual change while it allows Boxes to adapt to theme
changes and especially makes themes like the high contrast accessibility
theme work.
Comment 95 Zeeshan Ali 2014-08-18 18:09:33 UTC
Attachment 283776 [details] pushed as 88d1119 - gtk-style: Remove .boxes-machine-name-label
Attachment 283777 [details] pushed as 46d46e6 - gtk-style: Remove unneeded hardcoded colors
Attachment 283778 [details] pushed as 2d050fa - gtk-style: Replace hardcoded colors by theme colors
Attachment 283779 [details] pushed as 6113618 - gtk-style: Replace .boxes-continue by .suggested-action
Attachment 283780 [details] pushed as 0b63de0 - util-app: Remove unused get_boxes_bg_color()
Attachment 283781 [details] pushed as c5d46cd - wizard: Drop use of .boxes-bg
Attachment 283782 [details] pushed as 407d644 - gtk-style: Rename .boxes-bg to .transparent-bg
Attachment 283783 [details] pushed as cbcccb2 - gtk-style: Rename .wizard to .content-bg
Attachment 283784 [details] pushed as 795f70f - gtk-style: Replace unneeded classes by .content-bg
Attachment 283785 [details] pushed as b4a3531 - content-bg: Use theme color instead of image
Attachment 283786 [details] pushed as 7b682cc - sidebar: Use theme color instead of image
Attachment 283787 [details] pushed as 787852b - BoxesMiniGraph: Replace hardcoded colors by theme colors