housekeeping
This commit is contained in:
@@ -148,6 +148,11 @@ class Canvas {
|
||||
}
|
||||
auto mutable_labels(int i) {
|
||||
if (i >= labels_.size()) {
|
||||
int x = i;
|
||||
while (x >= labels_.size()) {
|
||||
labels_.push_back(ImVector<std::string>());
|
||||
x--;
|
||||
}
|
||||
labels_.push_back(ImVector<std::string>());
|
||||
}
|
||||
return &labels_[i];
|
||||
|
||||
@@ -12,7 +12,7 @@ void BeginWindowWithDisplaySettings(const char* id, bool* active,
|
||||
ImGuiWindowFlags flags) {
|
||||
ImGuiStyle* ref = &ImGui::GetStyle();
|
||||
static float childBgOpacity = 0.75f;
|
||||
auto color = ImVec4(0.f, 0.f, 0.f, childBgOpacity);
|
||||
auto color = ref->Colors[ImGuiCol_WindowBg];
|
||||
|
||||
ImGui::PushStyleColor(ImGuiCol_WindowBg, color);
|
||||
ImGui::PushStyleColor(ImGuiCol_ChildBg, color);
|
||||
|
||||
Reference in New Issue
Block a user