support browser icons

This commit is contained in:
Julian Freeman
2026-04-16 15:25:57 -04:00
parent ac5bedd73f
commit 97d156f606
11 changed files with 140 additions and 26 deletions

View File

@@ -14,6 +14,7 @@ pub struct BrowserView {
pub browser_id: String,
pub browser_family_id: Option<String>,
pub browser_name: String,
pub icon_key: Option<String>,
pub data_root: String,
pub profiles: Vec<ProfileSummary>,
pub extensions: Vec<ExtensionSummary>,
@@ -70,6 +71,7 @@ pub struct BrowserConfigEntry {
pub id: String,
pub source: BrowserConfigSource,
pub browser_family_id: Option<String>,
pub icon_key: Option<String>,
pub name: String,
pub executable_path: String,
pub user_data_path: String,
@@ -87,6 +89,7 @@ pub enum BrowserConfigSource {
#[serde(rename_all = "camelCase")]
pub struct CreateCustomBrowserConfigInput {
pub name: String,
pub icon_key: Option<String>,
pub executable_path: String,
pub user_data_path: String,
}
@@ -102,6 +105,8 @@ pub struct StoredBrowserConfigs {
pub struct CustomBrowserConfigRecord {
pub id: String,
pub name: String,
#[serde(default)]
pub icon_key: Option<String>,
pub executable_path: String,
pub user_data_path: String,
}