Merge pull request #7650 from irydacea/feature/gui-dropdown-checkbox-tweak
gui: Use true labelless checkboxes in the dropdown menu implementation
This commit is contained in:
commit
8f112d287e
2 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
|||
#textdomain wesnoth-lib
|
||||
###
|
||||
### Definition of a toggle button without a label.
|
||||
### (Note that this is also used by the implementation of the dropdown menu on
|
||||
### the C++ side.)
|
||||
###
|
||||
|
||||
#define _GUI_RESOLUTION RESOLUTION WIDTH HEIGHT
|
||||
|
|
|
@ -195,7 +195,7 @@ void drop_down_menu::pre_show(window& window)
|
|||
find_widget<toggle_panel>(&new_row, "panel", false).set_tooltip(entry.tooltip);
|
||||
|
||||
if(entry.checkbox) {
|
||||
auto checkbox = build_single_widget_instance<toggle_button>();
|
||||
auto checkbox = build_single_widget_instance<toggle_button>(config{"definition", "no_label"});
|
||||
checkbox->set_id("checkbox");
|
||||
checkbox->set_value_bool(*entry.checkbox);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue