mirror of
https://github.com/tauri-apps/winit.git
synced 2026-02-04 02:11:19 +01: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:
@@ -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)
|
||||
|
||||
|
||||
@@ -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