2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 17:15:16 +00:00
Files
kotatogram-desktop/Telegram/SourceFiles/boxes/fonts_box.h

38 lines
910 B
C
Raw Normal View History

2019-10-14 02:17:53 +03:00
/*
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
2019-11-06 16:22:25 +03:00
class FontsBox : public Ui::BoxContent {
2019-10-14 02:17:53 +03:00
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;
};