mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-18 06:28:40 -09:00
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
This commit is contained in:
parent
039729221f
commit
638725fea6
1 changed files with 7 additions and 3 deletions
|
|
@ -232,10 +232,14 @@ export default class Header extends Component {
|
||||||
height: '34px',
|
height: '34px',
|
||||||
padding: '12px 15px 12px 15px',
|
padding: '12px 15px 12px 15px',
|
||||||
WebkitAppRegion: 'no-drag',
|
WebkitAppRegion: 'no-drag',
|
||||||
color: '#808080',
|
color: '#FFFFFF',
|
||||||
|
opacity: 0.5,
|
||||||
shapeRendering: 'crispEdges',
|
shapeRendering: 'crispEdges',
|
||||||
':hover': {
|
':hover': {
|
||||||
color: '#FFFFFF'
|
opacity: 1
|
||||||
|
},
|
||||||
|
':active': {
|
||||||
|
opacity: 0.3
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -268,7 +272,7 @@ export default class Header extends Component {
|
||||||
|
|
||||||
maximizeWindowLeft: {order: 3},
|
maximizeWindowLeft: {order: 3},
|
||||||
|
|
||||||
closeWindow: {':hover': {color: '#FE354E'}}
|
closeWindow: {':hover': {color: '#FE354E'}, ':active': {color: '#FE354E'}}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue