You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
518 B
Rust
27 lines
518 B
Rust
4 years ago
|
use serde::{Deserialize, Serialize};
|
||
|
|
||
|
#[derive(Serialize, Deserialize, Clone, Debug)]
|
||
4 years ago
|
pub struct StyleSettings {
|
||
4 years ago
|
pub bib_ref_display: String,
|
||
4 years ago
|
pub theme: Theme,
|
||
4 years ago
|
}
|
||
|
|
||
4 years ago
|
impl Default for StyleSettings {
|
||
4 years ago
|
fn default() -> Self {
|
||
|
Self {
|
||
|
bib_ref_display: "{{number}}".to_string(),
|
||
4 years ago
|
theme: Theme::GitHub,
|
||
4 years ago
|
}
|
||
|
}
|
||
|
}
|
||
4 years ago
|
|
||
|
#[derive(Serialize, Deserialize, Clone, Debug)]
|
||
|
pub enum Theme {
|
||
|
GitHub,
|
||
|
SolarizedDark,
|
||
|
SolarizedLight,
|
||
|
OceanDark,
|
||
|
OceanLight,
|
||
4 years ago
|
MagicDark,
|
||
4 years ago
|
}
|