changeset 86:c912128af0eb

*: various macos fixes todo: push that bsd thing to upstream
author Paper <mrpapersonic@gmail.com>
date Tue, 31 Oct 2023 13:52:36 -0400
parents c69230dc2b5d
children 4aef97f4d998
files dep/animia/src/bsd.cpp src/gui/dialog/information.cc src/gui/pages/anime_list.cc src/gui/widgets/text.cc
diffstat 4 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/dep/animia/src/bsd.cpp	Sun Oct 29 00:57:03 2023 -0400
+++ b/dep/animia/src/bsd.cpp	Tue Oct 31 13:52:36 2023 -0400
@@ -6,6 +6,7 @@
  * around the very C-like BSD system functions that are...
  * kind of unnatural to use in modern C++.
  **/
+#include <assert.h>
 #include <fcntl.h>
 #include <iostream>
 #include <string>
--- a/src/gui/dialog/information.cc	Sun Oct 29 00:57:03 2023 -0400
+++ b/src/gui/dialog/information.cc	Tue Oct 31 13:52:36 2023 -0400
@@ -149,6 +149,7 @@
 		CREATE_SUBSECTION({
 			subsection_layout->addWidget(new QLabel(tr("Status:"), subsection));
 
+			/* FIXME: this sucks */
 			QStringList string_list;
 			for (unsigned int i = 0; i < Anime::ListStatuses.size(); i++)
 				string_list.append(Strings::ToQString(Translate::ToString(Anime::ListStatuses[i])));
@@ -256,6 +257,7 @@
 	main_layout->addWidget(anime_title);
 	main_layout->addWidget(tabbed_widget);
 	main_layout->setContentsMargins(0, 0, 0, 0);
+	main_layout->setSpacing(12);
 
 	QHBoxLayout* layout = new QHBoxLayout(widget);
 	layout->addWidget(sidebar);
--- a/src/gui/pages/anime_list.cc	Sun Oct 29 00:57:03 2023 -0400
+++ b/src/gui/pages/anime_list.cc	Tue Oct 31 13:52:36 2023 -0400
@@ -23,6 +23,7 @@
 #include <QMenu>
 #include <QProgressBar>
 #include <QShortcut>
+#include <QTreeView>
 #include <QStylePainter>
 #include <QStyledItemDelegate>
 #include <QThreadPool>
--- a/src/gui/widgets/text.cc	Sun Oct 29 00:57:03 2023 -0400
+++ b/src/gui/widgets/text.cc	Tue Oct 31 13:52:36 2023 -0400
@@ -42,7 +42,7 @@
 	setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
 
 	QPalette pal;
-	pal.setColor(QPalette::Window, Qt::transparent);
+	pal.setColor(QPalette::Base, Qt::transparent);
 	setPalette(pal);
 
 	setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
@@ -79,7 +79,7 @@
 	setReadOnly(true);
 
 	QPalette pal;
-	pal.setColor(QPalette::Window, Qt::transparent);
+	pal.setColor(QPalette::Base, Qt::transparent);
 	setPalette(pal);
 
 	setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum);
@@ -100,8 +100,7 @@
 	setFont(fnt);
 
 	QPalette pal(palette());
-	pal.setColor(QPalette::Window, Qt::transparent);
-	pal.setColor(QPalette::Text, QColor(0x00, 0x33, 0x99));
+	pal.setColor(QPalette::Text, Qt::blue);
 	setPalette(pal);
 }