mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-27 05:18:27 +00:00
Fix Rust 1.20 compatibility
This commit is contained in:
parent
a7581e73c0
commit
bafb7e42c6
@ -93,7 +93,7 @@ impl ImGuiCol {
|
|||||||
pub const ColumnActive: ImGuiCol = ImGuiCol::SeparatorActive;
|
pub const ColumnActive: ImGuiCol = ImGuiCol::SeparatorActive;
|
||||||
pub fn values() -> &'static [ImGuiCol] {
|
pub fn values() -> &'static [ImGuiCol] {
|
||||||
use ImGuiCol::*;
|
use ImGuiCol::*;
|
||||||
&[
|
static values: &'static [ImGuiCol] = &[
|
||||||
Text,
|
Text,
|
||||||
TextDisabled,
|
TextDisabled,
|
||||||
WindowBg,
|
WindowBg,
|
||||||
@ -137,7 +137,8 @@ impl ImGuiCol {
|
|||||||
PlotHistogramHovered,
|
PlotHistogramHovered,
|
||||||
TextSelectedBg,
|
TextSelectedBg,
|
||||||
ModalWindowDarkening,
|
ModalWindowDarkening,
|
||||||
]
|
];
|
||||||
|
values
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pub const ImGuiCol_COUNT: usize = 43;
|
pub const ImGuiCol_COUNT: usize = 43;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user