Merge lp:~c-lobrano/ubuntu-themes/pathbar-review into lp:ubuntu-themes

Proposed by Carlo Lobrano
Status: Merged
Approved by: Marco Trevisan (Treviño)
Approved revision: 621
Merged at revision: 622
Proposed branch: lp:~c-lobrano/ubuntu-themes/pathbar-review
Merge into: lp:ubuntu-themes
Diff against target: 186 lines (+91/-20)
3 files modified
Ambiance/gtk-3.20/gtk-widgets.css (+44/-12)
Radiance/gtk-3.20/gtk-widgets-radiance.css (+1/-2)
Radiance/gtk-3.20/gtk-widgets.css (+46/-6)
To merge this branch: bzr merge lp:~c-lobrano/ubuntu-themes/pathbar-review
Reviewer Review Type Date Requested Status
Marco Trevisan (Treviño) Approve
Review via email: mp+342836@code.launchpad.net

Commit message

Ambiance, Radiance: Review of pathbar and stackswitcher buttons

In order to solve inconsistencies in Nautilus Path bar and in stackswitcher buttons:

Changed checked state:
- from background color change to light "3D pressed button effect"

Changed disabled state: background is now the same as enabled button, but
- label is dimmed (as it was before)
- borders are dimmed

Change proposed and designed at https://github.com/CanonicalLtd/desktop-design/issues/28

To post a comment you must log in.
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Couple of things here:
 1. Maybe a bit more inner shadow would be nicer, but not sure... There was some discussion already in github, but maybe somethin more closer to the mockup
 2. Could you provide an .svg too for the generated borders .png?

Cheers

Revision history for this message
Carlo Lobrano (c-lobrano) wrote :

Hi Marco,

right, I misunderstood the discussion on github, I'll increase the shadow.
About the borders, do you need both .svg and .png, is that right? Which one will be used?

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

PNGs have to be used, but the .svg should be included in the source code in case we need to edit it quickly or in case we need to regenerate it for bigger scaling.

Revision history for this message
Carlo Lobrano (c-lobrano) wrote :

At this link there are some variations I tried

https://paper.dropbox.com/doc/UT-pathbar-XbMB0Y4jGlv0YgKfOlw09

It is a full list of the attempts I tracked, so the firsts are probably not what you meant, but the last 3 might

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :
Revision history for this message
Carlo Lobrano (c-lobrano) wrote :

Hi Trevinho, sorry for the late reply. I should be able to check it on
Thursday, hope it is not too late

Il lun 16 apr 2018, 23:01 Marco Trevisan (Treviño) <mail@3v1n0.net> ha
scritto:

> I guess this is the best compromise:
>
>
> https://photos-6.dropbox.com/t/2/AAC_6sGju6e4ivZWkTfAiMyMRrbxxHkox8ZCimGaOVpnkQ/12/489501/png/2048x1/5/1523926800/0/10/image.png/_/png%2520https%253A%252F%252Fd2mxuefqeaa7sj.cloudfront.net%252Fs_68309CEF1ACE56932BF20E99D6B8C0AA9D907E677135141F9D2031A1C215D473_1523392306594_file.png
>
> The 6th from the start (commented there too).
>
> Any chance for the .svg's? Anyway I'd prefer to land this this week... :)
> --
>
> https://code.launchpad.net/~c-lobrano/ubuntu-themes/pathbar-review/+merge/342836
> You are the owner of lp:~c-lobrano/ubuntu-themes/pathbar-review.
>

621. By Carlo Lobrano

Ambiance, Radiance: updated pressed effect according to code review

Revision history for this message
Carlo Lobrano (c-lobrano) wrote :

Updated .css of Ambiance and Radiance with proposed mockup, but I need to ask for help about svg. I tried with both inkscape and online converters but the result was not good

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Ok, that's fine for now... How these png where generated though?

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Anyway speaking of the fix itself I think it's a good improvement, so let's go with this.

If we can have someone to create SVGs also would be cool (there are already svg borders in the source code that can be reused).

Cheers

review: Approve
Revision history for this message
Carlo Lobrano (c-lobrano) wrote :

> How these png where generated though?

I think Mads started from other png

> If we can have someone to create SVGs also would be cool (there are already svg borders in the source code that can be reused).

I will look at that, thank you :)

Revision history for this message
MadsRH (madsrh) wrote :

> ...there are already svg borders in the source code that can be reused

@Marco Trevisan could you point me to the SVG? Should this be located in the gtk-3.0 assets folder?

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'Ambiance/gtk-3.0/assets/button-toolbar-disabled.png'
0Binary files Ambiance/gtk-3.0/assets/button-toolbar-disabled.png 1970-01-01 00:00:00 +0000 and Ambiance/gtk-3.0/assets/button-toolbar-disabled.png 2018-04-19 09:54:49 +0000 differ0Binary files Ambiance/gtk-3.0/assets/button-toolbar-disabled.png 1970-01-01 00:00:00 +0000 and Ambiance/gtk-3.0/assets/button-toolbar-disabled.png 2018-04-19 09:54:49 +0000 differ
=== added file 'Ambiance/gtk-3.0/assets/button-toolbar-disabled@2.png'
1Binary files Ambiance/gtk-3.0/assets/button-toolbar-disabled@2.png 1970-01-01 00:00:00 +0000 and Ambiance/gtk-3.0/assets/button-toolbar-disabled@2.png 2018-04-19 09:54:49 +0000 differ1Binary files Ambiance/gtk-3.0/assets/button-toolbar-disabled@2.png 1970-01-01 00:00:00 +0000 and Ambiance/gtk-3.0/assets/button-toolbar-disabled@2.png 2018-04-19 09:54:49 +0000 differ
=== added file 'Ambiance/gtk-3.0/assets/radiance-button-toolbar-disabled.png'
2Binary files Ambiance/gtk-3.0/assets/radiance-button-toolbar-disabled.png 1970-01-01 00:00:00 +0000 and Ambiance/gtk-3.0/assets/radiance-button-toolbar-disabled.png 2018-04-19 09:54:49 +0000 differ2Binary files Ambiance/gtk-3.0/assets/radiance-button-toolbar-disabled.png 1970-01-01 00:00:00 +0000 and Ambiance/gtk-3.0/assets/radiance-button-toolbar-disabled.png 2018-04-19 09:54:49 +0000 differ
=== added file 'Ambiance/gtk-3.0/assets/radiance-button-toolbar-disabled@2.png'
3Binary files Ambiance/gtk-3.0/assets/radiance-button-toolbar-disabled@2.png 1970-01-01 00:00:00 +0000 and Ambiance/gtk-3.0/assets/radiance-button-toolbar-disabled@2.png 2018-04-19 09:54:49 +0000 differ3Binary files Ambiance/gtk-3.0/assets/radiance-button-toolbar-disabled@2.png 1970-01-01 00:00:00 +0000 and Ambiance/gtk-3.0/assets/radiance-button-toolbar-disabled@2.png 2018-04-19 09:54:49 +0000 differ
=== modified file 'Ambiance/gtk-3.20/gtk-widgets.css'
--- Ambiance/gtk-3.20/gtk-widgets.css 2018-03-28 06:27:00 +0000
+++ Ambiance/gtk-3.20/gtk-widgets.css 2018-04-19 09:54:49 +0000
@@ -579,7 +579,7 @@
579 color: @link_color;579 color: @link_color;
580}580}
581581
582button separator { 582button separator {
583 color: shade(@bg_color, 1.30);583 color: shade(@bg_color, 1.30);
584}584}
585585
@@ -3029,12 +3029,47 @@
3029 url("assets/backdrop-button-toolbar@2.png"));3029 url("assets/backdrop-button-toolbar@2.png"));
3030}3030}
30313031
3032.primary-toolbar button:active,3032headerbar .linked button.text-button:checked {
3033headerbar button:active {3033 background-color: @dark_bg_color;
3034 background-image: -gtk-gradient (linear, left top, left bottom,3034 border-image: none;
3035 from (shade (@dark_bg_color, 0.95)),3035 box-shadow: inset 2px 0px 2px -1px shade(@dark_bg_color, 0.5),
3036 to (shade (@dark_bg_color, 1.0)));3036 inset 0px 2px 2px -1px shade(@dark_bg_color, 0.5),
3037 text-shadow: 0 -1px shade (@dark_bg_color, 0.6);3037 inset 0px -2px 2px -1px shade(@dark_bg_color, 1.4),
3038 inset -2px 0px 2px -1px shade(@dark_bg_color, 1.4);
3039
3040 margin-bottom: 1px;
3041 margin-top: 1px;
3042}
3043
3044headerbar .linked button.slider-button:first-child:disabled {
3045 box-shadow: inset -1px 0 shade (@dark_bg_color, 0.9);
3046}
3047
3048headerbar stackswitcher.horizontal button.text-button:checked {
3049 background-color: @dark_bg_color;
3050 border-color: @dark_bg_color;
3051 border-image: none;
3052 border-style: solid none;
3053 border-width: 1px 0;
3054 box-shadow: inset 2px 0px 2px -1px shade(@dark_bg_color, 0.5),
3055 inset 0px 1px 2px -1px shade(@dark_bg_color, 0.5),
3056 inset 0px -2px 2px -1px shade(@dark_bg_color, 1.4),
3057 inset -2px 0px 2px -1px shade(@dark_bg_color, 1.4);
3058 margin: 1px 0;
3059}
3060
3061headerbar stackswitcher.horizontal button.text-button:first-child:checked {
3062 border-radius: 6px 0 0 6px;
3063 border-style: solid none solid solid;
3064 border-width: 1px 0 1px 1px;
3065 padding-right: 8px;
3066}
3067
3068headerbar stackswitcher.horizontal button.text-button:last-child:checked {
3069 border-style: solid solid solid none;
3070 border-width: 1px 1px 1px 0;
3071 border-radius: 0 6px 6px 0;
3072 padding-left: 8px;
3038}3073}
30393074
3040.primary-toolbar button:checked:disabled,3075.primary-toolbar button:checked:disabled,
@@ -3046,11 +3081,8 @@
30463081
3047.primary-toolbar button:disabled,3082.primary-toolbar button:disabled,
3048headerbar button:disabled {3083headerbar button:disabled {
3049 background-image: -gtk-gradient (linear, left top, left bottom,3084 border-image-source: -gtk-scaled(url("assets/button-toolbar-disabled.png"),
3050 from (shade (@dark_bg_color, 1.01)),3085 url("assets/button-toolbar-disabled@2.png"));
3051 to (shade (@dark_bg_color, 0.99)));
3052 border-image-source: -gtk-scaled(url("assets/button-toolbar.png"),
3053 url("assets/button-toolbar@2.png"));
3054}3086}
30553087
3056.primary-toolbar button.flat:disabled {3088.primary-toolbar button.flat:disabled {
30573089
=== modified file 'Radiance/gtk-3.20/gtk-widgets-radiance.css'
--- Radiance/gtk-3.20/gtk-widgets-radiance.css 2017-05-08 17:05:56 +0000
+++ Radiance/gtk-3.20/gtk-widgets-radiance.css 2018-04-19 09:54:49 +0000
@@ -96,8 +96,7 @@
96.primary-toolbar button:disabled,96.primary-toolbar button:disabled,
97headerbar button:hover,97headerbar button:hover,
98headerbar button:backdrop:hover,98headerbar button:backdrop:hover,
99headerbar button:active,99headerbar button:active {
100headerbar button:disabled {
101 background-image: -gtk-gradient (linear, left top, left bottom,100 background-image: -gtk-gradient (linear, left top, left bottom,
102 from (shade (@dark_bg_color, 1.03)),101 from (shade (@dark_bg_color, 1.03)),
103 to (shade (@dark_bg_color, 0.96)));102 to (shade (@dark_bg_color, 0.96)));
104103
=== modified file 'Radiance/gtk-3.20/gtk-widgets.css'
--- Radiance/gtk-3.20/gtk-widgets.css 2018-03-28 06:27:00 +0000
+++ Radiance/gtk-3.20/gtk-widgets.css 2018-04-19 09:54:49 +0000
@@ -2936,7 +2936,6 @@
2936.primary-toolbar button,2936.primary-toolbar button,
2937.titlebar button,2937.titlebar button,
2938headerbar button,2938headerbar button,
2939headerbar button:disabled,
2940.primary-toolbar button.flat:hover {2939.primary-toolbar button.flat:hover {
2941 background: transparent;2940 background: transparent;
2942 border-image-source: -gtk-scaled(url("assets/radiance-button-toolbar.png"),2941 border-image-source: -gtk-scaled(url("assets/radiance-button-toolbar.png"),
@@ -2945,6 +2944,12 @@
2945 color: @dark_fg_color;2944 color: @dark_fg_color;
2946}2945}
29472946
2947.primary-toolbar button:disabled,
2948headerbar button:disabled {
2949 border-image-source: -gtk-scaled(url("assets/radiance-button-toolbar-disabled.png"),
2950 url("assets/radiance-button-toolbar-disabled@2.png"));
2951}
2952
2948.primary-toolbar button,2953.primary-toolbar button,
2949headerbar button *,2954headerbar button *,
2950headerbar button:disabled * {2955headerbar button:disabled * {
@@ -3021,6 +3026,44 @@
3021 url("assets/radiance-backdrop-button-toolbar@2.png"));3026 url("assets/radiance-backdrop-button-toolbar@2.png"));
3022}3027}
30233028
3029headerbar .linked button.text-button:checked {
3030 background-color: shade(@dark_bg_color, 0.8);
3031 border-image: none;
3032 box-shadow: inset 2px 0px 2px -1px shade(@dark_bg_color, 0.9),
3033 inset 0px 2px 2px -1px shade(@dark_bg_color, 0.9),
3034 inset 0px -2px 2px -1px shade(@dark_bg_color, 1.2),
3035 inset -2px 0px 2px -1px shade(@dark_bg_color, 1.2);
3036 margin-bottom: 1px;
3037 margin-top: 1px;
3038}
3039
3040headerbar stackswitcher.horizontal button.text-button:checked {
3041 background-color: @dark_bg_color;
3042 border-color: shade(@dark_bg_color, 0.8);
3043 border-image: none;
3044 border-style: solid none;
3045 border-width: 1px 0;
3046 box-shadow: inset 2px 0px 2px -1px shade(@dark_bg_color, 0.9),
3047 inset 0px 2px 2px -1px shade(@dark_bg_color, 0.9),
3048 inset 0px -2px 2px -1px shade(@dark_bg_color, 1.2),
3049 inset -2px 0px 2px -1px shade(@dark_bg_color, 1.2);
3050 margin: 1px 0;
3051}
3052
3053headerbar stackswitcher.horizontal button.text-button:first-child:checked {
3054 border-radius: 6px 0 0 6px;
3055 border-style: solid none solid solid;
3056 border-width: 1px 0 1px 1px;
3057 padding-right: 8px;
3058}
3059
3060headerbar stackswitcher.horizontal button.text-button:last-child:checked {
3061 border-style: solid solid solid none;
3062 border-width: 1px 1px 1px 0;
3063 border-radius: 0 6px 6px 0;
3064 padding-left: 8px;
3065}
3066
3024.primary-toolbar button:active,3067.primary-toolbar button:active,
3025headerbar button:active {3068headerbar button:active {
3026 background-image: -gtk-gradient (linear, left top, left bottom,3069 background-image: -gtk-gradient (linear, left top, left bottom,
@@ -3038,11 +3081,8 @@
30383081
3039.primary-toolbar button:disabled,3082.primary-toolbar button:disabled,
3040headerbar button:disabled {3083headerbar button:disabled {
3041 background-image: -gtk-gradient (linear, left top, left bottom,3084 border-image-source: -gtk-scaled(url("assets/radiance-button-toolbar-disabled.png"),
3042 from (shade (@dark_bg_color, 1.01)),3085 url("assets/radiance-button-toolbar-disabled@2.png"));
3043 to (shade (@dark_bg_color, 0.99)));
3044 border-image-source: -gtk-scaled(url("assets/radiance-button-toolbar.png"),
3045 url("assets/radiance-button-toolbar@2.png"));
3046}3086}
30473087
3048.primary-toolbar button.flat:disabled {3088.primary-toolbar button.flat:disabled {

Subscribers

People subscribed via source and target branches