@@ -69,64 +69,71 @@ inline void InfosPane(const char* vFilter, IGFDUserDatas vUserDatas, bool* vCant
6969
7070void ApplyOrangeBlueTheme () {
7171 ImGuiStyle style;
72- style.Colors [ImGuiCol_Text] = ImVec4 (0 .85f , 0 .85f , 0 .85f , 1 .00f );
73- style.Colors [ImGuiCol_TextDisabled] = ImVec4 (0 .65f , 0 .65f , 0 .65f , 1 .00f );
74- style.Colors [ImGuiCol_WindowBg] = ImVec4 (0 .15f , 0 .16f , 0 .17f , 1 .00f );
75- style.Colors [ImGuiCol_ChildBg] = ImVec4 (0 .15f , 0 .16f , 0 .17f , 1 .00f );
76- style.Colors [ImGuiCol_PopupBg] = ImVec4 (0 .15f , 0 .16f , 0 .17f , 1 .00f );
77- style.Colors [ImGuiCol_Border] = ImVec4 (0 .26f , 0 .28f , 0 .29f , 1 .00f );
78- style.Colors [ImGuiCol_BorderShadow] = ImVec4 (0 .32f , 0 .34f , 0 .36f , 1 .00f );
79- style.Colors [ImGuiCol_FrameBg] = ImVec4 (0 .21f , 0 .29f , 0 .36f , 1 .00f );
80- style.Colors [ImGuiCol_FrameBgHovered] = ImVec4 (0 .26f , 0 .59f , 0 .98f , 0 .71f );
81- style.Colors [ImGuiCol_FrameBgActive] = ImVec4 (0 .26f , 0 .59f , 0 .98f , 0 .93f );
82- style.Colors [ImGuiCol_TitleBg] = ImVec4 (0 .18f , 0 .20f , 0 .21f , 1 .00f );
83- style.Colors [ImGuiCol_TitleBgActive] = ImVec4 (0 .23f , 0 .25f , 0 .26f , 1 .00f );
84- style.Colors [ImGuiCol_TitleBgCollapsed] = ImVec4 (0 .30f , 0 .33f , 0 .35f , 1 .00f );
85- style.Colors [ImGuiCol_MenuBarBg] = ImVec4 (0 .15f , 0 .16f , 0 .17f , 1 .00f );
86- style.Colors [ImGuiCol_ScrollbarBg] = ImVec4 (0 .21f , 0 .29f , 0 .36f , 0 .89f );
87- style.Colors [ImGuiCol_ScrollbarGrab] = ImVec4 (0 .13f , 0 .52f , 0 .94f , 0 .45f );
88- style.Colors [ImGuiCol_ScrollbarGrabHovered] = ImVec4 (0 .13f , 0 .71f , 1 .00f , 0 .89f );
89- style.Colors [ImGuiCol_ScrollbarGrabActive] = ImVec4 (0 .24f , 0 .78f , 0 .78f , 0 .31f );
90- style.Colors [ImGuiCol_CheckMark] = ImVec4 (1 .00f , 0 .60f , 0 .00f , 1 .00f );
91- style.Colors [ImGuiCol_SliderGrab] = ImVec4 (0 .24f , 0 .52f , 0 .88f , 1 .00f );
92- style.Colors [ImGuiCol_SliderGrabActive] = ImVec4 (0 .26f , 0 .59f , 0 .98f , 1 .00f );
93- style.Colors [ImGuiCol_Button] = ImVec4 (1 .00f , 0 .60f , 0 .00f , 0 .80f );
94- style.Colors [ImGuiCol_ButtonHovered] = ImVec4 (1 .00f , 0 .48f , 0 .00f , 0 .80f );
95- style.Colors [ImGuiCol_ButtonActive] = ImVec4 (1 .00f , 0 .40f , 0 .00f , 0 .80f );
96- style.Colors [ImGuiCol_Header] = ImVec4 (0 .13f , 0 .52f , 0 .94f , 0 .66f );
97- style.Colors [ImGuiCol_HeaderHovered] = ImVec4 (0 .13f , 0 .52f , 0 .94f , 1 .00f );
98- style.Colors [ImGuiCol_HeaderActive] = ImVec4 (0 .13f , 0 .52f , 0 .94f , 0 .59f );
99- style.Colors [ImGuiCol_Separator] = ImVec4 (0 .18f , 0 .35f , 0 .58f , 0 .59f );
100- style.Colors [ImGuiCol_SeparatorHovered] = ImVec4 (0 .10f , 0 .40f , 0 .75f , 0 .78f );
101- style.Colors [ImGuiCol_SeparatorActive] = ImVec4 (0 .10f , 0 .40f , 0 .75f , 1 .00f );
102- style.Colors [ImGuiCol_ResizeGrip] = ImVec4 (0 .26f , 0 .59f , 0 .98f , 0 .20f );
103- style.Colors [ImGuiCol_ResizeGripHovered] = ImVec4 (0 .26f , 0 .59f , 0 .98f , 0 .67f );
104- style.Colors [ImGuiCol_ResizeGripActive] = ImVec4 (0 .26f , 0 .59f , 0 .98f , 0 .95f );
105- style.Colors [ImGuiCol_Tab] = ImVec4 (0 .20f , 0 .41f , 0 .68f , 0 .00f );
106- style.Colors [ImGuiCol_TabHovered] = ImVec4 (0 .26f , 0 .59f , 0 .98f , 0 .80f );
107- style.Colors [ImGuiCol_TabSelected] = ImVec4 (0 .20f , 0 .41f , 0 .68f , 1 .00f );
108- style.Colors [ImGuiCol_TabDimmed] = ImVec4 (0 .20f , 0 .41f , 0 .68f , 0 .00f );
109- style.Colors [ImGuiCol_TabDimmedSelected] = ImVec4 (0 .20f , 0 .41f , 0 .68f , 1 .00f );
110- style.Colors [ImGuiCol_PlotLines] = ImVec4 (0 .61f , 0 .61f , 0 .61f , 1 .00f );
111- style.Colors [ImGuiCol_PlotLinesHovered] = ImVec4 (1 .00f , 0 .43f , 0 .35f , 1 .00f );
112- style.Colors [ImGuiCol_PlotHistogram] = ImVec4 (0 .13f , 0 .52f , 0 .94f , 0 .95f );
113- style.Colors [ImGuiCol_PlotHistogramHovered] = ImVec4 (1 .00f , 0 .60f , 0 .00f , 1 .00f );
114- style.Colors [ImGuiCol_TableHeaderBg] = ImVec4 (0 .19f , 0 .19f , 0 .20f , 1 .00f );
115- style.Colors [ImGuiCol_TableBorderStrong] = ImVec4 (0 .31f , 0 .31f , 0 .35f , 1 .00f );
116- style.Colors [ImGuiCol_TableBorderLight] = ImVec4 (0 .23f , 0 .23f , 0 .25f , 1 .00f );
117- style.Colors [ImGuiCol_TableRowBg] = ImVec4 (0 .15f , 0 .16f , 0 .17f , 1 .00f );
118- style.Colors [ImGuiCol_TableRowBgAlt] = ImVec4 (1 .00f , 1 .00f , 1 .00f , 0 .06f );
119- style.Colors [ImGuiCol_TextSelectedBg] = ImVec4 (0 .26f , 0 .59f , 0 .98f , 0 .35f );
120- style.Colors [ImGuiCol_DragDropTarget] = ImVec4 (1 .00f , 1 .00f , 0 .00f , 0 .90f );
121- style.Colors [ImGuiCol_NavHighlight] = ImVec4 (0 .26f , 0 .59f , 0 .98f , 1 .00f );
122- style.Colors [ImGuiCol_NavWindowingHighlight] = ImVec4 (1 .00f , 1 .00f , 1 .00f , 0 .70f );
123- style.Colors [ImGuiCol_NavWindowingDimBg] = ImVec4 (0 .80f , 0 .80f , 0 .80f , 0 .20f );
124- style.Colors [ImGuiCol_ModalWindowDimBg] = ImVec4 (0 .80f , 0 .80f , 0 .80f , 0 .35f );
125-
126- style.Colors [ImGuiCol_WindowBg].w = 1 .00f ;
127- style.Colors [ImGuiCol_ChildBg].w = 0 .00f ;
128- style.Colors [ImGuiCol_MenuBarBg] = ImVec4 (0 .0f , 0 .0f , 0 .0f , 0 .0f );
129- style.Colors [ImGuiCol_BorderShadow] = ImVec4 (0 .0f , 0 .0f , 0 .0f , 0 .0f );
72+ style.Colors [ImGuiCol_Text] = ImVec4 (0 .85f , 0 .85f , 0 .85f , 1 .00f );
73+ style.Colors [ImGuiCol_TextDisabled] = ImVec4 (0 .65f , 0 .65f , 0 .65f , 1 .00f );
74+ style.Colors [ImGuiCol_WindowBg] = ImVec4 (0 .15f , 0 .16f , 0 .17f , 1 .00f );
75+ style.Colors [ImGuiCol_ChildBg] = ImVec4 (0 .15f , 0 .16f , 0 .17f , 1 .00f );
76+ style.Colors [ImGuiCol_PopupBg] = ImVec4 (0 .15f , 0 .16f , 0 .17f , 1 .00f );
77+ style.Colors [ImGuiCol_Border] = ImVec4 (0 .26f , 0 .28f , 0 .29f , 1 .00f );
78+ style.Colors [ImGuiCol_BorderShadow] = ImVec4 (0 .32f , 0 .34f , 0 .36f , 1 .00f );
79+ style.Colors [ImGuiCol_FrameBg] = ImVec4 (0 .21f , 0 .29f , 0 .36f , 1 .00f );
80+ style.Colors [ImGuiCol_FrameBgHovered] = ImVec4 (0 .26f , 0 .59f , 0 .98f , 0 .71f );
81+ style.Colors [ImGuiCol_FrameBgActive] = ImVec4 (0 .26f , 0 .59f , 0 .98f , 0 .93f );
82+ style.Colors [ImGuiCol_TitleBg] = ImVec4 (0 .18f , 0 .20f , 0 .21f , 1 .00f );
83+ style.Colors [ImGuiCol_TitleBgActive] = ImVec4 (0 .23f , 0 .25f , 0 .26f , 1 .00f );
84+ style.Colors [ImGuiCol_TitleBgCollapsed] = ImVec4 (0 .30f , 0 .33f , 0 .35f , 1 .00f );
85+ style.Colors [ImGuiCol_MenuBarBg] = ImVec4 (0 .15f , 0 .16f , 0 .17f , 1 .00f );
86+ style.Colors [ImGuiCol_ScrollbarBg] = ImVec4 (0 .21f , 0 .29f , 0 .36f , 0 .89f );
87+ style.Colors [ImGuiCol_ScrollbarGrab] = ImVec4 (0 .13f , 0 .52f , 0 .94f , 0 .45f );
88+ style.Colors [ImGuiCol_ScrollbarGrabHovered] = ImVec4 (0 .13f , 0 .71f , 1 .00f , 0 .89f );
89+ style.Colors [ImGuiCol_ScrollbarGrabActive] = ImVec4 (0 .24f , 0 .78f , 0 .78f , 0 .31f );
90+ style.Colors [ImGuiCol_CheckMark] = ImVec4 (1 .00f , 0 .60f , 0 .00f , 1 .00f );
91+ style.Colors [ImGuiCol_SliderGrab] = ImVec4 (0 .24f , 0 .52f , 0 .88f , 1 .00f );
92+ style.Colors [ImGuiCol_SliderGrabActive] = ImVec4 (0 .26f , 0 .59f , 0 .98f , 1 .00f );
93+ style.Colors [ImGuiCol_Button] = ImVec4 (1 .00f , 0 .60f , 0 .00f , 0 .80f );
94+ style.Colors [ImGuiCol_ButtonHovered] = ImVec4 (1 .00f , 0 .48f , 0 .00f , 0 .80f );
95+ style.Colors [ImGuiCol_ButtonActive] = ImVec4 (1 .00f , 0 .40f , 0 .00f , 0 .80f );
96+ style.Colors [ImGuiCol_Header] = ImVec4 (0 .13f , 0 .52f , 0 .94f , 0 .66f );
97+ style.Colors [ImGuiCol_HeaderHovered] = ImVec4 (0 .13f , 0 .52f , 0 .94f , 1 .00f );
98+ style.Colors [ImGuiCol_HeaderActive] = ImVec4 (0 .13f , 0 .52f , 0 .94f , 0 .59f );
99+ style.Colors [ImGuiCol_Separator] = ImVec4 (0 .18f , 0 .35f , 0 .58f , 0 .59f );
100+ style.Colors [ImGuiCol_SeparatorHovered] = ImVec4 (0 .10f , 0 .40f , 0 .75f , 0 .78f );
101+ style.Colors [ImGuiCol_SeparatorActive] = ImVec4 (0 .10f , 0 .40f , 0 .75f , 1 .00f );
102+ style.Colors [ImGuiCol_ResizeGrip] = ImVec4 (0 .26f , 0 .59f , 0 .98f , 0 .20f );
103+ style.Colors [ImGuiCol_ResizeGripHovered] = ImVec4 (0 .26f , 0 .59f , 0 .98f , 0 .67f );
104+ style.Colors [ImGuiCol_ResizeGripActive] = ImVec4 (0 .26f , 0 .59f , 0 .98f , 0 .95f );
105+ style.Colors [ImGuiCol_InputTextCursor] = ImVec4 (0 .26f , 0 .59f , 0 .98f , 0 .95f );
106+ style.Colors [ImGuiCol_Tab] = ImVec4 (0 .20f , 0 .41f , 0 .68f , 0 .00f );
107+ style.Colors [ImGuiCol_TabHovered] = ImVec4 (0 .26f , 0 .59f , 0 .98f , 0 .80f );
108+ style.Colors [ImGuiCol_TabSelected] = ImVec4 (0 .20f , 0 .41f , 0 .68f , 1 .00f );
109+ style.Colors [ImGuiCol_TabSelectedOverline] = ImVec4 (0 .20f , 0 .41f , 0 .68f , 1 .00f );
110+ style.Colors [ImGuiCol_TabDimmed] = ImVec4 (0 .20f , 0 .41f , 0 .68f , 0 .00f );
111+ style.Colors [ImGuiCol_TabDimmedSelected] = ImVec4 (0 .20f , 0 .41f , 0 .68f , 1 .00f );
112+ style.Colors [ImGuiCol_TabDimmedSelectedOverline] = ImVec4 (0 .20f , 0 .41f , 0 .68f , 1 .00f );
113+ style.Colors [ImGuiCol_DockingPreview] = ImVec4 (0 .20f , 0 .41f , 0 .68f , 1 .00f );
114+ style.Colors [ImGuiCol_DockingEmptyBg] = ImVec4 (0 .20f , 0 .41f , 0 .68f , 1 .00f );
115+ style.Colors [ImGuiCol_PlotLines] = ImVec4 (0 .61f , 0 .61f , 0 .61f , 1 .00f );
116+ style.Colors [ImGuiCol_PlotLinesHovered] = ImVec4 (1 .00f , 0 .43f , 0 .35f , 1 .00f );
117+ style.Colors [ImGuiCol_PlotHistogram] = ImVec4 (0 .13f , 0 .52f , 0 .94f , 0 .95f );
118+ style.Colors [ImGuiCol_PlotHistogramHovered] = ImVec4 (1 .00f , 0 .60f , 0 .00f , 1 .00f );
119+ style.Colors [ImGuiCol_TableHeaderBg] = ImVec4 (0 .19f , 0 .19f , 0 .20f , 1 .00f );
120+ style.Colors [ImGuiCol_TableBorderStrong] = ImVec4 (0 .31f , 0 .31f , 0 .35f , 1 .00f );
121+ style.Colors [ImGuiCol_TableBorderLight] = ImVec4 (0 .23f , 0 .23f , 0 .25f , 1 .00f );
122+ style.Colors [ImGuiCol_TableRowBg] = ImVec4 (0 .15f , 0 .16f , 0 .17f , 1 .00f );
123+ style.Colors [ImGuiCol_TableRowBgAlt] = ImVec4 (1 .00f , 1 .00f , 1 .00f , 0 .06f );
124+ style.Colors [ImGuiCol_TextLink] = ImVec4 (1 .00f , 1 .00f , 1 .00f , 0 .06f );
125+ style.Colors [ImGuiCol_TextSelectedBg] = ImVec4 (0 .26f , 0 .59f , 0 .98f , 0 .35f );
126+ style.Colors [ImGuiCol_TreeLines] = ImVec4 (1 .00f , 1 .00f , 1 .00f , 0 .06f );
127+ style.Colors [ImGuiCol_DragDropTarget] = ImVec4 (1 .00f , 1 .00f , 0 .00f , 0 .90f );
128+ style.Colors [ImGuiCol_NavCursor] = ImVec4 (1 .00f , 1 .00f , 1 .00f , 0 .06f );
129+ style.Colors [ImGuiCol_NavWindowingHighlight] = ImVec4 (1 .00f , 1 .00f , 1 .00f , 0 .70f );
130+ style.Colors [ImGuiCol_NavWindowingDimBg] = ImVec4 (0 .80f , 0 .80f , 0 .80f , 0 .20f );
131+ style.Colors [ImGuiCol_ModalWindowDimBg] = ImVec4 (0 .80f , 0 .80f , 0 .80f , 0 .35f );
132+
133+ style.Colors [ImGuiCol_WindowBg].w = 1 .00f ;
134+ style.Colors [ImGuiCol_ChildBg].w = 0 .00f ;
135+ style.Colors [ImGuiCol_MenuBarBg] = ImVec4 (0 .0f , 0 .0f , 0 .0f , 0 .0f );
136+ style.Colors [ImGuiCol_BorderShadow] = ImVec4 (0 .0f , 0 .0f , 0 .0f , 0 .0f );
130137
131138 // Main
132139 style.WindowPadding = ImVec2 (4 .00f , 4 .00f );
@@ -265,7 +272,7 @@ void DemoDialog::init(const float& vFontSize) {
265272 GLuint textureId = 0 ;
266273 glGenTextures (1 , &textureId);
267274 vThumbnail_Info->textureID = (void *)(size_t )textureId;
268-
275+
269276 glBindTexture (GL_TEXTURE_2D, textureId);
270277 glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
271278 glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
@@ -320,17 +327,6 @@ void DemoDialog::init(const float& vFontSize) {
320327 });
321328#endif // USE_THUMBNAILS
322329
323- // Fonts
324- {
325- ImFontConfig icons_config_0;
326- icons_config_0.GlyphRanges = ImGui::GetIO ().Fonts ->GetGlyphRangesChineseFull ();
327- // ImGui::GetIO().Fonts->AddFontDefault(&icons_config_0);
328- }
329- {
330- ImFontConfig icons_config_1;
331- icons_config_1.GlyphRanges = ImGui::GetIO ().Fonts ->GetGlyphRangesChineseFull ();
332- // ImGui::GetIO().Fonts->AddFontFromFileTTF("NotoSansSCRegular.ttf", vFontSize, &icons_config_1);
333- }
334330 { // Boboto Font
335331 ImGui::GetIO ().Fonts ->AddFontFromMemoryCompressedBase85TTF (FONT_ICON_BUFFER_NAME_RM, vFontSize);
336332 }
0 commit comments