[glass] Add hamburger menu icon to titlebars (#4874)

This does the same thing as right clicking, but provides a visual indicator.
The icon disappears if the window is too small or docked (right click keeps working).
This commit is contained in:
ohowe
2023-01-01 21:05:09 -07:00
committed by GitHub
parent f0fa8205ac
commit b0c6724eed
16 changed files with 254 additions and 100 deletions

View File

@@ -1506,9 +1506,13 @@ void NetworkTablesFlagsSettings::DisplayMenu() {
void NetworkTablesView::Display() {
m_flags.Update();
if (ImGui::BeginPopupContextItem()) {
m_flags.DisplayMenu();
ImGui::EndPopup();
}
DisplayNetworkTables(m_model, m_flags.GetFlags());
}
void NetworkTablesView::Settings() {
m_flags.DisplayMenu();
}
bool NetworkTablesView::HasSettings() {
return true;
}