From 85dd73df38fc2988aea7e8a3553d56589061c27d Mon Sep 17 00:00:00 2001 From: Petr Gadorek Date: Thu, 21 Nov 2024 12:39:24 +0100 Subject: [PATCH] replaced the red color for Espressif red --- src-tauri/src/lib.rs | 8 +------- src/assets/main.css | 4 ++-- src/components/LoadConfig.vue | 4 ++-- src/components/wizard_steps/InstallationPathSelect.vue | 4 ++-- src/components/wizard_steps/MirrorSelect.vue | 6 +++--- src/components/wizard_steps/PrerequisitiesCheck.vue | 4 ++-- src/components/wizard_steps/TargetSelect.vue | 4 ++-- src/components/wizard_steps/VersionSelect.vue | 4 ++-- 8 files changed, 16 insertions(+), 22 deletions(-) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 673343c..5a92b8e 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -149,19 +149,16 @@ fn get_settings(app_handle: tauri::AppHandle) -> Settings { #[tauri::command] fn get_prequisites() -> Vec<&'static str> { - log::info!("Get prerequisites called"); // todo remove debug statement idf_im_lib::system_dependencies::get_prequisites() } #[tauri::command] fn get_operating_system() -> String { - log::info!("Get operating system called"); // todo remove debug statement std::env::consts::OS.to_string() } // ---- #[tauri::command] fn install_prerequisites(app_handle: AppHandle) -> bool { - log::info!("Install prerequisites called"); // todo remove debug statement let unsatisfied_prerequisites = idf_im_lib::system_dependencies::check_prerequisites() .unwrap() .into_iter() @@ -186,10 +183,8 @@ fn check_prequisites(app_handle: AppHandle) -> Vec { match idf_im_lib::system_dependencies::check_prerequisites() { Ok(prerequisites) => { if prerequisites.is_empty() { - // debug!("{}", t!("prerequisites.ok")); vec![] } else { - // info!("{} {:?}", t!("prerequisites.missing"), prerequisites); prerequisites.into_iter().map(|p| p.to_string()).collect() } } @@ -199,7 +194,7 @@ fn check_prequisites(app_handle: AppHandle) -> Vec { format!("Error checking prerequisites: {}", err), "error".to_string(), ); - log::error!("Error checking prerequisites: {}", err); //TODO: emit message + log::error!("Error checking prerequisites: {}", err); vec![] } } @@ -539,7 +534,6 @@ fn prepare_installation_directories( ) -> Result> { let mut version_path = expand_tilde(settings.path.as_ref().unwrap().as_path()); version_path.push(version); - // version_path.push("esp-idf"); ensure_path(version_path.to_str().unwrap())?; send_message( diff --git a/src/assets/main.css b/src/assets/main.css index 9105489..8d7edd1 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -109,7 +109,7 @@ h2 { } .header { - background-color: #dc2626; + background-color: #e7352c; color: white; padding: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); @@ -167,7 +167,7 @@ h2 { .feature-icon { background-color: #fee2e2; - color: #dc2626; + color: #e7352c; width: 2rem; height: 2rem; border-radius: 50%; diff --git a/src/components/LoadConfig.vue b/src/components/LoadConfig.vue index 852d067..81d71f8 100644 --- a/src/components/LoadConfig.vue +++ b/src/components/LoadConfig.vue @@ -166,7 +166,7 @@ export default { } .dragging .drop-zone { - border-color: #dc2626; + border-color: #e7352c; background-color: #fee2e2; } @@ -203,7 +203,7 @@ export default { .icon { width: 32px; height: 32px; - color: #dc2626; + color: #e7352c; } .option-title { diff --git a/src/components/wizard_steps/InstallationPathSelect.vue b/src/components/wizard_steps/InstallationPathSelect.vue index 2a67ad7..f3641a8 100644 --- a/src/components/wizard_steps/InstallationPathSelect.vue +++ b/src/components/wizard_steps/InstallationPathSelect.vue @@ -139,7 +139,7 @@ export default { .space-icon { width: 2.5rem; height: 2.5rem; - color: #dc2626; + color: #e7352c; } .space-text { @@ -167,7 +167,7 @@ export default { } .error-message { - color: #dc2626; + color: #e7352c; font-size: 0.875rem; } diff --git a/src/components/wizard_steps/MirrorSelect.vue b/src/components/wizard_steps/MirrorSelect.vue index 718528b..2d1008e 100644 --- a/src/components/wizard_steps/MirrorSelect.vue +++ b/src/components/wizard_steps/MirrorSelect.vue @@ -185,12 +185,12 @@ export default { } .mirror-option:hover { - border-color: #dc2626; + border-color: #e7352c; } .mirror-option.selected { background-color: #fee2e2; - border-color: #dc2626; + border-color: #e7352c; } .mirror-content { @@ -209,7 +209,7 @@ export default { .mirror-tag { font-size: 0.75rem; padding: 0.25rem 0.5rem; - background-color: #dc2626; + background-color: #e7352c; color: white; border-radius: 0.25rem; white-space: nowrap; diff --git a/src/components/wizard_steps/PrerequisitiesCheck.vue b/src/components/wizard_steps/PrerequisitiesCheck.vue index 3647a18..817700e 100644 --- a/src/components/wizard_steps/PrerequisitiesCheck.vue +++ b/src/components/wizard_steps/PrerequisitiesCheck.vue @@ -7,7 +7,7 @@ @@ -214,7 +214,7 @@ export default { .missing-list { list-style: disc; padding-left: 1.5rem; - color: #dc2626; + color: #e7352c; } .hint { diff --git a/src/components/wizard_steps/TargetSelect.vue b/src/components/wizard_steps/TargetSelect.vue index 7adc387..35a8251 100644 --- a/src/components/wizard_steps/TargetSelect.vue +++ b/src/components/wizard_steps/TargetSelect.vue @@ -127,12 +127,12 @@ export default { .target-item:hover { background-color: #f9fafb; - border-color: #dc2626; + border-color: #e7352c; } .target-item.selected { background-color: #fee2e2; - border-color: #dc2626; + border-color: #e7352c; } .target-content { diff --git a/src/components/wizard_steps/VersionSelect.vue b/src/components/wizard_steps/VersionSelect.vue index 82b6048..4dc6475 100644 --- a/src/components/wizard_steps/VersionSelect.vue +++ b/src/components/wizard_steps/VersionSelect.vue @@ -132,12 +132,12 @@ export default { } .version-item:hover { - border-color: #dc2626; + border-color: #e7352c; } .version-item.selected { background-color: #fee2e2; - border-color: #dc2626; + border-color: #e7352c; } .version-content {