2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-29 05:37:45 +00:00

45 lines
942 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 "ui/layers/box_content.h"
namespace Ui {
class VerticalLayout;
class Checkbox;
class InputField;
class LabelSimple;
class MediaSlider;
} // namespace Ui
class RpFontListView;
class FontsBox : public Ui::BoxContent {
public:
FontsBox(QWidget* parent);
protected:
void prepare() override;
void setInnerFocus() override;
private:
void save();
void resetToDefault();
object_ptr<Ui::VerticalLayout> _owned;
not_null<Ui::VerticalLayout*> _content;
QPointer<Ui::Checkbox> _semiboldIsBold;
QPointer<Ui::InputField> _monospacedFontName;
QPointer<RpFontListView> _monospacedFontList;
QPointer<Ui::LabelSimple> _fontSizeLabel;
QPointer<Ui::MediaSlider> _fontSizeSlider;
int _fontSize;
};