mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-29 12:50:04 -04:00
On Wayland, increase default font size in CSD
This commit increased default font size from 11 to 17 making it identical to the one SCTK is using under the hood, since it's more readable.
This commit is contained in:
@@ -486,13 +486,13 @@ pub trait Theme: Send + 'static {
|
||||
|
||||
/// Font name and the size for the title bar.
|
||||
///
|
||||
/// By default the font is `sans-serif` at the size of 11.
|
||||
/// By default the font is `sans-serif` at the size of 17.
|
||||
///
|
||||
/// Returning `None` means that title won't be drawn.
|
||||
fn font(&self) -> Option<(String, f32)> {
|
||||
// Not having any title isn't something desirable for the users, so setting it to
|
||||
// something generic.
|
||||
Some((String::from("sans-serif"), 11.))
|
||||
Some((String::from("sans-serif"), 17.))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user