diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-11-17 15:20:49 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2018-11-17 15:20:52 +0100 |
commit | 64ab3253562be80e726b3d69e4c3e556b055c965 (patch) | |
tree | 97d5b68f90ca8176fc58ec16eb79dbbef2920abd /include | |
parent | 7873b7555f1f8fe72732f64b35a8116390b981b3 (diff) |
Auto reload css on modify, improve design
Diffstat (limited to 'include')
-rw-r--r-- | include/ChatWindow.hpp | 8 | ||||
-rw-r--r-- | include/ResponsivePaned.hpp | 16 |
2 files changed, 20 insertions, 4 deletions
diff --git a/include/ChatWindow.hpp b/include/ChatWindow.hpp index 48bbff5..b0f4001 100644 --- a/include/ChatWindow.hpp +++ b/include/ChatWindow.hpp @@ -5,10 +5,10 @@ #include "RoomNotificationsWindow.hpp" #include <dchat/Room.hpp> #include <gtkmm/label.h> -#include <gtkmm/togglebutton.h> +#include <gtkmm/radiobutton.h> #include <gtkmm/grid.h> #include <gtkmm/entry.h> -#include <gtkmm/paned.h> +#include "ResponsivePaned.hpp" #include <gtkmm/scrolledwindow.h> #include <gtkmm/stack.h> #include <gtkmm/textview.h> @@ -42,7 +42,7 @@ namespace dchat Window *window; private: void setupTopbar(); - void setupLeftPanel(Gtk::Paned *sidePanels); + void setupLeftPanel(Gtk::ResponsivePaned *sidePanels); void setupMessageArea(Gtk::Grid *rightPanel); void setupChatInput(Gtk::Grid *rightPanel); @@ -61,7 +61,7 @@ namespace dchat { Gtk::Grid *leftPanelUsersLayout; Gtk::Grid *messageAreaLayout; - Gtk::ToggleButton *button; + Gtk::RadioButton *button; }; odhtdb::MapHash<RoomData*> roomDataById; diff --git a/include/ResponsivePaned.hpp b/include/ResponsivePaned.hpp new file mode 100644 index 0000000..8f62791 --- /dev/null +++ b/include/ResponsivePaned.hpp @@ -0,0 +1,16 @@ +#ifndef RESPONSIVE_PANED_HPP +#define RESPONSIVE_PANED_HPP + +#include <gtkmm/paned.h> + +namespace Gtk +{ + class ResponsivePaned : public Paned + { + public: + explicit ResponsivePaned(Orientation orientation = ORIENTATION_HORIZONTAL); + virtual ~ResponsivePaned() {} + }; +} + +#endif // RESPONSIVE_PANED_HPP
\ No newline at end of file |