mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 22:01:31 +11: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:
parent
1c38f113b3
commit
165e51d850
|
@ -12,6 +12,7 @@
|
||||||
- On X11, fix `Window::request_redraw` not waking the event loop.
|
- On X11, fix `Window::request_redraw` not waking the event loop.
|
||||||
- On Wayland, the keypad arrow keys are now recognized.
|
- On Wayland, the keypad arrow keys are now recognized.
|
||||||
- **Breaking** Rename `desktop::EventLoopExtDesktop` to `run_return::EventLoopExtRunReturn`.
|
- **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)
|
# 0.23.0 (2020-10-02)
|
||||||
|
|
||||||
|
|
|
@ -486,13 +486,13 @@ pub trait Theme: Send + 'static {
|
||||||
|
|
||||||
/// Font name and the size for the title bar.
|
/// 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.
|
/// Returning `None` means that title won't be drawn.
|
||||||
fn font(&self) -> Option<(String, f32)> {
|
fn font(&self) -> Option<(String, f32)> {
|
||||||
// Not having any title isn't something desirable for the users, so setting it to
|
// Not having any title isn't something desirable for the users, so setting it to
|
||||||
// something generic.
|
// something generic.
|
||||||
Some((String::from("sans-serif"), 11.))
|
Some((String::from("sans-serif"), 17.))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue