From dd3f34d936124d60ad5acd55dd0e42fda590dd26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Loi=CC=88c=20Correnson?= <loic.correnson@cea.fr> Date: Tue, 19 May 2020 10:36:36 +0200 Subject: [PATCH] [ivette] fix some button titles issues --- ivette/src/renderer/ASTview.tsx | 14 ++++++++++---- ivette/src/renderer/Controller.tsx | 11 +++++++---- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/ivette/src/renderer/ASTview.tsx b/ivette/src/renderer/ASTview.tsx index a2fa3df14e2..d9a3110a93e 100644 --- a/ivette/src/renderer/ASTview.tsx +++ b/ivette/src/renderer/ASTview.tsx @@ -111,10 +111,16 @@ const ASTview = () => { return ( <> <TitleBar> - <IconButton icon="ZOOM.OUT" onClick={zoomOut} /> - <IconButton icon="ZOOM.IN" onClick={zoomIn} /> - <IconButton icon="CODE" onClick={themePopup} /> - <IconButton icon="WRAPTEXT" selected={wrapText} onClick={setWrapText} /> + <IconButton icon="ZOOM.OUT" onClick={zoomOut} + disabled={!theFunction} + title="Zoom In (increase font size)" /> + <IconButton icon="ZOOM.IN" onClick={zoomIn} + disabled={!theFunction} + title="Zoom Out (decrease font size)" /> + <IconButton icon="CODE" onClick={themePopup} + title="Choose Theme" /> + <IconButton icon="WRAPTEXT" selected={wrapText} onClick={setWrapText} + title="Wrap Text" /> </TitleBar> <Text buffer={buffer} diff --git a/ivette/src/renderer/Controller.tsx b/ivette/src/renderer/Controller.tsx index a92c1aa39cc..01a96432832 100644 --- a/ivette/src/renderer/Controller.tsx +++ b/ivette/src/renderer/Controller.tsx @@ -168,7 +168,10 @@ const RenderConsole = () => { return ( <> <TitleBar label={command ? 'Command Line' : 'Console'}> - <Label className="dimmed" display={command && length > 0}> + <Label + className="dimmed" + display={command && length > 0} + title="Rank in History" > {1 + index}/{length} </Label> <Space /> @@ -205,20 +208,20 @@ const RenderConsole = () => { display={command} disabled={!next} onClick={doNext} - title="Previous Command" + title="Next Command" /> <Space /> <IconButton icon="MEDIA.PLAY" display={command} onClick={doExec} - title="Execute Command Line" + title="Execute Command" /> <IconButton icon="EDIT" selected={command} onClick={switchCmd} - title="Edit Command Line" + title="Edit Command" /> </TitleBar> <Text -- GitLab