Esempio n. 1
0
static void render_mmb_options() {
    auto &style = ImGui::GetStyle();
    ImGui::MenuItem("Input", NULL, &gui_state.input_window_open);
    ImGui::MenuItem("Video", NULL, &gui_state.video_window_open);
    ImGui::SliderFloat("GUI overlay opacity", &style.Alpha, 0.2f, 1.0f, "%.2f");
    if(ImGui::Checkbox("Dark mode", &gui_state.dark_style)) {
        set_ui_colors(gui_state.dark_style);
    }

    ImGui::EndMenu();
}
Esempio n. 2
0
void
APRView::_SetUIColors(const BMessage& colors)
{
	set_ui_colors(&colors);
	fCurrentColors = colors;
}