diff --git a/doc/release-notes-154.md b/doc/release-notes-154.md
new file mode 100644
index 0000000000..a31e82433b
--- /dev/null
+++ b/doc/release-notes-154.md
@@ -0,0 +1,4 @@
+Compatibility
+==============
+
+Dash Core change appearance when macOS "dark mode" is activated.
diff --git a/share/qt/Info.plist.in b/share/qt/Info.plist.in
index bc6b302b2d..fbdfbd983d 100644
--- a/share/qt/Info.plist.in
+++ b/share/qt/Info.plist.in
@@ -56,9 +56,6 @@
NSHighResolutionCapable
True
- NSRequiresAquaSystemAppearance
- True
-
NSHumanReadableCopyright
Copyright © 2009-@COPYRIGHT_YEAR@ The Bitcoin Core developers, 2014-@COPYRIGHT_YEAR@ @COPYRIGHT_HOLDERS_FINAL@
LSApplicationCategoryType
diff --git a/src/Makefile.qt.include b/src/Makefile.qt.include
index 8ca112d131..885a0e5334 100644
--- a/src/Makefile.qt.include
+++ b/src/Makefile.qt.include
@@ -87,6 +87,7 @@ QT_MOC_CPP = \
qt/moc_transactiondesc.cpp \
qt/moc_transactiondescdialog.cpp \
qt/moc_transactionfilterproxy.cpp \
+ qt/moc_transactionoverviewwidget.cpp \
qt/moc_transactiontablemodel.cpp \
qt/moc_transactionview.cpp \
qt/moc_utilitydialog.cpp \
@@ -164,6 +165,7 @@ BITCOIN_QT_H = \
qt/transactiondesc.h \
qt/transactiondescdialog.h \
qt/transactionfilterproxy.h \
+ qt/transactionoverviewwidget.h \
qt/transactionrecord.h \
qt/transactiontablemodel.h \
qt/transactionview.h \
diff --git a/src/qt/forms/overviewpage.ui b/src/qt/forms/overviewpage.ui
index 4410467029..062be8e6b5 100644
--- a/src/qt/forms/overviewpage.ui
+++ b/src/qt/forms/overviewpage.ui
@@ -37,7 +37,23 @@
-
-
+
+
-
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Preferred
+
+
+
+ 10
+ 20
+
+
+
+
-
-
@@ -560,6 +576,19 @@
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 10
+ 20
+
+
+
+
-
-
@@ -609,7 +638,7 @@
-
-
+
QFrame::NoFrame
@@ -619,9 +648,15 @@
Qt::ScrollBarAlwaysOff
+
+ QAbstractScrollArea::AdjustToContents
+
QAbstractItemView::NoSelection
+
+ true
+
@@ -629,10 +664,33 @@
+ -
+
+
+ Qt::Horizontal
+
+
+ QSizePolicy::Preferred
+
+
+
+ 10
+ 20
+
+
+
+
+
+
+ TransactionOverviewWidget
+ QListView
+ qt/transactionoverviewwidget.h
+
+
diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp
index c464349833..983ae83752 100644
--- a/src/qt/guiutil.cpp
+++ b/src/qt/guiutil.cpp
@@ -1785,14 +1785,14 @@ QString formatNiceTimeOffset(qint64 secs)
QString formatBytes(uint64_t bytes)
{
- if(bytes < 1024)
+ if (bytes < 1'000)
return QObject::tr("%1 B").arg(bytes);
- if(bytes < 1024 * 1024)
- return QObject::tr("%1 KB").arg(bytes / 1024);
- if(bytes < 1024 * 1024 * 1024)
- return QObject::tr("%1 MB").arg(bytes / 1024 / 1024);
+ if (bytes < 1'000'000)
+ return QObject::tr("%1 kB").arg(bytes / 1'000);
+ if (bytes < 1'000'000'000)
+ return QObject::tr("%1 MB").arg(bytes / 1'000'000);
- return QObject::tr("%1 GB").arg(bytes / 1024 / 1024 / 1024);
+ return QObject::tr("%1 GB").arg(bytes / 1'000'000'000);
}
qreal calculateIdealFontSize(int width, const QString& text, QFont font, qreal minPointSize, qreal font_size) {
diff --git a/src/qt/overviewpage.cpp b/src/qt/overviewpage.cpp
index c530787b32..16c2a5dfae 100644
--- a/src/qt/overviewpage.cpp
+++ b/src/qt/overviewpage.cpp
@@ -11,6 +11,7 @@
#include
#include
#include
+#include
#include
#include
#include
@@ -18,6 +19,8 @@
#include
#include
+#include
+#include