2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-10-15 14:26:04 +00:00
Files
kotatogram-desktop/Telegram/SourceFiles/kotato/customboxes/fonts_box.h
RadRussianRus d799c2492c Moved kotato/boxes to kotato/customboxes
I don't look for trouble with includes.
2020-05-16 20:07:05 +03:00

40 lines
1.0 KiB
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::Checkbox> _useSystemFont = { nullptr };
object_ptr<Ui::Checkbox> _useOriginalMetrics = { nullptr };
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;
};