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:
Kirill Chibisov 2020-11-22 01:53:56 +03:00 committed by GitHub
parent 1c38f113b3
commit 165e51d850
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -12,6 +12,7 @@
- On X11, fix `Window::request_redraw` not waking the event loop.
- On Wayland, the keypad arrow keys are now recognized.
- **Breaking** Rename `desktop::EventLoopExtDesktop` to `run_return::EventLoopExtRunReturn`.
- On Wayland, default font size in CSD increased from 11 to 17.
# 0.23.0 (2020-10-02)

View file

@ -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.))
}
}