Skip to content

Commit 7c60cf4

Browse files
committed
indent line color icon
1 parent 2dd0a83 commit 7c60cf4

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

src/components/Console.tsx

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import React, { useEffect, useState } from 'react';
2+
import { IconContext } from 'react-icons';
3+
import { MdOutlineColorLens } from 'react-icons/md';
24
import Select, { ActionMeta, SingleValue } from 'react-select';
35
import Switch from 'react-switch';
46
import styled from 'styled-components';
@@ -104,7 +106,7 @@ export const Console: React.FC<Props> = () => {
104106
return (
105107
<MainContainer>
106108
<TitleWrapper>
107-
<Title>Select Favorite List Maker</Title>
109+
<Title>Select Favorite Maker</Title>
108110
<SwitchLabel>
109111
<Switch
110112
checked={indentLining}
@@ -120,6 +122,11 @@ export const Console: React.FC<Props> = () => {
120122
<Spacer width={6} />
121123
<span>Indent Visible</span>
122124
</SwitchLabel>
125+
<IconContext.Provider
126+
value={{ size: '20px', style: { padding: '2px' } }}
127+
>
128+
<ColorLens />
129+
</IconContext.Provider>
123130
</TitleWrapper>
124131
<IndentContainer>
125132
{indentOptions.map((indentOption) => {
@@ -149,6 +156,14 @@ export const Console: React.FC<Props> = () => {
149156
);
150157
};
151158

159+
const ColorLens = styled(MdOutlineColorLens)`
160+
color: #00b428;
161+
:hover {
162+
color: #b4008c;
163+
cursor: pointer;
164+
}
165+
`;
166+
152167
const MainContainer = styled.div`
153168
background-color: #dcdde0;
154169
padding: 4px;

0 commit comments

Comments
 (0)