2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Allow huge range of interface scales.

This commit is contained in:
John Preston
2023-01-05 14:48:46 +04:00
parent 3532e187fd
commit ff331c040a
16 changed files with 987 additions and 69 deletions

View File

@@ -25,6 +25,7 @@ class VerticalLayout;
class FlatLabel;
class SettingsButton;
class AbstractButton;
class MediaSlider;
} // namespace Ui
namespace Ui::Menu {
@@ -38,6 +39,7 @@ class SessionController;
namespace style {
struct FlatLabel;
struct SettingsButton;
struct MediaSlider;
} // namespace style
namespace Lottie {
@@ -228,4 +230,16 @@ void FillMenu(
Fn<void(Type)> showOther,
Ui::Menu::MenuCallback addAction);
struct SliderWithLabel {
object_ptr<Ui::RpWidget> widget;
not_null<Ui::MediaSlider*> slider;
not_null<Ui::FlatLabel*> label;
};
[[nodiscard]] SliderWithLabel MakeSliderWithLabel(
QWidget *parent,
const style::MediaSlider &sliderSt,
const style::FlatLabel &labelSt,
int skip,
int minLabelWidth = 0);
} // namespace Settings