Skip to content

Commit

Permalink
hotkeys: Use a matching arrow icon style for submenus
Browse files Browse the repository at this point in the history
  • Loading branch information
irydacea committed Oct 9, 2015
1 parent cb7b217 commit 80dedf7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/hotkey/command_executor.cpp
Expand Up @@ -378,8 +378,9 @@ std::string command_executor::get_menu_image(display& disp, const std::string& c
const hotkey::ACTION_STATE state = get_action_state(hk, index);

const theme::menu* menu = disp.get_theme().get_menu_item(command);
if (menu)
return "buttons/fold-arrow.png"; // TODO should not be hardcoded
if (menu) {
return "icons/arrows/short_arrow_right_25.png~CROP(3,3,18,18)"; // TODO should not be hardcoded
}

if (filesystem::file_exists(game_config::path + "/images/" + base_image_name)) {
switch (state) {
Expand Down

0 comments on commit 80dedf7

Please sign in to comment.