2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 09:05:14 +00:00
Files
kotatogram-desktop/Telegram/SourceFiles/boxes/fonts_box.h
RadRussianRus b1b61fc9e0 Build fixes
2019-11-06 20:51:59 +03:00

38 lines
910 B
C++

/*
This file is part of Kotatogram Desktop,
the unofficial app based on Telegram Desktop.
For license and copyright information please follow this link:
https://github.com/kotatogram/kotatogram-desktop/blob/dev/LEGAL
*/
#pragma once
#include "boxes/abstract_box.h"
namespace Ui {
class Checkbox;
class InputField;
} // namespace Ui
class FontsBox : public Ui::BoxContent {
public:
FontsBox(QWidget* parent);
protected:
void prepare() override;
void setInnerFocus() override;
void paintEvent(QPaintEvent *e) override;
void resizeEvent(QResizeEvent *e) override;
private:
void save();
void resetToDefault();
object_ptr<Ui::InputField> _mainFontName = { nullptr };
object_ptr<Ui::InputField> _semiboldFontName = { nullptr };
object_ptr<Ui::Checkbox> _semiboldIsBold = { nullptr };
object_ptr<Ui::InputField> _monospacedFontName = { nullptr };
Ui::Text::String _about;
int _aboutHeight = 0;
};