mirror of https://github.com/KDE/kasts.git
Re-enable Material style on Android
Breeze style seems to have significant font issues on some Android devices.
This commit is contained in:
parent
02179c72be
commit
3935987705
10
src/main.cpp
10
src/main.cpp
|
@ -65,20 +65,20 @@ 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);
|
||||
#endif
|
||||
|
||||
if (QSysInfo::currentCpuArchitecture().contains(QStringLiteral("arm")) && qEnvironmentVariableIsEmpty("QT_ENABLE_GLYPH_CACHE_WORKAROUND")) {
|
||||
qputenv("QT_ENABLE_GLYPH_CACHE_WORKAROUND", "1");
|
||||
}
|
||||
|
||||
#ifdef Q_OS_ANDROID
|
||||
QGuiApplication app(argc, argv);
|
||||
qInstallMessageHandler(myMessageHandler);
|
||||
QLoggingCategory::setFilterRules(QStringLiteral("org.kde.*=true"));
|
||||
QQuickStyle::setStyle(QStringLiteral("org.kde.breeze"));
|
||||
QQuickStyle::setStyle(QStringLiteral("Material"));
|
||||
#else
|
||||
QApplication app(argc, argv);
|
||||
if (qEnvironmentVariableIsEmpty("QT_QUICK_CONTROLS_STYLE")) {
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
[Material]
|
||||
Primary=Blue
|
||||
Accent=Blue
|
||||
Theme=System
|
||||
>
|
|
@ -44,6 +44,7 @@
|
|||
<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>
|
||||
|
|
Loading…
Reference in New Issue