Added darktable support

This commit is contained in:
Djkato 2023-06-07 17:43:59 +02:00
parent fa4d44488e
commit 23d282ff12
2 changed files with 15 additions and 4 deletions

BIN
program icons/darktable.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 KiB

View file

@ -31,6 +31,7 @@ pub enum AppKind {
SubstanceDesigner, SubstanceDesigner,
Vegas, Vegas,
ZBrush, ZBrush,
Darktable,
} }
pub struct Apps { pub struct Apps {
@ -54,10 +55,11 @@ pub struct Apps {
SubstanceDesigner: App, SubstanceDesigner: App,
Vegas: App, Vegas: App,
ZBrush: App, ZBrush: App,
Darktable: App,
} }
impl Apps { impl Apps {
pub fn as_iter(&self) -> [&App; 20] { pub fn as_iter(&self) -> [&App; 21] {
let APPS: [&App; 20] = [ let APPS: [&App; 21] = [
&self.C4d, &self.C4d,
&self.Maya, &self.Maya,
&self.ThreeDsMax, &self.ThreeDsMax,
@ -78,13 +80,14 @@ impl Apps {
&self.SubstanceDesigner, &self.SubstanceDesigner,
&self.Vegas, &self.Vegas,
&self.ZBrush, &self.ZBrush,
&self.Darktable,
]; ];
APPS APPS
} }
} }
impl AppKind { impl AppKind {
pub fn as_iter() -> [AppKind; 20] { pub fn as_iter() -> [AppKind; 21] {
let APPKINDS: [AppKind; 20] = [ let APPKINDS: [AppKind; 21] = [
AppKind::C4d, AppKind::C4d,
AppKind::Maya, AppKind::Maya,
AppKind::ThreeDsMax, AppKind::ThreeDsMax,
@ -105,6 +108,7 @@ impl AppKind {
AppKind::SubstanceDesigner, AppKind::SubstanceDesigner,
AppKind::Vegas, AppKind::Vegas,
AppKind::ZBrush, AppKind::ZBrush,
AppKind::Darktable,
]; ];
APPKINDS APPKINDS
} }
@ -232,6 +236,12 @@ impl Apps {
drp_client_id: "1112734356855865425".to_string(), drp_client_id: "1112734356855865425".to_string(),
process_search_string: "ZBrush".to_string(), process_search_string: "ZBrush".to_string(),
}, },
Darktable: App {
kind: AppKind::Darktable,
default_project_name: "Darktable Project".to_string(),
drp_client_id: "1116027286110609459".to_string(),
process_search_string: "darktable.exe".to_string(),
},
} }
} }
} }
@ -467,6 +477,7 @@ impl App {
return window_title[..match_index as usize].to_string(); return window_title[..match_index as usize].to_string();
} }
AppKind::ZBrush => self.default_project_name.clone(), AppKind::ZBrush => self.default_project_name.clone(),
AppKind::Darktable => self.default_project_name.clone(),
} }
} }
} }