pub struct ThemeNewArgs {Show 17 fields
pub name: String,
pub scheme: String,
pub primary: String,
pub secondary: Option<String>,
pub accent: Option<String>,
pub neutral: Option<String>,
pub info: Option<String>,
pub success: Option<String>,
pub warning: Option<String>,
pub error: Option<String>,
pub radius_box: f64,
pub radius_field: f64,
pub radius_selector: f64,
pub border: f64,
pub depth: bool,
pub noise: bool,
pub out: Option<PathBuf>,
}Expand description
Arguments for zenith theme new.
Fields§
§name: StringTheme name (used in ids and the preview title), e.g. acme.
scheme: StringBase scheme: light or dark.
primary: StringPrimary brand colour as #rrggbb. Quote it: most shells treat a bare
# as the start of a comment, so write --primary '#3b5bdb' (or
"#3b5bdb") — an unquoted #3b5bdb is dropped and this flag will
appear to have no value.
secondary: Option<String>Secondary colour (default: same as primary).
accent: Option<String>Accent colour (default: same as secondary).
neutral: Option<String>Neutral colour (default: a tinted grey).
info: Option<String>Override the info status colour.
success: Option<String>Override the success status colour.
warning: Option<String>Override the warning status colour.
error: Option<String>Override the error status colour.
radius_box: f64Box/card corner radius in px (default 16).
radius_field: f64Field/button corner radius in px (default 8).
radius_selector: f64Selector/badge corner radius in px (default 8).
border: f64Default border width in px (default 1).
depth: boolEmit a shadow.depth elevation token (raised look).
noise: boolMark the theme as wanting a grain overlay (recorded in the header).
out: Option<PathBuf>Write to this path instead of stdout.
Trait Implementations§
Source§impl Args for ThemeNewArgs
impl Args for ThemeNewArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Debug for ThemeNewArgs
impl Debug for ThemeNewArgs
Source§impl FromArgMatches for ThemeNewArgs
impl FromArgMatches for ThemeNewArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for ThemeNewArgs
impl RefUnwindSafe for ThemeNewArgs
impl Send for ThemeNewArgs
impl Sync for ThemeNewArgs
impl Unpin for ThemeNewArgs
impl UnsafeUnpin for ThemeNewArgs
impl UnwindSafe for ThemeNewArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.