Mercurial > minori
changeset 292:ac1451035c85
dialog/about: add utf8proc
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Sun, 12 May 2024 18:01:16 -0400 |
parents | 9a88e1725fd2 |
children | 703fb7d7c917 |
files | include/core/session.h src/gui/dialog/about.cc src/sys/glib/dark_theme.cc |
diffstat | 3 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/include/core/session.h Sun May 12 16:31:07 2024 -0400 +++ b/include/core/session.h Sun May 12 18:01:16 2024 -0400 @@ -3,6 +3,7 @@ #include "core/config.h" #include "gui/locale.h" + #include <QElapsedTimer> #include "semver/semver.hpp"
--- a/src/gui/dialog/about.cc Sun May 12 16:31:07 2024 -0400 +++ b/src/gui/dialog/about.cc Sun May 12 18:01:16 2024 -0400 @@ -3,8 +3,11 @@ #include "core/session.h" #include "core/strings.h" #include "gui/widgets/text.h" + #include "pugixml.hpp" +#include "utf8proc.h" + #include <QCoreApplication> #include <QFont> #include <QHBoxLayout> @@ -78,6 +81,10 @@ "<a href=\"https://github.com/Neargye/semver\">semver v" + Strings::ToQString(semver_version.to_string()) + "</a>" + ", " + "<a href=\"http://juliastrings.github.io/utf8proc/\">utf8proc v" + + Strings::ToQString(utf8proc_version()) + + "</a>" ", parts of " "<a href=\"https://github.com/erengy/anisthesia\">Anisthesia</a>" " </p>" @@ -88,7 +95,7 @@ "</span>" " <ul style=\"margin-top: 0px; margin-bottom: 0px; margin-left: 15px; margin-right: 0px; -qt-list-indent:0;\">" " <li><strong>Eren Okka</strong> " + - tr("for creating Taiga") + + tr("for creating <a href=\"https://taiga.moe/\">Taiga</a>") + "</li>" " <li><strong>Alex Huszagh</strong> " + tr("and") + " <strong>Colin Duquesnoy</strong> " +
--- a/src/sys/glib/dark_theme.cc Sun May 12 16:31:07 2024 -0400 +++ b/src/sys/glib/dark_theme.cc Sun May 12 18:01:16 2024 -0400 @@ -2,6 +2,9 @@ #include <gio/gio.h> #include <string_view> +/* this file uses the regular gio C interface because I don't + * see any real benefit to using the C++ bindings. */ + namespace glib { bool IsInDarkTheme() {