Skip to content

Commit

Permalink
move this into appropriate file
Browse files Browse the repository at this point in the history
  • Loading branch information
vetall812 committed Sep 6, 2024
1 parent 16724de commit e4615ba
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 43 deletions.
43 changes: 43 additions & 0 deletions src/color.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,49 @@ void init_colors()
{"C", {c_cyan, to_translation( "cyan" )}}, {"c", {c_light_cyan, to_translation( "light cyan" )}},
{"P", {c_pink, to_translation( "pink" )}}, {"m", {c_magenta, to_translation( "magenta" )}}
};

ImGuiStyle &style = ImGui::GetStyle();

style.Colors[ImGuiCol_Text] = c_white;
style.Colors[ImGuiCol_TextDisabled] = c_dark_gray;
style.Colors[ImGuiCol_WindowBg] = c_black;
style.Colors[ImGuiCol_ChildBg] = c_black;
style.Colors[ImGuiCol_PopupBg] = c_black;
style.Colors[ImGuiCol_Border] = c_white;
style.Colors[ImGuiCol_BorderShadow] = c_blue;
style.Colors[ImGuiCol_FrameBg] = c_dark_gray;
style.Colors[ImGuiCol_FrameBgHovered] = c_black;
style.Colors[ImGuiCol_FrameBgActive] = c_dark_gray;
style.Colors[ImGuiCol_TitleBg] = c_blue;
style.Colors[ImGuiCol_TitleBgActive] = c_dark_gray;
style.Colors[ImGuiCol_TitleBgCollapsed] = c_blue;
style.Colors[ImGuiCol_MenuBarBg] = c_black;
style.Colors[ImGuiCol_ScrollbarBg] = c_black;
style.Colors[ImGuiCol_ScrollbarGrab] = c_dark_gray;
style.Colors[ImGuiCol_ScrollbarGrabHovered] = c_light_gray;
style.Colors[ImGuiCol_ScrollbarGrabActive] = c_white;
style.Colors[ImGuiCol_CheckMark] = c_white;
style.Colors[ImGuiCol_SliderGrab] = c_white;
style.Colors[ImGuiCol_SliderGrabActive] = c_white;
style.Colors[ImGuiCol_Button] = c_dark_gray;
style.Colors[ImGuiCol_ButtonHovered] = c_dark_gray;
style.Colors[ImGuiCol_ButtonActive] = c_blue;
style.Colors[ImGuiCol_Header] = c_blue;
style.Colors[ImGuiCol_HeaderHovered] = c_black;
style.Colors[ImGuiCol_HeaderActive] = c_dark_gray;
style.Colors[ImGuiCol_Separator] = c_blue;
style.Colors[ImGuiCol_SeparatorHovered] = c_white;
style.Colors[ImGuiCol_SeparatorActive] = c_white;
style.Colors[ImGuiCol_ResizeGrip] = c_light_gray;
style.Colors[ImGuiCol_ResizeGripHovered] = c_white;
style.Colors[ImGuiCol_ResizeGripActive] = c_white;
style.Colors[ImGuiCol_Tab] = c_black;
style.Colors[ImGuiCol_TabHovered] = c_blue;
style.Colors[ImGuiCol_TabActive] = c_blue;
style.Colors[ImGuiCol_TabUnfocused] = c_black;
style.Colors[ImGuiCol_TabUnfocusedActive] = c_black;
style.Colors[ImGuiCol_TextSelectedBg] = c_blue;
style.Colors[ImGuiCol_NavHighlight] = c_blue;
}

nc_color invert_color( const nc_color &c )
Expand Down
43 changes: 0 additions & 43 deletions src/sdltiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3723,49 +3723,6 @@ void catacurses::init_interface()
color_loader<SDL_Color>().load( windowsPalette );
init_colors();

ImGuiStyle &style = ImGui::GetStyle();

style.Colors[ImGuiCol_Text] = c_white;
style.Colors[ImGuiCol_TextDisabled] = c_dark_gray;
style.Colors[ImGuiCol_WindowBg] = c_black;
style.Colors[ImGuiCol_ChildBg] = c_black;
style.Colors[ImGuiCol_PopupBg] = c_black;
style.Colors[ImGuiCol_Border] = c_white;
style.Colors[ImGuiCol_BorderShadow] = c_blue;
style.Colors[ImGuiCol_FrameBg] = c_dark_gray;
style.Colors[ImGuiCol_FrameBgHovered] = c_black;
style.Colors[ImGuiCol_FrameBgActive] = c_dark_gray;
style.Colors[ImGuiCol_TitleBg] = c_blue;
style.Colors[ImGuiCol_TitleBgActive] = c_dark_gray;
style.Colors[ImGuiCol_TitleBgCollapsed] = c_blue;
style.Colors[ImGuiCol_MenuBarBg] = c_black;
style.Colors[ImGuiCol_ScrollbarBg] = c_black;
style.Colors[ImGuiCol_ScrollbarGrab] = c_dark_gray;
style.Colors[ImGuiCol_ScrollbarGrabHovered] = c_light_gray;
style.Colors[ImGuiCol_ScrollbarGrabActive] = c_white;
style.Colors[ImGuiCol_CheckMark] = c_white;
style.Colors[ImGuiCol_SliderGrab] = c_white;
style.Colors[ImGuiCol_SliderGrabActive] = c_white;
style.Colors[ImGuiCol_Button] = c_dark_gray;
style.Colors[ImGuiCol_ButtonHovered] = c_dark_gray;
style.Colors[ImGuiCol_ButtonActive] = c_blue;
style.Colors[ImGuiCol_Header] = c_blue;
style.Colors[ImGuiCol_HeaderHovered] = c_black;
style.Colors[ImGuiCol_HeaderActive] = c_dark_gray;
style.Colors[ImGuiCol_Separator] = c_blue;
style.Colors[ImGuiCol_SeparatorHovered] = c_white;
style.Colors[ImGuiCol_SeparatorActive] = c_white;
style.Colors[ImGuiCol_ResizeGrip] = c_light_gray;
style.Colors[ImGuiCol_ResizeGripHovered] = c_white;
style.Colors[ImGuiCol_ResizeGripActive] = c_white;
style.Colors[ImGuiCol_Tab] = c_black;
style.Colors[ImGuiCol_TabHovered] = c_blue;
style.Colors[ImGuiCol_TabActive] = c_blue;
style.Colors[ImGuiCol_TabUnfocused] = c_black;
style.Colors[ImGuiCol_TabUnfocusedActive] = c_black;
style.Colors[ImGuiCol_TextSelectedBg] = c_blue;
style.Colors[ImGuiCol_NavHighlight] = c_blue;

// initialize sound set
load_soundset();

Expand Down

0 comments on commit e4615ba

Please sign in to comment.