UI: Remove Colons From Number Fields
Removes the colon separating label and number inside some number fields. Differential Revision: https://developer.blender.org/D5628 Reviewed by Brecht Van Lommel
This commit is contained in:
parent
f7b47ce16d
commit
a209681bee
|
@ -1467,7 +1467,7 @@ class SEQUENCER_PT_time(SequencerButtonsPanel, Panel):
|
|||
split.alignment = 'RIGHT'
|
||||
split.label(text="End")
|
||||
split = split.split(factor=0.8 + max_factor, align=True)
|
||||
split.label(text="{:>14}".format(smpte_from_frame(frame_final_end) + ":"))
|
||||
split.label(text="{:>14}".format(smpte_from_frame(frame_final_end)))
|
||||
split.alignment = 'RIGHT'
|
||||
split.label(text=str(frame_final_end) + " ")
|
||||
|
||||
|
@ -1511,7 +1511,7 @@ class SEQUENCER_PT_time(SequencerButtonsPanel, Panel):
|
|||
split.label(text="Playhead")
|
||||
split = split.split(factor=0.8 + max_factor, align=True)
|
||||
playhead = frame_current - frame_final_start
|
||||
split.label(text="{:>14}".format(smpte_from_frame(playhead) + ":"))
|
||||
split.label(text="{:>14}".format(smpte_from_frame(playhead)))
|
||||
split.alignment = 'RIGHT'
|
||||
split.label(text=str(playhead) + " ")
|
||||
|
||||
|
|
|
@ -2188,7 +2188,7 @@ static void widget_draw_text(const uiFontStyle *fstyle,
|
|||
drawstr_right = strrchr(drawstr + but->ofs, ':');
|
||||
if (drawstr_right) {
|
||||
drawstr_right++;
|
||||
drawstr_left_len = (drawstr_right - drawstr);
|
||||
drawstr_left_len = (drawstr_right - drawstr - 1);
|
||||
|
||||
while (*drawstr_right == ' ') {
|
||||
drawstr_right++;
|
||||
|
|
Loading…
Reference in New Issue