Generalize Refineable derive macro to derive arbitrary traits on the refinement type
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
use crate::{Appearance, ThemeColors, ThemeColorsRefinement};
|
||||
use refineable::Refineable;
|
||||
use serde::Deserialize;
|
||||
|
||||
use crate::{Appearance, ThemeColors, ThemeColorsRefinement};
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct UserThemeFamily {
|
||||
pub name: String,
|
||||
@@ -18,7 +17,7 @@ pub struct UserTheme {
|
||||
}
|
||||
|
||||
#[derive(Refineable, Clone)]
|
||||
#[refineable(deserialize)]
|
||||
#[refineable(Deserialize)]
|
||||
pub struct UserThemeStyles {
|
||||
#[refineable]
|
||||
pub colors: ThemeColors,
|
||||
|
||||
Reference in New Issue
Block a user