| 372 | } |
| 373 | |
| 374 | void RibbonMenu::drawHelpButton_( const std::string& url ) |
| 375 | { |
| 376 | float btnSize = UI::scale() * cTopPanelAditionalButtonSize; |
| 377 | |
| 378 | ImGui::PushStyleVar( ImGuiStyleVar_FrameRounding, cHeaderQuickAccessFrameRounding * UI::scale() ); |
| 379 | ImGui::PushStyleVar( ImGuiStyleVar_FrameBorderSize, 0.0f ); |
| 380 | ImGui::PushStyleColor( ImGuiCol_Button, ImVec4( 0, 0, 0, 0 ) ); |
| 381 | ImGui::PushStyleColor( ImGuiCol_ButtonHovered, ImGui::GetStyleColorVec4( ImGuiCol_ScrollbarGrabHovered ) ); |
| 382 | ImGui::PushStyleColor( ImGuiCol_ButtonActive, ImGui::GetStyleColorVec4( ImGuiCol_ScrollbarGrabActive ) ); |
| 383 | |
| 384 | ImGui::PushStyleColor( ImGuiCol_Text, ColorTheme::getRibbonColor( ColorTheme::RibbonColorsType::TabText ).getUInt32() ); |
| 385 | RibbonFontHolder font( RibbonFontManager::FontType::Icons, 0.7f ); |
| 386 | if ( ImGui::Button( "\xef\x81\x99", ImVec2( btnSize, btnSize ) ) ) |
| 387 | OpenLink( url ); |
| 388 | font.popFont(); |
| 389 | ImGui::PopStyleColor(); |
| 390 | UI::setTooltipIfHovered( _tr( "Open help page" ) ); |
| 391 | |
| 392 | ImGui::PopStyleColor( 3 ); |
| 393 | ImGui::PopStyleVar( 2 ); |
| 394 | } |
| 395 | |
| 396 | void RibbonMenu::drawLanguageButton_() |
| 397 | { |