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:
@@ -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
|
||||
|
Reference in New Issue
Block a user