mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Added dummy new class for top bar within info profile.
This commit is contained in:
@@ -1058,6 +1058,8 @@ PRIVATE
|
|||||||
info/profile/info_profile_members_controllers.h
|
info/profile/info_profile_members_controllers.h
|
||||||
info/profile/info_profile_phone_menu.cpp
|
info/profile/info_profile_phone_menu.cpp
|
||||||
info/profile/info_profile_phone_menu.h
|
info/profile/info_profile_phone_menu.h
|
||||||
|
info/profile/info_profile_top_bar.cpp
|
||||||
|
info/profile/info_profile_top_bar.h
|
||||||
info/profile/info_profile_values.cpp
|
info/profile/info_profile_values.cpp
|
||||||
info/profile/info_profile_values.h
|
info/profile/info_profile_values.h
|
||||||
info/profile/info_profile_widget.cpp
|
info/profile/info_profile_widget.cpp
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||||||
#include "info/profile/info_profile_cover.h"
|
#include "info/profile/info_profile_cover.h"
|
||||||
#include "info/profile/info_profile_icon.h"
|
#include "info/profile/info_profile_icon.h"
|
||||||
#include "info/profile/info_profile_members.h"
|
#include "info/profile/info_profile_members.h"
|
||||||
|
#include "info/profile/info_profile_top_bar.h"
|
||||||
#include "info/profile/info_profile_actions.h"
|
#include "info/profile/info_profile_actions.h"
|
||||||
#include "info/media/info_media_buttons.h"
|
#include "info/media/info_media_buttons.h"
|
||||||
#include "data/data_changes.h"
|
#include "data/data_changes.h"
|
||||||
@@ -330,7 +331,8 @@ bool InnerWidget::hasFlexibleTopBar() const {
|
|||||||
|
|
||||||
base::weak_qptr<Ui::RpWidget> InnerWidget::createPinnedToTop(
|
base::weak_qptr<Ui::RpWidget> InnerWidget::createPinnedToTop(
|
||||||
not_null<Ui::RpWidget*> parent) {
|
not_null<Ui::RpWidget*> parent) {
|
||||||
return nullptr;
|
const auto content = Ui::CreateChild<TopBar>(parent);
|
||||||
|
return base::make_weak(not_null<Ui::RpWidget*>{ content });
|
||||||
}
|
}
|
||||||
|
|
||||||
base::weak_qptr<Ui::RpWidget> InnerWidget::createPinnedToBottom(
|
base::weak_qptr<Ui::RpWidget> InnerWidget::createPinnedToBottom(
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
/*
|
||||||
|
This file is part of Telegram Desktop,
|
||||||
|
the official desktop application for the Telegram messaging service.
|
||||||
|
|
||||||
|
For license and copyright information please follow this link:
|
||||||
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
|
*/
|
||||||
|
#include "info/profile/info_profile_top_bar.h"
|
||||||
|
|
||||||
|
#include "styles/style_info.h"
|
||||||
|
#include "styles/style_settings.h"
|
||||||
|
|
||||||
|
namespace Info::Profile {
|
||||||
|
|
||||||
|
TopBar::TopBar(QWidget *parent)
|
||||||
|
: RpWidget(parent) {
|
||||||
|
setMinimumHeight(st::infoLayerTopBarHeight);
|
||||||
|
setMaximumHeight(st::settingsPremiumTopHeight);
|
||||||
|
}
|
||||||
|
|
||||||
|
void TopBar::paintEvent(QPaintEvent *e) {
|
||||||
|
auto p = QPainter(this);
|
||||||
|
p.fillRect(rect(), st::boxBg);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace Info::Profile
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
/*
|
||||||
|
This file is part of Telegram Desktop,
|
||||||
|
the official desktop application for the Telegram messaging service.
|
||||||
|
|
||||||
|
For license and copyright information please follow this link:
|
||||||
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
|
*/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "ui/rp_widget.h"
|
||||||
|
|
||||||
|
namespace Info::Profile {
|
||||||
|
|
||||||
|
class TopBar final : public Ui::RpWidget {
|
||||||
|
public:
|
||||||
|
TopBar(QWidget *parent);
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void paintEvent(QPaintEvent *e) override;
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
} // namespace Info::Profile
|
||||||
Reference in New Issue
Block a user