UI: Change menu icons of single-choice enums to radio buttons #111796

Merged
Harley Acheson merged 1 commits from Mysteryem/blender:ui_enum_menu_item_radio_icons into main 2023-09-13 19:24:25 +02:00

1 Commits

Author SHA1 Message Date
Thomas Barlow bbc1a5393a UI: Change menu icons of single-choice enums to radio buttons
Checkboxes are usually used when multiple choices can be made from
multiple options.

Radio buttons are usually used when only a single choice can be made
from multiple options.

Enum properties that do not have PROP_ENUM_FLAG can only have a single
chosen value, so this patch changes their menu icons from checkboxes to
radio buttons.

Affected UI primarily includes use of UILayout.prop_menu_enum in Python-
defined UI, such as View>Display Size in the Asset Browser and File
Browser, and the menu for changing a Brush's tool in the Brush Specials
menu.
2023-09-01 14:56:31 +01:00