colorify -> colorize
[ci skip]
This commit is contained in:
parent
c53ca89e8d
commit
1485d68b17
3 changed files with 6 additions and 6 deletions
|
@ -189,7 +189,7 @@ namespace {
|
|||
str += ", ";
|
||||
}
|
||||
|
||||
str += addon_list::colorify_addon_state_string(dep.display_title(), depstate.state);
|
||||
str += addon_list::colorize_addon_state_string(dep.display_title(), depstate.state);
|
||||
}
|
||||
|
||||
return str;
|
||||
|
@ -302,7 +302,7 @@ static std::string describe_status_verbose(const addon_tracking_info& state)
|
|||
s = _("addon_state^Unknown");
|
||||
}
|
||||
|
||||
return addon_list::colorify_addon_state_string(s, state.state);
|
||||
return addon_list::colorize_addon_state_string(s, state.state);
|
||||
}
|
||||
|
||||
void addon_manager::pre_show(window& window)
|
||||
|
|
|
@ -53,7 +53,7 @@ addon_list::addon_list(const implementation::builder_addon_list& builder)
|
|||
|
||||
static color_t color_outdated {255, 127, 0};
|
||||
|
||||
std::string addon_list::colorify_addon_state_string(const std::string& str, ADDON_STATUS state, bool verbose)
|
||||
std::string addon_list::colorize_addon_state_string(const std::string& str, ADDON_STATUS state, bool verbose)
|
||||
{
|
||||
color_t colorname = font::NORMAL_COLOR;
|
||||
|
||||
|
@ -122,7 +122,7 @@ std::string addon_list::describe_status(const addon_tracking_info& info)
|
|||
tx = _("addon_state^Unknown");
|
||||
}
|
||||
|
||||
return colorify_addon_state_string(tx, info.state, true);
|
||||
return colorize_addon_state_string(tx, info.state, true);
|
||||
}
|
||||
|
||||
void addon_list::set_addons(const addons_list& addons)
|
||||
|
@ -177,7 +177,7 @@ void addon_list::set_addons(const addons_list& addons)
|
|||
ss << addon.version.str();
|
||||
|
||||
if(special_version_display) {
|
||||
ss.str(colorify_addon_state_string(ss.str(), tracking_info.state, false));
|
||||
ss.str(colorize_addon_state_string(ss.str(), tracking_info.state, false));
|
||||
}
|
||||
|
||||
item["label"] = ss.str();
|
||||
|
|
|
@ -101,7 +101,7 @@ public:
|
|||
* Changes the color of an add-on state string (installed, outdated, etc.) according to the state itself.
|
||||
* This function is here because the add-on list widget itself needs it.
|
||||
*/
|
||||
static std::string colorify_addon_state_string(const std::string& str, ADDON_STATUS state, bool verbose = false);
|
||||
static std::string colorize_addon_state_string(const std::string& str, ADDON_STATUS state, bool verbose = false);
|
||||
|
||||
/** Determines if install status of each widget is shown. */
|
||||
void set_install_status_visibility(visibility visibility)
|
||||
|
|
Loading…
Add table
Reference in a new issue