diff --git a/src/sdltiles.cpp b/src/sdltiles.cpp index 71ab83e76038a..88cf777f8b15e 100644 --- a/src/sdltiles.cpp +++ b/src/sdltiles.cpp @@ -3745,50 +3745,50 @@ void catacurses::init_interface() float DGrayB = static_cast( DGRAY.b ) / 255.0f; SDL_Color WHITE = windowsPalette[15]; - float WhiteR = static_cast(WHITE.r) / 255.0f; - float WhiteG = static_cast(WHITE.g) / 255.0f; - float WhiteB = static_cast(WHITE.b) / 255.0f; - - style.Colors[ImGuiCol_Text] = ImVec4(WhiteR, WhiteG, WhiteB, 1.00f); - style.Colors[ImGuiCol_TextDisabled] = ImVec4(DGrayR, DGrayG, DGrayB, 1.00f); - style.Colors[ImGuiCol_WindowBg] = ImVec4(BlackR, BlackG, BlackB, 0.50f); - style.Colors[ImGuiCol_ChildBg] = ImVec4(BlackR, BlackG, BlackB, 0.00f); - style.Colors[ImGuiCol_PopupBg] = ImVec4(BlackR, BlackG, BlackB, 1.00f); - style.Colors[ImGuiCol_Border] = ImVec4(WhiteR, WhiteG, WhiteB, 0.50f); - style.Colors[ImGuiCol_BorderShadow] = ImVec4(BlueR, BlueG, BlueB, 0.00f); - style.Colors[ImGuiCol_FrameBg] = ImVec4(DGrayR, DGrayG, DGrayB, 0.54f); - style.Colors[ImGuiCol_FrameBgHovered] = ImVec4(BlackR, BlackG, BlackB, 0.40f); - style.Colors[ImGuiCol_FrameBgActive] = ImVec4(DGrayR, DGrayG, DGrayB, 0.67f); - style.Colors[ImGuiCol_TitleBg] = ImVec4(BlueR, BlueG, BlueB, 1.00f); - style.Colors[ImGuiCol_TitleBgActive] = ImVec4(DGrayR, DGrayG, DGrayB, 1.00f); - style.Colors[ImGuiCol_TitleBgCollapsed] = ImVec4(BlueR, BlueG, BlueB, 0.51f); - style.Colors[ImGuiCol_MenuBarBg] = ImVec4(BlackR, BlackG, BlackB, 1.00f); - style.Colors[ImGuiCol_ScrollbarBg] = ImVec4(BlackR, BlackG, BlackB, 1.00f); - style.Colors[ImGuiCol_ScrollbarGrab] = ImVec4(DGrayR, DGrayG, DGrayB, 1.00f); - style.Colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4(GrayR, GrayG, GrayB, 1.00f); - style.Colors[ImGuiCol_ScrollbarGrabActive] = ImVec4(WhiteR, WhiteG, WhiteB, 1.00f); - style.Colors[ImGuiCol_CheckMark] = ImVec4(WhiteR, WhiteG, WhiteB, 1.00f); - style.Colors[ImGuiCol_SliderGrab] = ImVec4(WhiteR, WhiteG, WhiteB, 1.00f); - style.Colors[ImGuiCol_SliderGrabActive] = ImVec4(WhiteR, WhiteG, WhiteB, 1.00f); - style.Colors[ImGuiCol_Button] = ImVec4(DGrayR, DGrayG, DGrayB, 0.20f); - style.Colors[ImGuiCol_ButtonHovered] = ImVec4(DGrayR, DGrayG, DGrayB, 1.00f); - style.Colors[ImGuiCol_ButtonActive] = ImVec4(BlueR, BlueG, BlueB, 1.00f); - style.Colors[ImGuiCol_Header] = ImVec4(BlueR, BlueG, BlueB, 0.30f); - style.Colors[ImGuiCol_HeaderHovered] = ImVec4(BlackR, BlackG, BlackB, 0.80f); - style.Colors[ImGuiCol_HeaderActive] = ImVec4(DGrayR, DGrayG, DGrayB, 1.00f); - style.Colors[ImGuiCol_Separator] = ImVec4(BlueR, BlueG, BlueB, 0.50f); - style.Colors[ImGuiCol_SeparatorHovered] = ImVec4(WhiteR, WhiteG, WhiteB, 0.80f); - style.Colors[ImGuiCol_SeparatorActive] = ImVec4(WhiteR, WhiteG, WhiteB, 1.00f); - style.Colors[ImGuiCol_ResizeGrip] = ImVec4(WhiteR, WhiteG, WhiteB, 0.20f); - style.Colors[ImGuiCol_ResizeGripHovered] = ImVec4(WhiteR, WhiteG, WhiteB, 0.70f); - style.Colors[ImGuiCol_ResizeGripActive] = ImVec4(WhiteR, WhiteG, WhiteB, 1.00f); - style.Colors[ImGuiCol_Tab] = ImVec4(BlackR, BlackG, BlackB, 0.90f); - style.Colors[ImGuiCol_TabHovered] = ImVec4(BlueR, BlueG, BlueB, 0.80f); - style.Colors[ImGuiCol_TabActive] = ImVec4(BlueR, BlueG, BlueB, 1.00f); - style.Colors[ImGuiCol_TabUnfocused] = ImVec4(BlackR, BlackG, BlackB, 0.90f); - style.Colors[ImGuiCol_TabUnfocusedActive] = ImVec4(BlackR, BlackG, BlackB, 1.00f); - style.Colors[ImGuiCol_TextSelectedBg] = ImVec4(BlueR, BlueG, BlueB, 1.00f); - style.Colors[ImGuiCol_NavHighlight] = ImVec4(BlueR, BlueG, BlueB, 1.00f); + float WhiteR = static_cast( WHITE.r ) / 255.0f; + float WhiteG = static_cast( WHITE.g ) / 255.0f; + float WhiteB = static_cast( WHITE.b ) / 255.0f; + + style.Colors[ImGuiCol_Text] = ImVec4( WhiteR, WhiteG, WhiteB, 1.00f ); + style.Colors[ImGuiCol_TextDisabled] = ImVec4( DGrayR, DGrayG, DGrayB, 1.00f ); + style.Colors[ImGuiCol_WindowBg] = ImVec4( BlackR, BlackG, BlackB, 0.50f ); + style.Colors[ImGuiCol_ChildBg] = ImVec4( BlackR, BlackG, BlackB, 0.00f ); + style.Colors[ImGuiCol_PopupBg] = ImVec4( BlackR, BlackG, BlackB, 1.00f ); + style.Colors[ImGuiCol_Border] = ImVec4( WhiteR, WhiteG, WhiteB, 0.50f ); + style.Colors[ImGuiCol_BorderShadow] = ImVec4( BlueR, BlueG, BlueB, 0.00f ); + style.Colors[ImGuiCol_FrameBg] = ImVec4( DGrayR, DGrayG, DGrayB, 0.54f ); + style.Colors[ImGuiCol_FrameBgHovered] = ImVec4( BlackR, BlackG, BlackB, 0.40f ); + style.Colors[ImGuiCol_FrameBgActive] = ImVec4( DGrayR, DGrayG, DGrayB, 0.67f ); + style.Colors[ImGuiCol_TitleBg] = ImVec4( BlueR, BlueG, BlueB, 1.00f ); + style.Colors[ImGuiCol_TitleBgActive] = ImVec4( DGrayR, DGrayG, DGrayB, 1.00f ); + style.Colors[ImGuiCol_TitleBgCollapsed] = ImVec4( BlueR, BlueG, BlueB, 0.51f ); + style.Colors[ImGuiCol_MenuBarBg] = ImVec4( BlackR, BlackG, BlackB, 1.00f ); + style.Colors[ImGuiCol_ScrollbarBg] = ImVec4( BlackR, BlackG, BlackB, 1.00f ); + style.Colors[ImGuiCol_ScrollbarGrab] = ImVec4( DGrayR, DGrayG, DGrayB, 1.00f ); + style.Colors[ImGuiCol_ScrollbarGrabHovered] = ImVec4( GrayR, GrayG, GrayB, 1.00f ); + style.Colors[ImGuiCol_ScrollbarGrabActive] = ImVec4( WhiteR, WhiteG, WhiteB, 1.00f ); + style.Colors[ImGuiCol_CheckMark] = ImVec4( WhiteR, WhiteG, WhiteB, 1.00f ); + style.Colors[ImGuiCol_SliderGrab] = ImVec4( WhiteR, WhiteG, WhiteB, 1.00f ); + style.Colors[ImGuiCol_SliderGrabActive] = ImVec4( WhiteR, WhiteG, WhiteB, 1.00f ); + style.Colors[ImGuiCol_Button] = ImVec4( DGrayR, DGrayG, DGrayB, 0.20f ); + style.Colors[ImGuiCol_ButtonHovered] = ImVec4( DGrayR, DGrayG, DGrayB, 1.00f ); + style.Colors[ImGuiCol_ButtonActive] = ImVec4( BlueR, BlueG, BlueB, 1.00f ); + style.Colors[ImGuiCol_Header] = ImVec4( BlueR, BlueG, BlueB, 0.30f ); + style.Colors[ImGuiCol_HeaderHovered] = ImVec4( BlackR, BlackG, BlackB, 0.80f ); + style.Colors[ImGuiCol_HeaderActive] = ImVec4( DGrayR, DGrayG, DGrayB, 1.00f ); + style.Colors[ImGuiCol_Separator] = ImVec4( BlueR, BlueG, BlueB, 0.50f ); + style.Colors[ImGuiCol_SeparatorHovered] = ImVec4( WhiteR, WhiteG, WhiteB, 0.80f ); + style.Colors[ImGuiCol_SeparatorActive] = ImVec4( WhiteR, WhiteG, WhiteB, 1.00f ); + style.Colors[ImGuiCol_ResizeGrip] = ImVec4( WhiteR, WhiteG, WhiteB, 0.20f ); + style.Colors[ImGuiCol_ResizeGripHovered] = ImVec4( WhiteR, WhiteG, WhiteB, 0.70f ); + style.Colors[ImGuiCol_ResizeGripActive] = ImVec4( WhiteR, WhiteG, WhiteB, 1.00f ); + style.Colors[ImGuiCol_Tab] = ImVec4( BlackR, BlackG, BlackB, 0.90f ); + style.Colors[ImGuiCol_TabHovered] = ImVec4( BlueR, BlueG, BlueB, 0.80f ); + style.Colors[ImGuiCol_TabActive] = ImVec4( BlueR, BlueG, BlueB, 1.00f ); + style.Colors[ImGuiCol_TabUnfocused] = ImVec4( BlackR, BlackG, BlackB, 0.90f ); + style.Colors[ImGuiCol_TabUnfocusedActive] = ImVec4( BlackR, BlackG, BlackB, 1.00f ); + style.Colors[ImGuiCol_TextSelectedBg] = ImVec4( BlueR, BlueG, BlueB, 1.00f ); + style.Colors[ImGuiCol_NavHighlight] = ImVec4( BlueR, BlueG, BlueB, 1.00f ); // initialize sound set load_soundset();