Skip to content

Commit

Permalink
replaced the red color for Espressif red
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Gadorek committed Nov 21, 2024
1 parent 7e63eb8 commit 85dd73d
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 22 deletions.
8 changes: 1 addition & 7 deletions src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -186,10 +183,8 @@ fn check_prequisites(app_handle: AppHandle) -> Vec<String> {
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()
}
}
Expand All @@ -199,7 +194,7 @@ fn check_prequisites(app_handle: AppHandle) -> Vec<String> {
format!("Error checking prerequisites: {}", err),
"error".to_string(),
);
log::error!("Error checking prerequisites: {}", err); //TODO: emit message
log::error!("Error checking prerequisites: {}", err);
vec![]
}
}
Expand Down Expand Up @@ -539,7 +534,6 @@ fn prepare_installation_directories(
) -> Result<PathBuf, Box<dyn std::error::Error>> {
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(
Expand Down
4 changes: 2 additions & 2 deletions src/assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -167,7 +167,7 @@ h2 {

.feature-icon {
background-color: #fee2e2;
color: #dc2626;
color: #e7352c;
width: 2rem;
height: 2rem;
border-radius: 50%;
Expand Down
4 changes: 2 additions & 2 deletions src/components/LoadConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export default {
}
.dragging .drop-zone {
border-color: #dc2626;
border-color: #e7352c;
background-color: #fee2e2;
}
Expand Down Expand Up @@ -203,7 +203,7 @@ export default {
.icon {
width: 32px;
height: 32px;
color: #dc2626;
color: #e7352c;
}
.option-title {
Expand Down
4 changes: 2 additions & 2 deletions src/components/wizard_steps/InstallationPathSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export default {
.space-icon {
width: 2.5rem;
height: 2.5rem;
color: #dc2626;
color: #e7352c;
}
.space-text {
Expand Down Expand Up @@ -167,7 +167,7 @@ export default {
}
.error-message {
color: #dc2626;
color: #e7352c;
font-size: 0.875rem;
}
Expand Down
6 changes: 3 additions & 3 deletions src/components/wizard_steps/MirrorSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/components/wizard_steps/PrerequisitiesCheck.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<n-card class="prerequisites-list">
<template #header>
<div class="card-header">
<span class="header-title">Required Prerequisites</span>
<span class="header-title">Prerequisites</span>

</div>
</template>
Expand Down Expand Up @@ -214,7 +214,7 @@ export default {
.missing-list {
list-style: disc;
padding-left: 1.5rem;
color: #dc2626;
color: #e7352c;
}
.hint {
Expand Down
4 changes: 2 additions & 2 deletions src/components/wizard_steps/TargetSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions src/components/wizard_steps/VersionSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 85dd73d

Please sign in to comment.