From 9fd8deb16dbd915e3c714cdfc938f0579d4bd47f Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Tue, 5 Dec 2017 18:18:51 +0000 Subject: [PATCH] Add maximize / minimize apps drawer icons. --- src/components/views/elements/AppTile.js | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/src/components/views/elements/AppTile.js b/src/components/views/elements/AppTile.js index 1dbb7af586..17c9d984bb 100644 --- a/src/components/views/elements/AppTile.js +++ b/src/components/views/elements/AppTile.js @@ -430,13 +430,24 @@ export default React.createClass({ deleteClasses += ' mx_AppTileMenuBarWidgetDelete'; } + const windowStateIcon = (this.props.show ? 'img/minimize.svg' : 'img/maximize.svg'); + return (
- { this.formatAppTileName() } - { this.state.widgetPageTitle && ( -  - { this.state.widgetPageTitle } - ) } + + + { this.formatAppTileName() } + { this.state.widgetPageTitle && ( +  - { this.state.widgetPageTitle } + ) } + { /* Edit widget */ } { showEditButton &&