Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed blurred ellipses under five main menu options #5222

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/guiengine/skin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1400,6 +1400,7 @@ void Skin::drawRibbonChild(const core::recti &rect, Widget* widget,
else
{
bool use_glow = true;
bool use_square = true;

if (widget->m_event_handler != NULL &&
widget->m_event_handler->m_properties[PROP_SQUARE] == "true")
Expand All @@ -1410,6 +1411,13 @@ void Skin::drawRibbonChild(const core::recti &rect, Widget* widget,
->m_properties[PROP_SQUARE] == "true")
use_glow = false;

if (widget->m_properties[PROP_ID] == "story" || widget->m_properties[PROP_ID] == "new"
|| widget->m_properties[PROP_ID] == "multiplayer" || widget->m_properties[PROP_ID] == "online"
|| widget->m_properties[PROP_ID] == "addons")
{
use_glow = false; use_square = false;
}

/* in combo ribbons, always show selection */
RibbonWidget* parentRibbonWidget = NULL;
bool always_show_selection = false;
Expand Down Expand Up @@ -1601,7 +1609,7 @@ void Skin::drawRibbonChild(const core::recti &rect, Widget* widget,
/*alpha*/true);
}
// if we're not using glow, draw square focus instead
else
else if (use_square)
{
drawBoxFromStretchableTexture(parentRibbonWidget, rect,
SkinConfig::m_render_params["squareFocusHalo1::neutral"]);
Expand Down