summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcubemaze <[email protected]>2023-05-13 12:34:05 +0800
committercubemaze <[email protected]>2023-05-13 12:56:33 +0800
commitf8364b79783394427c81360af7bd08ca2aaa9639 (patch)
tree42056204a77de83d2e51084d88ead4315f4ada11 /src
parentffa85a2aa3d6f2b0f5eedcfd795035e918fb6e63 (diff)
chore: theme style
Diffstat (limited to 'src')
-rw-r--r--src/components/Button.module.scss8
-rw-r--r--src/components/Connections.css2
-rw-r--r--src/components/Connections.module.scss2
-rw-r--r--src/components/ErrorBoundaryFallback.module.scss2
-rw-r--r--src/components/Search.module.scss2
-rw-r--r--src/components/Selection.module.scss4
-rw-r--r--src/components/SideBar.module.scss2
-rw-r--r--src/components/SwitchThemed.tsx4
-rw-r--r--src/components/shared/TextFitler.module.scss2
-rw-r--r--src/components/shared/rtf.css4
-rw-r--r--src/styles/main.scss2
11 files changed, 17 insertions, 17 deletions
diff --git a/src/components/Button.module.scss b/src/components/Button.module.scss
index bdbbcb5..31b354d 100644
--- a/src/components/Button.module.scss
+++ b/src/components/Button.module.scss
@@ -17,9 +17,9 @@
border-color: var(--color-focus-blue);
}
&:hover {
- background: #387cec;
- border: 1px solid #387cec;
color: #fff;
+ background: var(--color-focus-blue);
+ border: 1px solid var(--color-focus-blue);
}
&:active {
transform: scale(0.97);
@@ -40,8 +40,8 @@
}
&:hover {
color: #fff;
- background: #387cec;
- border: 1px solid #387cec;
+ background: var(--color-focus-blue);
+ border: 1px solid var(--color-focus-blue);
}
}
}
diff --git a/src/components/Connections.css b/src/components/Connections.css
index 55dd869..7650779 100644
--- a/src/components/Connections.css
+++ b/src/components/Connections.css
@@ -31,7 +31,7 @@
}
.react-tabs__tab:focus {
- border-color: hsl(208, 99%, 50%);
+ border-color: var(--color-focus-blue);
outline: none;
}
diff --git a/src/components/Connections.module.scss b/src/components/Connections.module.scss
index 5903a3c..687322d 100644
--- a/src/components/Connections.module.scss
+++ b/src/components/Connections.module.scss
@@ -37,7 +37,7 @@
border-radius: 18px;
border: 1px solid var(--color-input-border);
box-sizing: border-box;
- color: #c1c1c1;
+ color: var(--color-text-secondary);
display: inline-block;
font-size: inherit;
height: 36px;
diff --git a/src/components/ErrorBoundaryFallback.module.scss b/src/components/ErrorBoundaryFallback.module.scss
index 6133568..d2adadb 100644
--- a/src/components/ErrorBoundaryFallback.module.scss
+++ b/src/components/ErrorBoundaryFallback.module.scss
@@ -28,7 +28,7 @@
color: var(--color-text-secondary);
&:hover,
&:active {
- color: #387cec;
+ color: var(--color-focus-blue);
}
svg {
diff --git a/src/components/Search.module.scss b/src/components/Search.module.scss
index 58c20aa..cd3601b 100644
--- a/src/components/Search.module.scss
+++ b/src/components/Search.module.scss
@@ -28,7 +28,7 @@
border-radius: 20px;
border: 1px solid var(--color-input-border);
box-sizing: border-box;
- color: #c1c1c1;
+ color: var(--color-text-secondary);
display: inline-block;
font-size: inherit;
height: 40px;
diff --git a/src/components/Selection.module.scss b/src/components/Selection.module.scss
index 5fa4576..44cf4d8 100644
--- a/src/components/Selection.module.scss
+++ b/src/components/Selection.module.scss
@@ -15,9 +15,9 @@
}
.input:focus + .cnt {
- border-color: #387cec;
+ border-color: var(--color-focus-blue);
}
.input:checked + .cnt {
- border-color: #387cec;
+ border-color: var(--color-focus-blue);
}
diff --git a/src/components/SideBar.module.scss b/src/components/SideBar.module.scss
index 2ce447c..a762056 100644
--- a/src/components/SideBar.module.scss
+++ b/src/components/SideBar.module.scss
@@ -60,7 +60,7 @@
@media (max-width: 768px) {
background: none;
- border-bottom: 2px solid #387cec;
+ border-bottom: 2px solid var(--color-focus-blue);
}
}
diff --git a/src/components/SwitchThemed.tsx b/src/components/SwitchThemed.tsx
index aba10d1..45dfa57 100644
--- a/src/components/SwitchThemed.tsx
+++ b/src/components/SwitchThemed.tsx
@@ -12,7 +12,7 @@ const Switch = ReactSwitch.default ? ReactSwitch.default : ReactSwitch;
function SwitchThemed({ checked = false, onChange, theme, name }) {
const offColor = theme === 'dark' ? '#393939' : '#e9e9e9';
-
+ const onColor = theme === 'dark' ? '#306081' : '#24292f';
return (
<Switch
onChange={onChange}
@@ -20,7 +20,7 @@ function SwitchThemed({ checked = false, onChange, theme, name }) {
uncheckedIcon={false}
checkedIcon={false}
offColor={offColor}
- onColor="#047aff"
+ onColor={onColor}
offHandleColor="#fff"
onHandleColor="#fff"
handleDiameter={24}
diff --git a/src/components/shared/TextFitler.module.scss b/src/components/shared/TextFitler.module.scss
index 7d7ba9b..3242b66 100644
--- a/src/components/shared/TextFitler.module.scss
+++ b/src/components/shared/TextFitler.module.scss
@@ -5,7 +5,7 @@
border-radius: 20px;
border: 1px solid var(--color-input-border);
box-sizing: border-box;
- color: #c1c1c1;
+ color: var(--color-text-secondary);
display: inline-block;
font-size: inherit;
outline: none;
diff --git a/src/components/shared/rtf.css b/src/components/shared/rtf.css
index 574aad1..54ebc9b 100644
--- a/src/components/shared/rtf.css
+++ b/src/components/shared/rtf.css
@@ -223,8 +223,8 @@
}
.rtf--ab:hover {
- background: #387cec;
- border: 1px solid #387cec;
+ background: var(--color-focus-blue);
+ border: 1px solid var(--color-focus-blue);
color: #fff;
}
diff --git a/src/styles/main.scss b/src/styles/main.scss
index 305b54c..c501eb4 100644
--- a/src/styles/main.scss
+++ b/src/styles/main.scss
@@ -127,7 +127,7 @@ body {
--bc-tooltip: #555;
--select-border-color: #040404;
--select-bg-hover: url(data:image/svg+xml,%0A%20%20%20%20%3Csvg%20width%3D%228%22%20height%3D%2224%22%20viewBox%3D%220%200%208%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%20%20%20%20%3Cpath%20d%3D%22M4%207L7%2011H1L4%207Z%22%20fill%3D%22%23ffffff%22%20%2F%3E%0A%20%20%20%20%20%20%3Cpath%20d%3D%22M4%2017L1%2013L7%2013L4%2017Z%22%20fill%3D%22%23ffffff%22%20%2F%3E%0A%20%20%20%20%3C%2Fsvg%3E%0A%20%20);
- --bg-log-info-card: #262626;
+ --bg-log-info-card: #24292f;
}
@mixin light {