1
1
mirror of https://github.com/neosubhamoy/pytubepp-helper.git synced 2026-02-04 11:22:22 +05:30

(feat): added app theme selection option in settings

This commit is contained in:
2025-02-23 22:25:58 +05:30
Verified
parent f1f7d78c4e
commit c17909d980
9 changed files with 740 additions and 13 deletions

View File

@@ -6,11 +6,12 @@ use std::path::PathBuf;
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct Config {
pub port: u16,
pub theme: String,
}
impl Default for Config {
fn default() -> Self {
Self { port: 3030 }
Self { port: 3030, theme: "system".to_string() }
}
}

View File

@@ -6,11 +6,12 @@ use std::path::PathBuf;
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct Config {
pub port: u16,
pub theme: String,
}
impl Default for Config {
fn default() -> Self {
Self { port: 3030 }
Self { port: 3030, theme: "system".to_string() }
}
}