pub struct ThemingCapabilities {
pub name: Option<String>,
pub url: Option<String>,
pub slogan: Option<String>,
pub color: Option<String>,
pub color_element: Option<String>,
pub color_element_bright: Option<String>,
pub color_element_dark: Option<String>,
pub color_text: Option<String>,
pub logo: Option<String>,
pub background: Option<String>,
pub background_plain: bool,
pub background_default: bool,
}Expand description
Theming and branding customization capabilities exposed by the server.
Nextcloud instances with the theming app enabled return visual styling
parameters including instance title, primary brand color, and asset URLs.
See the Nextcloud Theming Documentation.
Fields§
§name: Option<String>Instance product name or custom server name.
url: Option<String>Organization or website URL.
slogan: Option<String>Slogan or tagline displayed on the login page.
color: Option<String>Primary theme color in hexadecimal format (e.g. "#0082c9").
color_element: Option<String>Secondary or element highlight color in hex format.
color_element_bright: Option<String>Element color adjusted for bright backgrounds.
color_element_dark: Option<String>Element color adjusted for dark backgrounds.
color_text: Option<String>Header or button text contrast color in hex format.
logo: Option<String>URL to the server’s custom logo image.
background: Option<String>URL to the server’s login background image.
background_plain: boolWhether plain background coloring is enforced.
background_default: boolWhether default server background is used.
Implementations§
Source§impl ThemingCapabilities
impl ThemingCapabilities
Sourcepub fn color_element(&self) -> Option<&str>
pub fn color_element(&self) -> Option<&str>
Element accent color.
Sourcepub fn color_element_bright(&self) -> Option<&str>
pub fn color_element_bright(&self) -> Option<&str>
Element accent color on bright backgrounds.
Sourcepub fn color_element_dark(&self) -> Option<&str>
pub fn color_element_dark(&self) -> Option<&str>
Element accent color on dark backgrounds.
Sourcepub fn color_text(&self) -> Option<&str>
pub fn color_text(&self) -> Option<&str>
Contrast text color.
Sourcepub fn background(&self) -> Option<&str>
pub fn background(&self) -> Option<&str>
URL to the instance background.
Sourcepub const fn is_background_plain(&self) -> bool
pub const fn is_background_plain(&self) -> bool
Whether a plain solid background is enabled.
Sourcepub const fn is_background_default(&self) -> bool
pub const fn is_background_default(&self) -> bool
Whether the default background image is in use.