set vertical alignment

This commit is contained in:
yggverse 2024-08-20 15:46:21 +03:00
parent 5b1dafa7a3
commit 2b81293d1c
3 changed files with 9 additions and 0 deletions

View File

@ -10,6 +10,10 @@ Main::Main()
Gtk::Orientation::VERTICAL Gtk::Orientation::VERTICAL
); );
set_homogeneous(
true
);
// Init title // Init title
title = new main::Title(); title = new main::Title();

View File

@ -16,6 +16,10 @@ Title::Title()
Pango::EllipsizeMode::END Pango::EllipsizeMode::END
); );
set_valign(
Gtk::Align::CENTER
);
set_width_chars( set_width_chars(
WIDTH_CHARS WIDTH_CHARS
); );

View File

@ -2,6 +2,7 @@
#define APP_BROWSER_HEADER_MAIN_TITLE_HPP #define APP_BROWSER_HEADER_MAIN_TITLE_HPP
#include <glibmm/ustring.h> #include <glibmm/ustring.h>
#include <gtkmm/enums.h>
#include <gtkmm/label.h> #include <gtkmm/label.h>
#include <pangomm/layout.h> #include <pangomm/layout.h>