1 /*
2 This file is part of Telegram Desktop,
3 the official desktop application for the Telegram messaging service.
4
5 For license and copyright information please follow this link:
6 https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
7 */
8 #pragma once
9
10 #include "window/themes/window_theme_preview.h"
11 #include "base/platform/base_platform_info.h"
12
13 namespace Platform {
14
NativeTitleRequiresShadow()15 inline bool NativeTitleRequiresShadow() {
16 return Platform::IsWindows();
17 }
18
19 int PreviewTitleHeight();
20 void PreviewWindowFramePaint(QImage &preview, const style::palette &palette, QRect body, int outerWidth);
21
22 } // namespace Platform
23
24 // Platform dependent implementations.
25
26 #ifndef Q_OS_MAC
27
28 namespace Platform {
29
PreviewTitleHeight()30 inline int PreviewTitleHeight() {
31 return Window::Theme::DefaultPreviewTitleHeight();
32 }
33
PreviewWindowFramePaint(QImage & preview,const style::palette & palette,QRect body,int outerWidth)34 inline void PreviewWindowFramePaint(QImage &preview, const style::palette &palette, QRect body, int outerWidth) {
35 return Window::Theme::DefaultPreviewWindowFramePaint(preview, palette, body, outerWidth);
36 }
37
38 } // namespace Platform
39
40 #endif // !Q_OS_MAC
41