| 298 | if (bCompact || Subtitle == nullptr || Subtitle[0] == '\0') |
| 299 | { |
| 300 | ImGui::SetCursorScreenPos(ImVec2(TextX, P0.y + (Height - ImGui::GetFontSize()) * 0.5f)); |
| 301 | ImGui::PushStyleColor(ImGuiCol_Text, EditorColors::TextPrimary()); |
| 302 | ImGui::TextUnformatted(Title); |
| 303 | ImGui::PopStyleColor(); |
| 304 | if (Subtitle && Subtitle[0]) |
| 305 | { |
| 306 | ImGui::SameLine(0.0f, 12.0f); |
| 307 | ImGui::PushStyleColor(ImGuiCol_Text, EditorColors::TextDim()); |
| 308 | ImGui::TextUnformatted(Subtitle); |
| 309 | ImGui::PopStyleColor(); |
| 310 | } |
| 311 | } |
| 312 | else |
| 313 | { |
| 314 | ImGui::SetCursorScreenPos(ImVec2(TextX, P0.y + 7.0f)); |
| 315 | ImGuiX::Font::PushFont(ImGuiX::Font::EFont::SmallBold); |
| 316 | ImGui::PushStyleColor(ImGuiCol_Text, EditorColors::TextPrimary()); |
| 317 | ImGui::TextUnformatted(Title); |
| 318 | ImGui::PopStyleColor(); |
| 319 | ImGuiX::Font::PopFont(); |
| 320 | |
| 321 | ImGui::SetCursorScreenPos(ImVec2(TextX, P0.y + 27.0f)); |
| 322 | ImGuiX::Font::PushFont(ImGuiX::Font::EFont::Tiny); |
| 323 | ImGui::PushStyleColor(ImGuiCol_Text, EditorColors::TextDim()); |
| 324 | ImGui::TextUnformatted(Subtitle); |
| 325 | ImGui::PopStyleColor(); |
| 326 | ImGuiX::Font::PopFont(); |
| 327 | } |