mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 21:21:06 +01:00 
			
		
		
		
	Style tweaks, disabled default window rounding by default, reduced size of resize grip, made less prominent, increased WindowBg alpha in classic style.
TestEngine: Fixed Checkbox() not reporting its checkable state when clipped.
This commit is contained in:
		| @@ -3595,7 +3595,9 @@ static void ShowDemoWindowTables() | ||||
|             "Double-click a column border to auto-fit the column to its contents."); | ||||
|         static ImGuiTableFlags flags = ImGuiTableFlags_Resizable | ImGuiTableFlags_ColumnsWidthFixed | ImGuiTableFlags_BordersOuter | ImGuiTableFlags_BordersV | ImGuiTableFlags_ContextMenuInBody; | ||||
|         static bool use_all_width = true; | ||||
|         ImGui::Checkbox("Use all width", &use_all_width); | ||||
|         if (ImGui::RadioButton("fit", use_all_width == false)) { use_all_width = false; } | ||||
|         ImGui::SameLine(); | ||||
|         if (ImGui::RadioButton("right-most edge", use_all_width == true)) { use_all_width = true; } | ||||
|  | ||||
|         if (ImGui::BeginTable("##table1", 3, flags, ImVec2(use_all_width ? -FLT_MIN : 0.0f, 0.0f))) | ||||
|         { | ||||
| @@ -4025,11 +4027,11 @@ static void ShowDemoWindowTables() | ||||
|  | ||||
|     if (open_action != -1) | ||||
|         ImGui::SetNextItemOpen(open_action != 0); | ||||
|     if (ImGui::TreeNode("Recursive")) | ||||
|     if (ImGui::TreeNode("Nested")) | ||||
|     { | ||||
|         HelpMarker("This demonstrate embedding a table into another table cell."); | ||||
|  | ||||
|         if (ImGui::BeginTable("recurse1", 2, ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable)) | ||||
|         if (ImGui::BeginTable("nested1", 2, ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable)) | ||||
|         { | ||||
|             ImGui::TableSetupColumn("A0"); | ||||
|             ImGui::TableSetupColumn("A1"); | ||||
| @@ -4039,7 +4041,7 @@ static void ShowDemoWindowTables() | ||||
|             ImGui::Text("A0 Cell 0"); | ||||
|             { | ||||
|                 float rows_height = TEXT_BASE_HEIGHT * 2; | ||||
|                 if (ImGui::BeginTable("recurse2", 2, ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable)) | ||||
|                 if (ImGui::BeginTable("nested2", 2, ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable | ImGuiTableFlags_Reorderable | ImGuiTableFlags_Hideable)) | ||||
|                 { | ||||
|                     ImGui::TableSetupColumn("B0"); | ||||
|                     ImGui::TableSetupColumn("B1"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user