From 638725fea6132d0df94ba3744567ab3cdce0492c Mon Sep 17 00:00:00 2001 From: Levin Rickert Date: Sat, 19 Nov 2016 19:05:53 +0100 Subject: [PATCH] Added pressed state to window buttons on windows / linux (#985) * Added pressed state to window buttons on windows / linux * Removed transition causing flicker * Do not reset color on close button while not hovering but active --- lib/components/header.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/components/header.js b/lib/components/header.js index a02b9afe..9881aada 100644 --- a/lib/components/header.js +++ b/lib/components/header.js @@ -232,10 +232,14 @@ export default class Header extends Component { height: '34px', padding: '12px 15px 12px 15px', WebkitAppRegion: 'no-drag', - color: '#808080', + color: '#FFFFFF', + opacity: 0.5, shapeRendering: 'crispEdges', ':hover': { - color: '#FFFFFF' + opacity: 1 + }, + ':active': { + opacity: 0.3 } }, @@ -268,7 +272,7 @@ export default class Header extends Component { maximizeWindowLeft: {order: 3}, - closeWindow: {':hover': {color: '#FE354E'}} + closeWindow: {':hover': {color: '#FE354E'}, ':active': {color: '#FE354E'}} }; }