styleOnly
Keeps only the fonts and colors. Intended for stuff like buttons passing down options to internal widgets.
Parameters
- self:*const Options
- *const Options
Source
Implementation
pub fn styleOnly(self: *const Options) Options {
return .{
.style = self.style,
.theme = self.theme,
.color_fill = self.color_fill,
.color_fill_hover = self.color_fill_hover,
.color_fill_press = self.color_fill_press,
.color_text = self.color_text,
.color_text_hover = self.color_text_hover,
.color_text_press = self.color_text_press,
.color_border = self.color_border,
.font = self.font,
};
}