Yaru: Restyle buttons to look more modern

Created on 27 Feb 2018  路  28Comments  路  Source: ubuntu/yaru

I simply can鈥檛 bear the flat gray chosen for the buttons. Can it be brightened up a little bit? It鈥檒l help with #115.

gtk2 Design

Most helpful comment

Work in progress
newbuttons

with transition
newbuttons-transition

All 28 comments

+1 @fitojb We know they look a bit old-school and we're investigating other possibilities. The current design uses Ubuntu Touch as inspiration.

I would love to hear/see if you have a suggestion! I'll give the above a try.

I don't think they're exactly depressing but I thought about that too. Two quick inspirations for mockups could be:

  • The linked screenshot uses rgb-values of 253 for background and 245 for buttons while Communitheme uses 250 and 237. (Could be about color reproduction through image compression/rendering though.)
  • I really like the new design for the check and radio buttons. Maybe analogously try white buttons? (I will propose something similar for slider switches soon, too.)
  • Maybe scaling back the drop shadow a little (less dark) helps too. (Another issue to be filed: drop shadow for round buttons looks really weird.)

I put together a little collection of buttons in other themes to give some inspiration:
communitheme-buttons at the moment (27.02.2018)
communitheme-buttons

EDIT: communitheme-buttons (08.03.2018)
buttons0803

1 adapta-theme buttons
adapta-buttons

2 arc-theme buttons
arc-buttons

3 pop-theme buttons
pop-buttons

4 united-theme buttons
united-buttons

5 numix-theme buttons
numix-buttons

6 ambiance-theme buttons
ambiance-buttons

7 adwaita-theme buttons
adwaita-buttons

EDIT: added button from @ya-d
8 macOS (left is pushed down)
36733231-3c8a8ca4-1bd0-11e8-9af5-5d8b376e6267

Thanks for putting those together! 馃憤 So the more common theme seems to be brighter buttons (Mac OS too). Adwaita clearly (and much more so) suffers from the same muddy, triste look IMHO.

I like the United buttons (white with softer border and shadow) but I also like the current 3-dimensional inner shadow for active/pushed down state (though it might be a bit too soft/blured currently which makes it a bit unrealistic from a lighting perspective).

8 macOS (left is pushed down)
macos buttons

// edit
Referencing #172.

IMHO a combination of 3 and 4 could fit the best.
shadows: from 3 because they look the most realistic.
shape: from 4 because the corners are more rounded and that would fit more to the suru-style.
EDIT: and yes, +1 for brighter buttons

MacOS buttons work fine because the background is darker than communitheme's one. It's basically a color inversion and maybe also a gradient
EDIT: and pushed button is terrible :smile:

Regarding MacOS: Those were actually "header bar" buttons, sorry. In app buttons are straight white against rgb 236 or 227 background. Maybe @NusiNusi can replace the screenshot.

8 macOS buttons
macos buttons 2

So what are the parts we need to think about?

  • shadows/glow
  • shape
  • colour
  • possible gradient
  • size

EDIT: I found a site where people with no technical expertise can build buttons:
http://css3buttongenerator.com/#
Sure, there are not many options but maybe it helps us building mockups?

EDIT 2: Found a better site:
https://dabuttonfactory.com/

Also, macos button does not have any hover effect (they have very limited effects in general). Maybe simplifying is the way? :smile:

Hey! Here's my humble opinion:

Adapta and POP buttons lacks contrast.
Adwaita, Adapta and POP buttons are HUGE.
Community theme, Adwaita and partially Ambiance looks dated.
Arc and Numix lacks borders or/and shadow and without either it reduce discoverability (is this a button?)

I really like Arc (and the derivatives) except for what I just mentioned, so below is a mockup based on that with a darker border and a shadow on buttons. I was going for a PopOS shadow, but it didn't turn out like that. I also forgot the suru round corners so imagine these ;)

_(click to view in full size)_
buttonsssssssssss

I like them! Especially the little shadow underneath the button is really nice! We already discussed this on another issue (which was closed #164 ), but: how would they react when hovered or clicked? This will surely depend on #184 . My opinion: your buttons should be implemented ASAP!
EDIT: They look a lot like 4 united-theme buttons.

EDIT2: @madsrh I like the hover-effect a lot. Would it be possible to let this effect fade in?

Work in progress
newbuttons

with transition
newbuttons-transition

@clobrano Wow, You're fast! The deactivated border looks darker than the active ones, but I guess you already know that. Except for that, it looks really good!

looks best with transition. With suru round corners like @madsrh planned it would look perfect. at least for me.

@NusiNusi I acutally think this looks great

Reopening this because gtk2 style hasn't not been addressed yet

I've been working on buttons a little bit to fix the contrast and border issues. They're darkened _just_ a bit.

buttons

flat

I was hoping to have a fusion of the old style and the new style. I'd really like the dark theme to have the bottom highlight like the old style as well, as I think the dark theme buttons look too flat but that depends on what everyone else thinks of it, of course.

The orange focus ring will need to be changed to outline-offset: -3px; or similar as you can see in the gif (for non-flat buttons) that it's hard to tell when a button is being hovered on while it's in focus (so I made hovering darken the background color a little).

I like this proposal, just not sure about the dark border of pressed button. Maybe a little more similar to the active insensitive one?

Updated: new

focus

Nice!

@godlyranchdressing:

I've been working on buttons a little bit to fix the contrast and border issues. They're darkened just a bit.

I suggested (Hangout #150) a background change to fix the contrast issue. Did you (or @clobrano ) argue against the background change to #f7f7f7 (porcelain)?

I'm not against changing bg color, in fact I wondered whether too much white could be annoying.

Here is a selection of intermediate color though, since I also lik

Current (#FDFDFD)
image

porcelain (#F7F7F7)
image

F9F9F9

image

FAFAFA

image

I guess we should move this conversation to issue #259 馃槃

I'm still +1 for porcelain (#F7F7F7)

No please :smile: , that was only sidebar's color

+1 for #fafafa

IMHO the buttons looked this way the best:
https://user-images.githubusercontent.com/2883614/36802888-68189d98-1cb6-11e8-847a-123a855fb404.gif
what where the reasons for the change?

@NusiNusi please look for the bug about reverting button change.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sicklylife-jp picture sicklylife-jp  路  3Comments

madsrh picture madsrh  路  3Comments

pojntfx picture pojntfx  路  3Comments

matthewpaulthomas picture matthewpaulthomas  路  3Comments

Muqtxdir picture Muqtxdir  路  3Comments