mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-14 03:39:57 +01:00
Add Action Fullscreen to View Menu
This commit is contained in:
@@ -1124,6 +1124,17 @@ void UserInterface::showMenuWindows()
|
|||||||
// Enable / disable metrics toolbar
|
// Enable / disable metrics toolbar
|
||||||
ImGui::MenuItem( MENU_METRICS, NULL, &Settings::application.widget.stats );
|
ImGui::MenuItem( MENU_METRICS, NULL, &Settings::application.widget.stats );
|
||||||
|
|
||||||
|
ImGui::Separator();
|
||||||
|
|
||||||
|
// Enter / exit Fullscreen
|
||||||
|
if (Rendering::manager().mainWindow().isFullscreen()){
|
||||||
|
if (ImGui::MenuItem( ICON_FA_COMPRESS_ALT " Exit Fullscreen", SHORTCUT_FULLSCREEN ))
|
||||||
|
Rendering::manager().mainWindow().toggleFullscreen();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if (ImGui::MenuItem( ICON_FA_EXPAND_ALT " Fullscreen", SHORTCUT_FULLSCREEN ))
|
||||||
|
Rendering::manager().mainWindow().toggleFullscreen();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void UserInterface::showMenuFile()
|
void UserInterface::showMenuFile()
|
||||||
|
|||||||
Reference in New Issue
Block a user