Skip to content

Commit

Permalink
Port to 2.78 - 0.3.0 changes - Text Editor. Replaced the Properties p…
Browse files Browse the repository at this point in the history
…anel by the one from Bforartists 080.

Issue: http://www.bforartists.de/wiki/bforartistsreleasenotev030
  • Loading branch information
ReinerBforartists committed Jan 27, 2017
1 parent 5f3d622 commit 987db2c
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions release/scripts/startup/bl_ui/space_text.py
Expand Up @@ -105,7 +105,6 @@ def draw_menus(layout, context):
layout.menu("TEXT_MT_format")



class TEXT_PT_properties(Panel):
bl_space_type = 'TEXT_EDITOR'
bl_region_type = 'UI'
Expand All @@ -115,11 +114,21 @@ def draw(self, context):
layout = self.layout

st = context.space_data
scene = context.scene # Our data for the icon_or_text flag is in the current scene

if not scene.UItweaks.icon_or_text:
flow = layout.column_flow()
flow.prop(st, "show_line_numbers")
flow.prop(st, "show_word_wrap")
flow.prop(st, "show_syntax_highlight")
else:
flow = layout.column_flow()
row = flow.row(align=False)
row.alignment = 'LEFT'
row.prop(st, "show_line_numbers", text = "")
row.prop(st, "show_word_wrap", text = "")
row.prop(st, "show_syntax_highlight", text = "")

flow = layout.column_flow()
flow.prop(st, "show_line_numbers")
flow.prop(st, "show_word_wrap")
flow.prop(st, "show_syntax_highlight")
flow.prop(st, "show_line_highlight")
flow.prop(st, "use_live_edit")

Expand Down

0 comments on commit 987db2c

Please sign in to comment.