Skip to content

Commit d00155b

Browse files
author
Meine Toonen
committed
Added text to i18n file, added icon
Signed-off-by: Meine Toonen <[email protected]>
1 parent b7d9c27 commit d00155b

File tree

3 files changed

+26
-7
lines changed

3 files changed

+26
-7
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import * as React from "react";
2+
3+
function IconMagnifier(props) {
4+
return (
5+
6+
<svg fill="#ffffff" width={24} height={24} viewBox="0 0 32 32" {...props} version="1.1" xmlns="http://www.w3.org/2000/svg">
7+
<path d="M31.707 30.282l-9.717-9.776c1.811-2.169 2.902-4.96 2.902-8.007 0-6.904-5.596-12.5-12.5-12.5s-12.5 5.596-12.5 12.5 5.596 12.5 12.5 12.5c3.136 0 6.002-1.158 8.197-3.067l9.703 9.764c0.39 0.39 1.024 0.39 1.415 0s0.39-1.023 0-1.415zM12.393 23.016c-5.808 0-10.517-4.709-10.517-10.517s4.708-10.517 10.517-10.517c5.808 0 10.516 4.708 10.516 10.517s-4.709 10.517-10.517 10.517z"></path>
8+
</svg>
9+
);
10+
}
11+
12+
export default IconMagnifier;

src/renderer/component/Select/LayerSelector.js

+8-7
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ import {
2929
IconArrowDownWithLine,
3030
IconFileDownload,
3131
IconKeyboard,
32-
IconFlashlight, IconRecord, IconStopWatch,
32+
IconFlashlight, IconRecord, IconStopWatch, IconLayers,
3333
} from "../Icon";
3434

3535
import { NameModal } from "../Modal"; // Imported custom modal component
3636
import { ButtonSettings } from "../Button";
3737
import { KeyboardViewSelector } from "../ToggleButtons";
38+
import IconMagnifier from "@Renderer/component/Icon/IconMagnifier";
3839

3940
const Style = Styled.div`
4041
display: flex;
@@ -150,16 +151,16 @@ class LayerSelector extends React.Component {
150151
];
151152
const followMode = [
152153
{
153-
name: "Dont follow",
154-
tooltip: i18n.editor.keysEditor,
154+
name: i18n.editor.follow.stop,
155+
tooltip: i18n.editor.follow.stopFollow,
155156
value: "off",
156-
icon: <IconRecord />,
157+
icon: <IconLayers />,
157158
},
158159
{
159-
name: "Follow",
160-
tooltip: i18n.editor.color.colorEditor,
160+
name: i18n.editor.follow.layer,
161+
tooltip: i18n.editor.follow.followLayer,
161162
value: "on",
162-
icon: <IconStopWatch />,
163+
icon: <IconMagnifier />,
163164
},
164165
];
165166
return (

src/renderer/i18n/en.js

+6
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@ const English = {
112112
exportToPdf: "Export layouts to pdf",
113113
layerToCopy: "You will copy the layout of this layer",
114114
},
115+
follow:{
116+
layer: "Start",
117+
stop: "Stop",
118+
followLayer: "Show active layer",
119+
stopFollow: "Don't show active layer",
120+
},
115121
color: {
116122
color: "Color",
117123
colorEditor: "Color Editor",

0 commit comments

Comments
 (0)