Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
bb182bbf5d
4 changed files with 11 additions and 1 deletions
|
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
#include "ui/style/style_core.h"
|
#include "ui/style/style_core.h"
|
||||||
|
|
||||||
|
#include <QtGui/QPainterPath>
|
||||||
|
|
||||||
namespace anim {
|
namespace anim {
|
||||||
|
|
||||||
enum class type {
|
enum class type {
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@
|
||||||
#include "ui/painter.h"
|
#include "ui/painter.h"
|
||||||
|
|
||||||
#include <QtCore/QtMath>
|
#include <QtCore/QtMath>
|
||||||
|
#include <QtGui/QPainterPath>
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
namespace {
|
namespace {
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@
|
||||||
|
|
||||||
#include "base/flat_set.h"
|
#include "base/flat_set.h"
|
||||||
#include "ui/ui_log.h"
|
#include "ui/ui_log.h"
|
||||||
|
#include "base/platform/base_platform_info.h"
|
||||||
|
|
||||||
#include <QtCore/QPoint>
|
#include <QtCore/QPoint>
|
||||||
#include <QtWidgets/QApplication>
|
#include <QtWidgets/QApplication>
|
||||||
|
|
@ -22,7 +23,7 @@ bool IsApplicationActive() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TranslucentWindowsSupported(QPoint globalPosition) {
|
bool TranslucentWindowsSupported(QPoint globalPosition) {
|
||||||
if (QGuiApplication::platformName().startsWith("wayland", Qt::CaseInsensitive)) {
|
if (::Platform::IsWayland()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (const auto native = QGuiApplication::platformNativeInterface()) {
|
if (const auto native = QGuiApplication::platformNativeInterface()) {
|
||||||
|
|
|
||||||
|
|
@ -412,6 +412,12 @@ FontData::FontData(int size, uint32 flags, int family, Font *other)
|
||||||
f.setStyleName("Semibold");
|
f.setStyleName("Semibold");
|
||||||
#endif // !DESKTOP_APP_USE_PACKAGED_FONTS
|
#endif // !DESKTOP_APP_USE_PACKAGED_FONTS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_flags & FontItalic) {
|
||||||
|
f.setStyleName("Semibold Italic");
|
||||||
|
} else {
|
||||||
|
f.setStyleName("Semibold");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IsRealSemibold(fontOverride)) {
|
if (IsRealSemibold(fontOverride)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue