Configurable font

This commit is contained in:
Raphael Robatsch 2021-10-22 15:49:09 +02:00
commit 41e2b7286d
3 changed files with 23 additions and 10 deletions

View file

@ -23,7 +23,8 @@ class Bar {
wl_surface *_surface {nullptr};
zwlr_layer_surface_v1 *_layerSurface {nullptr};
QPainter *_painter {nullptr};
std::optional<QFontMetrics> _fontMetrics;
QFont _font;
QFontMetrics _fontMetrics;
std::optional<ShmBuffer> _bufs;
std::vector<Tag> _tags;
int _textY;