[Bf-blender-cvs] [88e6341ce84] master: UI: Tooltips: dont add period to labels
Aaron Carlisle
noreply at git.blender.org
Wed Nov 11 21:09:04 CET 2020
Commit: 88e6341ce84851132ceba8407fb2c3058f34b6dd
Author: Aaron Carlisle
Date: Wed Nov 11 14:57:07 2020 -0500
Branches: master
https://developer.blender.org/rB88e6341ce84851132ceba8407fb2c3058f34b6dd
UI: Tooltips: dont add period to labels
These are generally only one or two word phrases and are not sentences.
This change slightly improves readability.
Note, the check when display labels:
```
Tip Label (only for buttons not already showing the label).
```
Could be improved here because there are a lot of false positives.
===================================================================
M source/blender/editors/interface/interface_region_tooltip.c
===================================================================
diff --git a/source/blender/editors/interface/interface_region_tooltip.c b/source/blender/editors/interface/interface_region_tooltip.c
index 5c3f00201a2..12f3ba609f0 100644
--- a/source/blender/editors/interface/interface_region_tooltip.c
+++ b/source/blender/editors/interface/interface_region_tooltip.c
@@ -800,7 +800,7 @@ static uiTooltipData *ui_tooltip_data_from_button(bContext *C, uiBut *but)
.style = UI_TIP_STYLE_HEADER,
.color_id = UI_TIP_LC_NORMAL,
});
- field->text = BLI_sprintfN("%s.", but_label.strinfo);
+ field->text = BLI_sprintfN("%s", but_label.strinfo);
}
/* Tip */
More information about the Bf-blender-cvs
mailing list