From 534a0f7ffb7db405ae6d75f9291b895f42e9ddfa Mon Sep 17 00:00:00 2001 From: Charles Dang Date: Sun, 22 Mar 2015 23:30:51 +1100 Subject: [PATCH] Use 4 spaces instead of an image hack to indent topic lists --- images/help/indentation.png | Bin 107 -> 0 bytes src/help/help_impl.cpp | 1 - src/help/help_impl.hpp | 1 - src/help/help_menu.cpp | 14 +++++++------- src/help/help_menu.hpp | 2 +- 5 files changed, 8 insertions(+), 10 deletions(-) delete mode 100644 images/help/indentation.png diff --git a/images/help/indentation.png b/images/help/indentation.png deleted file mode 100644 index 507ab0a3a927d2bd61d2441eeb18f5707e88412c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 107 zcmeAS@N?(olHy`uVBq!ia0vp^JU}eL!3HGH8OdY;DI-r8#}JF&item_size(indented_icon(icon_img, sec->level)).w - style_->get_thickness(); + int text_start = style_->item_size(indent_list(icon_img, sec->level)).w - style_->get_thickness(); // NOTE: if you want to forbid click to the left of the icon // also check x >= text_start-image_width(icon_img) diff --git a/src/help/help_menu.hpp b/src/help/help_menu.hpp index 7a124d7fec5e..314abbe821a5 100644 --- a/src/help/help_menu.hpp +++ b/src/help/help_menu.hpp @@ -75,7 +75,7 @@ class help_menu : public gui::menu /// Return the string to use as the prefix for the icon part of the /// menu-string at the specified level. - std::string indented_icon(const std::string &icon, const unsigned level); + std::string indent_list(const std::string &icon, const unsigned level); /// Return the string to use as the menu-string for sections at the /// specified level. std::string get_string_to_show(const section &sec, const unsigned level);