{"action":"created","issue":{"url":"https://api.github.com/repos/ocornut/imgui/issues/511","labels_url":"https://api.github.com/repos/ocornut/imgui/issues/511/labels{/name}","comments_url":"https://api.github.com/repos/ocornut/imgui/issues/511/comments","events_url":"https://api.github.com/repos/ocornut/imgui/issues/511/events","html_url":"https://github.com/ocornut/imgui/pull/511","id":129173705,"number":511,"title":"Supporting TextHovered and TextActive colors","user":{"login":"itamago","id":16628136,"avatar_url":"https://avatars.githubusercontent.com/u/16628136?v=3","gravatar_id":"","url":"https://api.github.com/users/itamago","html_url":"https://github.com/itamago","followers_url":"https://api.github.com/users/itamago/followers","following_url":"https://api.github.com/users/itamago/following{/other_user}","gists_url":"https://api.github.com/users/itamago/gists{/gist_id}","starred_url":"https://api.github.com/users/itamago/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itamago/subscriptions","organizations_url":"https://api.github.com/users/itamago/orgs","repos_url":"https://api.github.com/users/itamago/repos","events_url":"https://api.github.com/users/itamago/events{/privacy}","received_events_url":"https://api.github.com/users/itamago/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-27T15:16:35Z","updated_at":"2016-01-27T16:17:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ocornut/imgui/pulls/511","html_url":"https://github.com/ocornut/imgui/pull/511","diff_url":"https://github.com/ocornut/imgui/pull/511.diff","patch_url":"https://github.com/ocornut/imgui/pull/511.patch"},"body":"Hello,\r\nThese are minor changes in order to support TextHovered and TextActive colors.\r\nIt could be seen as nothing, but it is mandatory to have these 2 new colors when using high-contrast GUIs.\r\n\r\nA capture of the usual test case :\r\n![screen shot 2016-01-27 at 14 57 39](https://cloud.githubusercontent.com/assets/16628136/12617806/90486afe-c511-11e5-9f6a-de5a673bdaa6.png)\r\n\r\nA capture of a contrasted GUI. Please look at the \"Layout\" text which is white instead of black, which makes it more readable. The same for Buttons, Selectables, etc.\r\n![screen shot 2016-01-27 at 15 01 14](https://cloud.githubusercontent.com/assets/16628136/12617856/c17282fe-c511-11e5-8c7d-a78f0aa2052c.png)"},"comment":{"url":"https://api.github.com/repos/ocornut/imgui/issues/comments/175719267","html_url":"https://github.com/ocornut/imgui/pull/511#issuecomment-175719267","issue_url":"https://api.github.com/repos/ocornut/imgui/issues/511","id":175719267,"user":{"login":"itamago","id":16628136,"avatar_url":"https://avatars.githubusercontent.com/u/16628136?v=3","gravatar_id":"","url":"https://api.github.com/users/itamago","html_url":"https://github.com/itamago","followers_url":"https://api.github.com/users/itamago/followers","following_url":"https://api.github.com/users/itamago/following{/other_user}","gists_url":"https://api.github.com/users/itamago/gists{/gist_id}","starred_url":"https://api.github.com/users/itamago/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itamago/subscriptions","organizations_url":"https://api.github.com/users/itamago/orgs","repos_url":"https://api.github.com/users/itamago/repos","events_url":"https://api.github.com/users/itamago/events{/privacy}","received_events_url":"https://api.github.com/users/itamago/received_events","type":"User","site_admin":false},"created_at":"2016-01-27T16:17:40Z","updated_at":"2016-01-27T16:17:40Z","body":"Sure I can share the theme, it is just color-picked from OSX theme for my personal project.\r\nI take care to enable window borders, as it makes the widgets more visible (for my old eyes).\r\n\r\n\tstyle.Colors[ImGuiCol_Text]                  = ImVec4(0.00f, 0.00f, 0.00f, 1.00f);\r\n\tstyle.Colors[ImGuiCol_TextDisabled]          = ImVec4(0.60f, 0.60f, 0.60f, 1.00f);\r\n\tstyle.Colors[ImGuiCol_TextHovered]           = ImVec4(1.00f, 1.00f, 1.00f, 1.00f);\r\n\tstyle.Colors[ImGuiCol_TextActive]            = ImVec4(1.00f, 1.00f, 0.00f, 1.00f);\r\n\tstyle.Colors[ImGuiCol_WindowBg]              = ImVec4(0.94f, 0.94f, 0.94f, 1.00f);\r\n\tstyle.Colors[ImGuiCol_ChildWindowBg]         = ImVec4(0.00f, 0.00f, 0.00f, 0.00f);\r\n\tstyle.Colors[ImGuiCol_Border]                = ImVec4(0.00f, 0.00f, 0.00f, 0.39f);\r\n\tstyle.Colors[ImGuiCol_BorderShadow]          = ImVec4(1.00f, 1.00f, 1.00f, 0.10f);\r\n\tstyle.Colors[ImGuiCol_FrameBg]               = ImVec4(1.00f, 1.00f, 1.00f, 1.00f);\r\n\tstyle.Colors[ImGuiCol_FrameBgHovered]        = ImVec4(0.26f, 0.59f, 0.98f, 0.40f);\r\n\tstyle.Colors[ImGuiCol_FrameBgActive]         = ImVec4(0.26f, 0.59f, 0.98f, 0.67f);\r\n\tstyle.Colors[ImGuiCol_TitleBg]               = ImVec4(0.96f, 0.96f, 0.96f, 1.00f);\r\n\tstyle.Colors[ImGuiCol_TitleBgCollapsed]      = ImVec4(1.00f, 1.00f, 1.00f, 0.51f);\r\n\tstyle.Colors[ImGuiCol_TitleBgActive]         = ImVec4(0.82f, 0.82f, 0.82f, 1.00f);\r\n\tstyle.Colors[ImGuiCol_MenuBarBg]             = ImVec4(0.86f, 0.86f, 0.86f, 1.00f);\r\n\tstyle.Colors[ImGuiCol_ScrollbarBg]           = ImVec4(0.98f, 0.98f, 0.98f, 0.53f);\r\n\tstyle.Colors[ImGuiCol_ScrollbarGrab]         = ImVec4(0.69f, 0.69f, 0.69f, 0.80f);\r\n\tstyle.Colors[ImGuiCol_ScrollbarGrabHovered]  = ImVec4(0.49f, 0.49f, 0.49f, 0.80f);\r\n\tstyle.Colors[ImGuiCol_ScrollbarGrabActive]   = ImVec4(0.49f, 0.49f, 0.49f, 1.00f);\r\n\tstyle.Colors[ImGuiCol_ComboBg]               = ImVec4(0.86f, 0.86f, 0.86f, 0.99f);\r\n\tstyle.Colors[ImGuiCol_CheckMark]             = ImVec4(0.26f, 0.59f, 0.98f, 1.00f);\r\n\tstyle.Colors[ImGuiCol_SliderGrab]            = ImVec4(0.26f, 0.59f, 0.98f, 0.78f);\r\n\tstyle.Colors[ImGuiCol_SliderGrabActive]      = ImVec4(0.26f, 0.59f, 0.98f, 1.00f);\r\n\tstyle.Colors[ImGuiCol_Button]                = ImVec4(0.26f, 0.59f, 0.98f, 0.40f);\r\n\tstyle.Colors[ImGuiCol_ButtonHovered]         = ImVec4(0.26f, 0.59f, 0.98f, 1.00f);\r\n\tstyle.Colors[ImGuiCol_ButtonActive]          = ImVec4(0.06f, 0.53f, 0.98f, 1.00f);\r\n\tstyle.Colors[ImGuiCol_Header]                = ImVec4(0.26f, 0.59f, 0.98f, 0.31f);\r\n\tstyle.Colors[ImGuiCol_HeaderHovered]         = ImVec4(0.26f, 0.59f, 0.98f, 0.80f);\r\n\tstyle.Colors[ImGuiCol_HeaderActive]          = ImVec4(0.26f, 0.59f, 0.98f, 1.00f);\r\n\tstyle.Colors[ImGuiCol_Column]                = ImVec4(0.39f, 0.39f, 0.39f, 1.00f);\r\n\tstyle.Colors[ImGuiCol_ColumnHovered]         = ImVec4(0.26f, 0.59f, 0.98f, 0.78f);\r\n\tstyle.Colors[ImGuiCol_ColumnActive]          = ImVec4(0.26f, 0.59f, 0.98f, 1.00f);\r\n\tstyle.Colors[ImGuiCol_ResizeGrip]            = ImVec4(1.00f, 1.00f, 1.00f, 0.00f);\r\n\tstyle.Colors[ImGuiCol_ResizeGripHovered]     = ImVec4(0.26f, 0.59f, 0.98f, 0.67f);\r\n\tstyle.Colors[ImGuiCol_ResizeGripActive]      = ImVec4(0.26f, 0.59f, 0.98f, 0.95f);\r\n\tstyle.Colors[ImGuiCol_CloseButton]           = ImVec4(0.59f, 0.59f, 0.59f, 0.50f);\r\n\tstyle.Colors[ImGuiCol_CloseButtonHovered]    = ImVec4(0.98f, 0.39f, 0.36f, 1.00f);\r\n\tstyle.Colors[ImGuiCol_CloseButtonActive]     = ImVec4(0.98f, 0.39f, 0.36f, 1.00f);\r\n\tstyle.Colors[ImGuiCol_PlotLines]             = ImVec4(0.39f, 0.39f, 0.39f, 1.00f);\r\n\tstyle.Colors[ImGuiCol_PlotLinesHovered]      = ImVec4(1.00f, 0.43f, 0.35f, 1.00f);\r\n\tstyle.Colors[ImGuiCol_PlotHistogram]         = ImVec4(0.90f, 0.70f, 0.00f, 1.00f);\r\n\tstyle.Colors[ImGuiCol_PlotHistogramHovered]  = ImVec4(1.00f, 0.60f, 0.00f, 1.00f);\r\n\tstyle.Colors[ImGuiCol_TextSelectedBg]        = ImVec4(0.26f, 0.59f, 0.98f, 0.35f);\r\n\tstyle.Colors[ImGuiCol_TooltipBg]             = ImVec4(1.00f, 1.00f, 1.00f, 0.94f);\r\n\tstyle.Colors[ImGuiCol_ModalWindowDarkening]  = ImVec4(0.20f, 0.20f, 0.20f, 0.35f);\r\n\r\nAbout the other Hovered/Active colors, it doesn't make sense to modify the related widgets to use TextHovered/TextActive because they don't write any text which collides with coloured rectangles (ImGuiCol_ScrollbarGrabXXX, ImGuiCol_ColumnXXX, ImGuiCol_ResizeGripXXX, ImGuiCol_CloseButtonXXX).\r\n\r\nOk, let's put these modifications away. But there is clearly a need for text colouring.\r\n\r\n> (How about existing user code changing the color of _Text ? Potential minor breakage, may be acceptable.)\r\n\r\nMmmmh.. I don't see how to automatically change text colors depending on the state of the widgets. Especially if widgets are writing several texts with different colors (a DragFloat for example)\r\n"}}