tracy
tracy copied to clipboard
Light theme
It would be nice if the Tracy Profiler program supported a light theme. I use light theme on most of my programs as an accessibility feature, because I find it far easier to read as my eyesight gets worse.
You may try changing fragment_shader_glsl_130
in profiler/src/imgui/imgui_impl_opengl3.cpp
to be as such:
const GLchar* fragment_shader_glsl_130 =
"uniform sampler2D Texture;\n"
"in vec2 Frag_UV;\n"
"in vec4 Frag_Color;\n"
"out vec4 Out_Color;\n"
"void main()\n"
"{\n"
" vec4 c = Frag_Color * texture(Texture, Frag_UV.st);\n"
" float h = 1 - min(c.r, min(c.g, c.b)) - max(c.r, max(c.g, c.b));\n"
" Out_Color = vec4(h+c.r, h+c.g, h+c.b, c.a);\n"
"}\n";
This gives the following effect:
Alternatively, you can change the settings from ImGui::GetStyle()
like this example: https://gist.github.com/dougbinks/8089b4bbaccaaf6fa204236978d165a9#file-imguiutils-h-L9-L93
People have posted their custom settings in this thread (https://github.com/ocornut/imgui/issues/707), so you can probably select the one that you like best and copy/paste in the source code somewhere.
Colors in certain parts of the UI are hardcoded to match the dark theme, so changing the used theme to a light one will make things clash.
That's a very good point. The shader workaround seems like a better temporary solution.