diff --git a/src-ui/app/_index_css/root.css b/src-ui/app/_index_css/root.css
index e2bcc6e7..4d96f38b 100644
--- a/src-ui/app/_index_css/root.css
+++ b/src-ui/app/_index_css/root.css
@@ -3,7 +3,7 @@
:root {
font-size: 62.5%;
- color: #F2F2F2;
+ color: var(--dark_basic_text_color);
}
* {
diff --git a/src-ui/app/_index_css/variables.css b/src-ui/app/_index_css/variables.css
index 2d38f67a..d212b415 100644
--- a/src-ui/app/_index_css/variables.css
+++ b/src-ui/app/_index_css/variables.css
@@ -20,6 +20,10 @@
--sent_400_color: #6197b4;
--received_300_color: #a861b4;
+ --error_bc_color: #bb4448;
+ --error_bc_active_color: #9c3938;
+ --success_bc_color: #368777;
+ --waring_color: #cb944f;
--dark_basic_text_color: #f2f2f2;
--dark_100_color: #f5f7fb;
@@ -48,8 +52,11 @@
--dark_975_color: #1a1b1d;
--dark_1000_color: #151517;
- --dark_825_color_cc: #434447cc;
--dark_550_color_22: #94959922;
+ --dark_825_color_cc: #434447cc;
+ --dark_1000_color_66: #15151766;
+ --dark_1000_color_aa: #151517aa;
+ --dark_1000_color_dd: #151517dd;
--title_bar_height: 2rem;
diff --git a/src-ui/app/config_page/setting_section/setting_box/_components/_atoms/_entry/_Entry.module.scss b/src-ui/app/config_page/setting_section/setting_box/_components/_atoms/_entry/_Entry.module.scss
index c9744de6..5dd43ff1 100644
--- a/src-ui/app/config_page/setting_section/setting_box/_components/_atoms/_entry/_Entry.module.scss
+++ b/src-ui/app/config_page/setting_section/setting_box/_components/_atoms/_entry/_Entry.module.scss
@@ -16,7 +16,6 @@
height: 100%;
font-size: 1.4rem;
resize: none;
- color: var(--dark_basic_text_color);
&.is_disabled {
color: var(--dark_500_color);
pointer-events: none;
diff --git a/src-ui/app/config_page/setting_section/setting_box/_components/deepl_auth_key/DeeplAuthKey.module.scss b/src-ui/app/config_page/setting_section/setting_box/_components/deepl_auth_key/DeeplAuthKey.module.scss
index 915f300c..1f5a530e 100644
--- a/src-ui/app/config_page/setting_section/setting_box/_components/deepl_auth_key/DeeplAuthKey.module.scss
+++ b/src-ui/app/config_page/setting_section/setting_box/_components/deepl_auth_key/DeeplAuthKey.module.scss
@@ -22,11 +22,11 @@
bottom: 0;
left: 0;
border-radius: 0.4rem;
- background-color: (#00000044);
+ background-color: var(--dark_1000_color_66);
backdrop-filter: blur(4rem);
border: solid 0.1rem var(--dark_700_color);
&:hover {
- background-color: (#00000088);
+ background-color: var(--dark_1000_color_aa);
}
&:active {
backdrop-filter: blur(1.4rem);
@@ -35,7 +35,6 @@
.edit_button {
padding: 0.8rem 1.2rem;
- color: var(--dark_basic_text_color);
height: 100%;
width: 100%;
font-size: 1.4rem;
@@ -62,7 +61,6 @@
}
.save_button_label {
- color: var(--dark_basic_text_color);
font-size: 1.4rem;
}
@@ -91,7 +89,6 @@
.open_webpage_text {
font-size: 1.2rem;
- color: var(--dark_basic_text_color);
}
.external_link_svg {
diff --git a/src-ui/app/config_page/setting_section/setting_box/_components/download_models/DownloadModels.jsx b/src-ui/app/config_page/setting_section/setting_box/_components/download_models/DownloadModels.jsx
index 6ec51fb1..b1f2360b 100644
--- a/src-ui/app/config_page/setting_section/setting_box/_components/download_models/DownloadModels.jsx
+++ b/src-ui/app/config_page/setting_section/setting_box/_components/download_models/DownloadModels.jsx
@@ -1,12 +1,10 @@
-import { useState, useEffect } from "react";
import { useTranslation } from "react-i18next";
-import clsx from "clsx";
import CircularProgress from "@mui/material/CircularProgress";
import styles from "./DownloadModels.module.scss";
import {
RadioButton,
- // DownloadModels,
} from "../index";
+
export const DownloadModels = (props) => {
const options = props.options.map(item => ({
...item,
@@ -25,25 +23,11 @@ export const DownloadModels = (props) => {
downloadStartFunction={props.downloadStartFunction}
/>
>
- //
- // {props.models.map((option) => (
- //
- // ))}
- //
);
};
const ModelSelector = ({option, ...props}) => {
const { t } = useTranslation();
- const [circular_color, setCircularColor] = useState("");
- const [circular_color_2, setCircularColor2] = useState("");
- useEffect(() => {
- const circular_color = getComputedStyle(document.documentElement).getPropertyValue("--dark_600_color");
- setCircularColor(circular_color.trim());
- const circular_color_2 = getComputedStyle(document.documentElement).getPropertyValue("--primary_300_color");
- setCircularColor2(circular_color_2.trim());
- }, []);
-
const renderContent = () => {
const circular_progress = Math.floor(option.progress / 10) * 10;
@@ -56,13 +40,13 @@ const ModelSelector = ({option, ...props}) => {
variant={(option.progress === 100) ? "indeterminate" : "determinate"}
value={circular_progress}
size="3rem"
- sx={{ color: circular_color_2 }}
+ sx={{ color: "var(--primary_300_color)" }}
/>
{`${Math.round(option.progress)}%`}
>
);
case option.is_pending:
- return ;
+ return ;
case !option.is_downloaded:
return (