add hack for label
This commit is contained in:
parent
6dd0a1338f
commit
801482efbf
1 changed files with 2 additions and 1 deletions
|
@ -25,9 +25,10 @@ void Label::on_init() {
|
|||
|
||||
void Label::on_paint() {
|
||||
auto painter = window()->painter();
|
||||
auto geometry = rect().max_geometry();
|
||||
|
||||
painter.source_rgb(style()->foreground());
|
||||
painter.text(rect(), m_text, PaintTextAlign::Left, PANGO_ELLIPSIZE_NONE, style()->font_description());
|
||||
painter.text(geometry, m_text, PaintTextAlign::Left, PANGO_ELLIPSIZE_END, style()->font_description());
|
||||
painter.fill();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue