From bba3e58460c82b787fa0ae64297e601255355f15 Mon Sep 17 00:00:00 2001 From: Malik Olivier Boussejra Date: Mon, 30 Apr 2018 12:17:22 +0900 Subject: [PATCH] [cimgui 1.53.1] Rename ImGuiCol::ChildWindowBg to ChildBg --- CHANGELOG.markdown | 1 + imgui-sys/src/lib.rs | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.markdown b/CHANGELOG.markdown index edf0e4a..8f9b733 100644 --- a/CHANGELOG.markdown +++ b/CHANGELOG.markdown @@ -23,6 +23,7 @@ set up in the ImGuiStyle structure. - Obsolete `Window::show_borders`. Use `StyleVar` instead. - Obsolete `ImGuiCol::ComboBg`. Use `PopupBg` instead. + - Rename `ImGuiCol::ChildWindowBg` to `ImGuiCol::ChildBg`. - Style: Add `PopupRounding`, `FrameBorderSize`, `WindowBorderSize`, `PopupBorderSize`. diff --git a/imgui-sys/src/lib.rs b/imgui-sys/src/lib.rs index b6574a0..eb77a9c 100644 --- a/imgui-sys/src/lib.rs +++ b/imgui-sys/src/lib.rs @@ -44,7 +44,7 @@ pub enum ImGuiCol { Text, TextDisabled, WindowBg, - ChildWindowBg, + ChildBg, PopupBg, Border, BorderShadow, @@ -88,6 +88,8 @@ pub enum ImGuiCol { impl ImGuiCol { #[deprecated(since = "0.0.19", note = "ComboBg has been merged with PopupBg. Please use PopupBg instead")] pub const ComboBg: ImGuiCol = ImGuiCol::PopupBg; + #[deprecated(since = "0.0.19", note = "please use ChildBg instead")] + pub const ChildWindowBg: ImGuiCol = ImGuiCol::ChildBg; pub fn values() -> &'static [ImGuiCol] { use ImGuiCol::*; @@ -95,7 +97,7 @@ impl ImGuiCol { Text, TextDisabled, WindowBg, - ChildWindowBg, + ChildBg, PopupBg, Border, BorderShadow,