Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qandroidplatformtheme.cpp File Reference
#include "androidjnimain.h"
#include "androidjnimenu.h"
#include "qandroidplatformtheme.h"
#include "qandroidplatformmenubar.h"
#include "qandroidplatformmenu.h"
#include "qandroidplatformmenuitem.h"
#include "qandroidplatformdialoghelpers.h"
#include "qandroidplatformfiledialoghelper.h"
#include <QCoreApplication>
#include <QDebug>
#include <QFileInfo>
#include <QJsonDocument>
#include <QVariant>
#include <private/qguiapplication_p.h>
#include <private/qhighdpiscaling_p.h>
#include <qandroidplatformintegration.h>
+ Include dependency graph for qandroidplatformtheme.cpp:

Go to the source code of this file.

Functions

static int fontType (const QString &androidControl)
 
static int paletteType (const QString &androidControl)
 
static void setPaletteColor (const QVariantMap &object, QPalette &palette, QPalette::ColorRole role)
 
static void loadAndroidStyle (QPalette *defaultPalette, std::shared_ptr< AndroidStyle > &style)
 
static int paletteType (QPlatformTheme::Palette type)
 
static int fontType (QPlatformTheme::Font type)
 

Function Documentation

◆ fontType() [1/2]

static int fontType ( const QString androidControl)
static

◆ fontType() [2/2]

◆ loadAndroidStyle()

static void loadAndroidStyle ( QPalette defaultPalette,
std::shared_ptr< AndroidStyle > &  style 
)
static

◆ paletteType() [1/2]

static int paletteType ( const QString androidControl)
static

Definition at line 59 of file qandroidplatformtheme.cpp.

References QPlatformTheme::ButtonPalette, QPlatformTheme::CheckBoxPalette, QPlatformTheme::ComboBoxPalette, QPlatformTheme::ItemViewPalette, QPlatformTheme::LabelPalette, QPlatformTheme::RadioButtonPalette, QPlatformTheme::SystemPalette, and QPlatformTheme::TextLineEditPalette.

Referenced by QGtk3Json::load(), loadAndroidStyle(), and QAndroidPlatformTheme::palette().

+ Here is the caller graph for this function:

◆ paletteType() [2/2]

◆ setPaletteColor()

static void setPaletteColor ( const QVariantMap object,
QPalette palette,
QPalette::ColorRole  role 
)
static

Definition at line 80 of file qandroidplatformtheme.cpp.

References QPalette::Active, QPalette::BrightText, QPalette::ButtonText, QPalette::Current, QPalette::Disabled, QPalette::HighlightedText, QPalette::Inactive, palette, QRgb, QPalette::Text, toInt(), and QPalette::WindowText.

Referenced by loadAndroidStyle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: