add members panel/change member roles

This commit is contained in:
ouwou
2021-02-28 02:00:15 -05:00
parent 11358da24e
commit d6a8b8c333
16 changed files with 619 additions and 2 deletions

View File

@@ -134,6 +134,14 @@ std::string IntToCSSColor(int color) {
return ss.str();
}
Gdk::RGBA IntToRGBA(int color) {
Gdk::RGBA ret;
ret.set_red(((color & 0xFF0000) >> 16) / 255.0);
ret.set_green(((color & 0x00FF00) >> 8) / 255.0);
ret.set_blue(((color & 0x0000FF) >> 0) / 255.0);
return ret;
}
void AddWidgetMenuHandler(Gtk::Widget *widget, Gtk::Menu &menu) {
AddWidgetMenuHandler(widget, menu, []() {});
}