diff options
Diffstat (limited to 'windows/profile')
-rw-r--r-- | windows/profile/userinfopane.cpp | 6 | ||||
-rw-r--r-- | windows/profile/userinfopane.hpp | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/windows/profile/userinfopane.cpp b/windows/profile/userinfopane.cpp index 00209af..c88bc45 100644 --- a/windows/profile/userinfopane.cpp +++ b/windows/profile/userinfopane.cpp @@ -162,6 +162,7 @@ ProfileUserInfoPane::ProfileUserInfoPane(Snowflake ID) : Gtk::Box(Gtk::ORIENTATION_VERTICAL) , UserID(ID) { get_style_context()->add_class("profile-info-pane"); + m_created.get_style_context()->add_class("profile-info-created"); m_note.signal_update_note().connect([this](const Glib::ustring ¬e) { auto cb = [this](bool success) { @@ -185,9 +186,14 @@ ProfileUserInfoPane::ProfileUserInfoPane(Snowflake ID) }; discord.FetchUserNote(UserID, sigc::track_obj(fetch_note_cb, *this)); + m_created.set_halign(Gtk::ALIGN_START); + m_created.set_margin_top(5); + m_created.set_text("Account created: " + ID.GetLocalTimestamp()); + m_conns.set_halign(Gtk::ALIGN_START); m_conns.set_hexpand(true); + add(m_created); add(m_note); add(m_conns); show_all_children(); diff --git a/windows/profile/userinfopane.hpp b/windows/profile/userinfopane.hpp index a93387b..169ac25 100644 --- a/windows/profile/userinfopane.hpp +++ b/windows/profile/userinfopane.hpp @@ -47,6 +47,8 @@ public: Snowflake UserID; private: + Gtk::Label m_created; + NotesContainer m_note; ConnectionsContainer m_conns; }; |