Android style changes

- Remove qtquickcontrols2.conf
- Use glyph cache workaround only on non-Android
This commit is contained in:
Bart De Vries 2023-03-14 12:03:19 +01:00
parent e45dd71c83
commit bc658bcbe2
3 changed files with 4 additions and 10 deletions

View File

@ -65,10 +65,6 @@ Q_DECL_EXPORT
int main(int argc, char *argv[])
{
if (QSysInfo::currentCpuArchitecture().contains(QStringLiteral("arm")) && qEnvironmentVariableIsEmpty("QT_ENABLE_GLYPH_CACHE_WORKAROUND")) {
qputenv("QT_ENABLE_GLYPH_CACHE_WORKAROUND", "1");
}
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
@ -84,6 +80,10 @@ int main(int argc, char *argv[])
if (qEnvironmentVariableIsEmpty("QT_QUICK_CONTROLS_STYLE")) {
QQuickStyle::setStyle(QStringLiteral("org.kde.desktop"));
}
if (QSysInfo::currentCpuArchitecture().contains(QStringLiteral("arm")) && qEnvironmentVariableIsEmpty("QT_ENABLE_GLYPH_CACHE_WORKAROUND")) {
qputenv("QT_ENABLE_GLYPH_CACHE_WORKAROUND", "1");
}
#endif
#ifdef Q_OS_WINDOWS

View File

@ -1,5 +0,0 @@
[Material]
Primary=Blue
Accent=Blue
Theme=System
>

View File

@ -44,7 +44,6 @@
<file alias="GlobalSearchField.qml">qml/GlobalSearchField.qml</file>
<file alias="SearchFilterBar.qml">qml/SearchFilterBar.qml</file>
<file alias="FilterInlineMessage.qml">qml/FilterInlineMessage.qml</file>
<file>qtquickcontrols2.conf</file>
<file alias="logo.svg">../kasts.svg</file>
<file alias="kasts-tray-light.svg">../icons/kasts-tray-light.svg</file>
<file alias="kasts-tray-dark.svg">../icons/kasts-tray-dark.svg</file>