forked from bartvdbraak/blender
Properties Window UI:
* Some tweaks to the stamp panel to make it more compact. * Remove "Stamp" Prefix for the color values, redundant info.
This commit is contained in:
parent
0239333f0c
commit
33ba505ef4
@ -419,6 +419,12 @@ class RENDER_PT_stamp(RenderButtonsPanel, Panel):
|
||||
|
||||
layout.active = rd.use_stamp
|
||||
|
||||
layout.prop(rd, "stamp_font_size", text="Font Size")
|
||||
|
||||
row = layout.row()
|
||||
row.column().prop(rd, "stamp_foreground", slider=True)
|
||||
row.column().prop(rd, "stamp_background", slider=True)
|
||||
|
||||
split = layout.split()
|
||||
|
||||
col = split.column()
|
||||
@ -427,19 +433,14 @@ class RENDER_PT_stamp(RenderButtonsPanel, Panel):
|
||||
col.prop(rd, "use_stamp_render_time", text="RenderTime")
|
||||
col.prop(rd, "use_stamp_frame", text="Frame")
|
||||
col.prop(rd, "use_stamp_scene", text="Scene")
|
||||
|
||||
col = split.column()
|
||||
col.prop(rd, "use_stamp_camera", text="Camera")
|
||||
col.prop(rd, "use_stamp_lens", text="Lens")
|
||||
col.prop(rd, "use_stamp_filename", text="Filename")
|
||||
col.prop(rd, "use_stamp_marker", text="Marker")
|
||||
col.prop(rd, "use_stamp_sequencer_strip", text="Seq. Strip")
|
||||
|
||||
col = split.column()
|
||||
col.active = rd.use_stamp
|
||||
col.prop(rd, "stamp_foreground", slider=True)
|
||||
col.prop(rd, "stamp_background", slider=True)
|
||||
col.separator()
|
||||
col.prop(rd, "stamp_font_size", text="Font Size")
|
||||
|
||||
row = layout.split(percentage=0.2)
|
||||
row.prop(rd, "use_stamp_note", text="Note")
|
||||
sub = row.row()
|
||||
|
@ -3440,14 +3440,14 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
|
||||
RNA_def_property_float_sdna(prop, NULL, "fg_stamp");
|
||||
RNA_def_property_array(prop, 4);
|
||||
RNA_def_property_range(prop,0.0,1.0);
|
||||
RNA_def_property_ui_text(prop, "Stamp Text Color", "Color to use for stamp text");
|
||||
RNA_def_property_ui_text(prop, "Text Color", "Color to use for stamp text");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
prop= RNA_def_property(srna, "stamp_background", PROP_FLOAT, PROP_COLOR);
|
||||
RNA_def_property_float_sdna(prop, NULL, "bg_stamp");
|
||||
RNA_def_property_array(prop, 4);
|
||||
RNA_def_property_range(prop,0.0,1.0);
|
||||
RNA_def_property_ui_text(prop, "Stamp Background", "Color to use behind stamp text");
|
||||
RNA_def_property_ui_text(prop, "Background", "Color to use behind stamp text");
|
||||
RNA_def_property_update(prop, NC_SCENE|ND_RENDER_OPTIONS, NULL);
|
||||
|
||||
/* sequencer draw options */
|
||||
|
Loading…
Reference in New Issue
Block a user