ZaStoGram_desktop/Telegram/SourceFiles/dialogs/ui/dialogs_pill.h
John Preston 6d6578c75d Render the wallet's top bars as one pill island
Task: 2026/09/16/render-the-wallet-top-bars-as-one-pill-island
2026-10-08 22:23:57 +04:00

30 lines
740 B
C++

/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
#include <QtCore/QRect>
#include <QtGui/QColor>
class QPainter;
namespace Ui {
class BoxShadow;
} // namespace Ui
namespace Dialogs {
void PaintPillBackground(
QPainter &p,
const Ui::BoxShadow &shadow,
const QRect &pill,
int radius);
void PaintPillOutline(QPainter &p, const QRect &pill, int radius);
void PaintTopFade(QPainter &p, int outerWidth, int fadeHeight, QColor bg);
void PaintBottomFade(QPainter &p, int outerWidth, int fadeHeight, QColor bg);
} // namespace Dialogs