Mercurial > minori
diff src/gui/pages/statistics.cpp @ 49:f4bea5ef5b8a
paragraph: fix size hint
only tested on Linux (KDE)
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 25 Sep 2023 11:40:14 -0400 |
parents | e613772f41d5 |
children | 75c804f713b2 |
line wrap: on
line diff
--- a/src/gui/pages/statistics.cpp Mon Sep 25 01:07:22 2023 -0400 +++ b/src/gui/pages/statistics.cpp Mon Sep 25 11:40:14 2023 -0400 @@ -18,18 +18,18 @@ setFrameShadow(QFrame::Sunken); QPalette pal = QPalette(); - pal.setColor(QPalette::Window, Qt::white); + pal.setColor(QPalette::Window, pal.color(QPalette::Base)); setPalette(pal); setAutoFillBackground(true); TextWidgets::LabelledTextParagraph* anime_list_paragraph = new TextWidgets::LabelledTextParagraph( "Anime list", - "Anime count:\nEpisode count:\nTime spent watching:\nTime to complete:\nAverage score:\nScore deviation:", "\n\n\n\n\n", + "Anime count:\nEpisode count:\nTime spent watching:\nTime to complete:\nAverage score:\nScore deviation:", "\n\n\n\n\n\n", this); anime_list_data = anime_list_paragraph->GetParagraph(); TextWidgets::LabelledTextParagraph* application_paragraph = - new TextWidgets::LabelledTextParagraph("Minori", "Uptime:\nRequests made:", "\n", this); + new TextWidgets::LabelledTextParagraph("Minori", "Uptime:\nRequests made:", "\n\n", this); application_data = application_paragraph->GetParagraph(); layout()->addWidget(anime_list_paragraph);