@ -3197,11 +3197,11 @@ void ImGui::NavUpdateWindowingList()
}
if ( g . NavWindowingList = = NULL )
g . NavWindowingList = FindWindowByName ( " ###NavWindowList " ) ;
g . NavWindowingList = FindWindowByName ( " ###NavWindowing List " ) ;
SetNextWindowSizeConstraints ( ImVec2 ( g . IO . DisplaySize . x * 0.20f , g . IO . DisplaySize . y * 0.20f ) , ImVec2 ( FLT_MAX , FLT_MAX ) ) ;
SetNextWindowPos ( g . IO . DisplaySize * 0.5f , ImGuiCond_Always , ImVec2 ( 0.5f , 0.5f ) ) ;
PushStyleVar ( ImGuiStyleVar_WindowPadding , g . Style . WindowPadding * 2.0f ) ;
Begin ( " ###NavWindowList " , NULL , ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoFocusOnAppearing | ImGuiWindowFlags_NoNav | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoInputs | ImGuiWindowFlags_AlwaysAutoResize ) ;
Begin ( " ###NavWindowing List " , NULL , ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoFocusOnAppearing | ImGuiWindowFlags_NoNav | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoInputs | ImGuiWindowFlags_AlwaysAutoResize ) ;
for ( int n = g . Windows . Size - 1 ; n > = 0 ; n - - )
{
ImGuiWindow * window = g . Windows [ n ] ;
@ -6458,7 +6458,7 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags)
const bool dim_bg_for_window_list = g . NavWindowingTarget & & ( window = = g . NavWindowingTarget - > RootWindow ) ;
if ( dim_bg_for_modal | | dim_bg_for_window_list )
{
const ImU32 dim_bg_col = GetColorU32 ( dim_bg_for_modal ? ImGuiCol_ModalWindowDimBg : ImGuiCol_NavWindowList DimBg , g . DimBgRatio ) ;
const ImU32 dim_bg_col = GetColorU32 ( dim_bg_for_modal ? ImGuiCol_ModalWindowDimBg : ImGuiCol_NavWindowing DimBg , g . DimBgRatio ) ;
window - > DrawList - > AddRectFilled ( viewport_rect . Min , viewport_rect . Max , dim_bg_col ) ;
}
@ -6468,7 +6468,7 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags)
ImRect bb = window - > Rect ( ) ;
bb . Expand ( g . FontSize ) ;
if ( ! bb . Contains ( viewport_rect ) ) // Avoid drawing if the window covers all the viewport anyway
window - > DrawList - > AddRectFilled ( bb . Min , bb . Max , GetColorU32 ( ImGuiCol_NavWindowList Highlight , g . NavWindowingHighlightAlpha * 0.25f ) , g . Style . WindowRounding ) ;
window - > DrawList - > AddRectFilled ( bb . Min , bb . Max , GetColorU32 ( ImGuiCol_NavWindowing Highlight , g . NavWindowingHighlightAlpha * 0.25f ) , g . Style . WindowRounding ) ;
}
// Draw window + handle manual resize
@ -6555,7 +6555,7 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags)
bb . Expand ( - g . FontSize - 1.0f ) ;
rounding = window - > WindowRounding ;
}
window - > DrawList - > AddRect ( bb . Min , bb . Max , GetColorU32 ( ImGuiCol_NavWindowList Highlight , g . NavWindowingHighlightAlpha ) , rounding , ~ 0 , 3.0f ) ;
window - > DrawList - > AddRect ( bb . Min , bb . Max , GetColorU32 ( ImGuiCol_NavWindowing Highlight , g . NavWindowingHighlightAlpha ) , rounding , ~ 0 , 3.0f ) ;
}
// Store a backup of SizeFull which we will use next frame to decide if we need scrollbars.
@ -7254,8 +7254,8 @@ const char* ImGui::GetStyleColorName(ImGuiCol idx)
case ImGuiCol_TextSelectedBg : return " TextSelectedBg " ;
case ImGuiCol_DragDropTarget : return " DragDropTarget " ;
case ImGuiCol_NavHighlight : return " NavHighlight " ;
case ImGuiCol_NavWindowList Highlight : return " NavWindowList Highlight " ;
case ImGuiCol_NavWindowList DimBg : return " NavWindowList DimBg " ;
case ImGuiCol_NavWindowing Highlight : return " NavWindowing Highlight " ;
case ImGuiCol_NavWindowing DimBg : return " NavWindowing DimBg " ;
case ImGuiCol_ModalWindowDimBg : return " ModalWindowDimBg " ;
}
IM_ASSERT ( 0 ) ;