feat: font add ui-* and system-ui (#234)

This commit is contained in:
luoxiaozero 2024-08-22 21:12:36 +08:00 committed by GitHub
parent ab456c7f6f
commit 0d13a4b2b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -69,9 +69,9 @@ pub struct CommonTheme {
impl CommonTheme {
pub fn new() -> Self {
Self {
font_family_base: "'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif".into(),
font_family_monospace: "Consolas, 'Courier New', Courier, monospace".into(),
font_family_numeric: "Bahnschrift, 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif".into(),
font_family_base: "'Segoe UI', 'Segoe UI Web (West European)', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif".into(),
font_family_monospace: "Consolas, ui-monospace, 'Courier New', Courier, monospace".into(),
font_family_numeric: "Bahnschrift, 'Segoe UI', 'Segoe UI Web (West European)', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif".into(),
font_size_base_100: "10px".into(),
font_size_base_200: "12px".into(),