|
|
commit 117aa56388faaa8dd0a083993a3ddf5d3c2f4e1d
Author: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Mon Jun 7 15:47:37 2021 +0200
Commit: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Wed Sep 29 12:14:55 2021 +0200
Wayland platform: fix font size for simulated window titlebar
src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
index d357e98..1ed5f04 100644
--- src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
+++ src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
@@ -307,10 +307,10 @@ void Fl_Wayland_Window_Driver::capture_titlebar_and_borders(Fl_RGB_Image*& top,
fl_color(FL_BLACK);
fl_rectf(0, 0, pWindow->w(), htop);
fl_color(FL_WHITE);
- Fl::set_font(FL_SCREEN_BOLD, "System-ui Bold");
- fl_font(FL_SCREEN_BOLD, 17);
+ Fl::set_font(FL_SCREEN_BOLD, "sans Bold");
+ fl_font(FL_SCREEN_BOLD, 20);
double w = fl_width(pWindow->label());
- fl_draw(pWindow->label(), pWindow->w()/2 - w/2, htop - fl_descent() - 4);
+ fl_draw(pWindow->label(), pWindow->w()/2 - w/2, htop - fl_descent() - 1);
int X = pWindow->w()-1.1*htop;
fl_line(X, htop-5, X+htop-10, 5);
fl_line(X,5, X+htop-10,htop-5);
[ Direct Link to Message ] | |
|
| |