diff --git a/locales/en.yml b/locales/en.yml index f139788d..40ed70f8 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -59,19 +59,15 @@ main_page: updating: Now updating... update_modal: - update_software_desc: |- - Download the new version and automatically restart the app. - It'll take a while. Do it now? - deny_update_software: Do it later - accept_update_software: Update and Restart - -switch_compute_device_modal: + cpu_desc: Use CPU only as the compute device + cuda_desc: Selectable between CPU and GPU as compute devices + cuda_disk_space_desc: Requires approximately {{size}} of disk space close_modal: Close - switch_to_cpu_desc: Download and replace with the CPU version. The GPU will no longer be selectable as the compute device, and only the CPU will be used. - switch_to_cuda_desc: Download and replace with the CUDA (GPU-selectable) version. It will be able to select both the CPU and GPU, but it will require approximately 5GB of disk space. - switch_to_cpu_button: Switch to CPU version - switch_to_cuda_button: Switch to CUDA (GPU) version - restart_desc: The app will automatically restart. + download_latest_and_restart: |- + The latest version will be downloaded, + and the app will automatically restart. + is_latest_version_already: Already using the latest version + is_current_compute_device: Currently using this version config_page: version: version {{version}} diff --git a/locales/ja.yml b/locales/ja.yml index bdac7184..0b6eb496 100644 --- a/locales/ja.yml +++ b/locales/ja.yml @@ -58,23 +58,15 @@ main_page: updating: アップデート中... update_modal: - update_software_desc: |- - 新しいバージョンをダウンロードしてアプリを再起動します。 - 少し時間がかかります。今すぐ行いますか? - deny_update_software: 後でする - accept_update_software: アップデートして再起動 - -switch_compute_device_modal: + cpu_desc: 処理デバイスとしてCPUのみを使用 + cuda_desc: 処理デバイスとしてCPUとGPUの両方を選択可能 + cuda_disk_space_desc: 約{{size}}のディスク容量が必要 close_modal: 閉じる - switch_to_cpu_desc: |- - CPUバージョンをダウンロードして置き換えます。 - 処理デバイスとしてGPUを選択できなくなり、CPUのみを使用するようになります。 - switch_to_cuda_desc: |- - CUDA(GPU選択可能)バージョンをダウンロードして置き換えます。 - CPUとGPUの両方を選択できるようになりますが、約5GBのディスク容量が必要になります。 - switch_to_cpu_button: CPUバージョンに切り替える - switch_to_cuda_button: CUDA(GPU)バージョンに切り替える - restart_desc: アプリが自動的に再起動します。 + download_latest_and_restart: |- + 最新版がダウンロードされ、 + アプリは自動的に再起動します。 + is_latest_version_already: すでに最新版を使用中 + is_current_compute_device: 現在使用中のバージョン config_page: version: バージョン {{version}} diff --git a/src-ui/app/config_page/setting_section/setting_box/advanced_settings/AdvancedSettings.jsx b/src-ui/app/config_page/setting_section/setting_box/advanced_settings/AdvancedSettings.jsx index 3193edc9..9c1ab116 100644 --- a/src-ui/app/config_page/setting_section/setting_box/advanced_settings/AdvancedSettings.jsx +++ b/src-ui/app/config_page/setting_section/setting_box/advanced_settings/AdvancedSettings.jsx @@ -101,7 +101,7 @@ const OpenSwitchComputeDeviceModalContainer = () => { const { t } = useTranslation(); const { updateOpenedQuickSetting } = useStore_OpenedQuickSetting(); const onClickFunction = () => { - updateOpenedQuickSetting("switch_compute_device"); + updateOpenedQuickSetting("update_software"); }; return ( diff --git a/src-ui/app/main_page/sidebar_section/language_settings/language_selector_open_button/LanguageSelectorOpenButton.jsx b/src-ui/app/main_page/sidebar_section/language_settings/language_selector_open_button/LanguageSelectorOpenButton.jsx index 967c51f8..eacbf8f4 100644 --- a/src-ui/app/main_page/sidebar_section/language_settings/language_selector_open_button/LanguageSelectorOpenButton.jsx +++ b/src-ui/app/main_page/sidebar_section/language_settings/language_selector_open_button/LanguageSelectorOpenButton.jsx @@ -60,7 +60,7 @@ export const LanguageSelectorOpenButton = ({ TurnedOnSvgComponent, is_turned_on, return (
{title}
{switch_compute_device_desc}
-{t("update_modal.update_software_desc")}
-{t("update_modal.download_latest_and_restart")}
+{props.desc}
+{t("update_modal.is_latest_version_already")}
; + } + return{t("update_modal.is_current_compute_device")}
; }; \ No newline at end of file diff --git a/src-ui/app/modal_controller/update_modal/UpdateModal.module.scss b/src-ui/app/modal_controller/update_modal/UpdateModal.module.scss index 99d69293..2c253a9a 100644 --- a/src-ui/app/modal_controller/update_modal/UpdateModal.module.scss +++ b/src-ui/app/modal_controller/update_modal/UpdateModal.module.scss @@ -8,18 +8,52 @@ gap: 2.4rem; } -.label { - font-size: 2rem; - max-width: 48rem; - text-align: center; - color: var(--dark_basic_text_color); +.wrapper { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + gap: 8rem; } + +.update_section { + border: 0.1rem solid var(--dark_600_color); + border-radius: 0.4rem; + display: flex; + flex-direction: column; + justify-content: space-between; + align-items: center; + gap: 4rem; + padding: 6rem 2rem; + position: relative; +} +.update_desc { + position: absolute; + top: 100%; + transform: translateY(-50%); + font-size: 1.4rem; + background-color: var(--dark_900_color); + padding: 0 2.8rem; + text-align: center; + font-weight: 400; +} + + +.cpu_section, .cuda_section { + width: 100%; + display: flex; + justify-content: start; + align-items: center; + gap: 3rem; +} + .button_wrapper { display: flex; - width: 100%; - max-width: 48rem; + width: 16rem; justify-content: space-between; + position: relative; } + .deny_button, .accept_button { font-size: 1.6rem; padding: 1rem; @@ -35,17 +69,35 @@ } .accept_button { - background-color: var(--primary_550_color); + background-color: var(--primary_700_color); + position: relative; + overflow: visible; &:hover { background-color: var(--primary_450_color); } &:active { background-color: var(--primary_600_color); } + &.current_compute_version { + &::after { + content: ""; + position: absolute; + top: -1rem; + right: -1rem; + bottom: -1rem; + left: -1rem; + border: 0.1rem solid var(--primary_400_color); + border-radius: 0.4rem; + } + &.is_latest_version_already { + background-color: var(--dark_800_color); + pointer-events: none; + } + } } .deny_button { - background-color: var(--dark_750_color); + background-color: var(--dark_800_color); &:hover { background-color: var(--dark_700_color); } @@ -53,3 +105,40 @@ background-color: var(--dark_800_color); } } + +.current_version_label { + position: absolute; + bottom: 100%; + left: 50%; + transform: translateX(-50%); + margin: 0 0 0.4rem 0; + font-size: 1.2rem; + width: max-content; + height: max-content; + background-color: var(--dark_900_color); + padding: 0 1rem; + font-weight: 300; + &.is_cuda { + top: 100%; + margin: 0.4rem 0 0 0; + } +} + +.version_desc_wrapper { + display: flex; + align-items: center; + gap: 0.6rem; +} +.version_desc_point { + background-color: var(--dark_basic_text_color); + width: 0.3rem; + border-radius: 50%; + aspect-ratio: 1 / 1; +} +.version_desc { + font-size: 1.4rem; + max-width: 48rem; + // text-align: center; + font-weight: 300; + color: var(--dark_basic_text_color); +} \ No newline at end of file