You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm mostly talking about having to specify Cow::Borrowed for each string. The internal light and dark themes have 81 occurrences of the Cow::Borrowed and it will get larger. Adding new strings is annoying. Example solution:
pubconstLIGHT_THEME:Theme = magic!{
name: "light",
// Could remove `foo: FooTheme` as well
button: {
background: %[str]"white",
font_theme: {
color: &[str]"black",
}}};
The text was updated successfully, but these errors were encountered:
I'm mostly talking about having to specify
Cow::Borrowed
for each string. The internal light and dark themes have 81 occurrences of theCow::Borrowed
and it will get larger. Adding new strings is annoying. Example solution:The text was updated successfully, but these errors were encountered: