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 <QtGui/QPainterPath>
|
||||
|
||||
namespace anim {
|
||||
|
||||
enum class type {
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
#include "ui/painter.h"
|
||||
|
||||
#include <QtCore/QtMath>
|
||||
#include <QtGui/QPainterPath>
|
||||
|
||||
namespace Ui {
|
||||
namespace {
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
#include "base/flat_set.h"
|
||||
#include "ui/ui_log.h"
|
||||
#include "base/platform/base_platform_info.h"
|
||||
|
||||
#include <QtCore/QPoint>
|
||||
#include <QtWidgets/QApplication>
|
||||
|
|
@ -22,7 +23,7 @@ bool IsApplicationActive() {
|
|||
}
|
||||
|
||||
bool TranslucentWindowsSupported(QPoint globalPosition) {
|
||||
if (QGuiApplication::platformName().startsWith("wayland", Qt::CaseInsensitive)) {
|
||||
if (::Platform::IsWayland()) {
|
||||
return true;
|
||||
}
|
||||
if (const auto native = QGuiApplication::platformNativeInterface()) {
|
||||
|
|
|
|||
|
|
@ -412,6 +412,12 @@ FontData::FontData(int size, uint32 flags, int family, Font *other)
|
|||
f.setStyleName("Semibold");
|
||||
#endif // !DESKTOP_APP_USE_PACKAGED_FONTS
|
||||
}
|
||||
|
||||
if (_flags & FontItalic) {
|
||||
f.setStyleName("Semibold Italic");
|
||||
} else {
|
||||
f.setStyleName("Semibold");
|
||||
}
|
||||
}
|
||||
|
||||
if (IsRealSemibold(fontOverride)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue