[Bf-blender-cvs] [58f38ff5c1a] master: UI: add back header icons to toggle text display options
Campbell Barton
noreply at git.blender.org
Fri Aug 9 17:16:12 CEST 2019
Commit: 58f38ff5c1a392b40129cad100e8c1e5371d7169
Author: Campbell Barton
Date: Sat Aug 10 01:14:40 2019 +1000
Branches: master
https://developer.blender.org/rB58f38ff5c1a392b40129cad100e8c1e5371d7169
UI: add back header icons to toggle text display options
These were removed in D5028, adding back by popular demand.
===================================================================
M release/scripts/startup/bl_ui/space_text.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_text.py b/release/scripts/startup/bl_ui/space_text.py
index 80153c4c204..1ffb181b219 100644
--- a/release/scripts/startup/bl_ui/space_text.py
+++ b/release/scripts/startup/bl_ui/space_text.py
@@ -47,6 +47,11 @@ class TEXT_HT_header(Header):
layout.separator_spacer()
+ row = layout.row(align=True)
+ row.prop(st, "show_line_numbers", text="")
+ row.prop(st, "show_word_wrap", text="")
+ row.prop(st, "show_syntax_highlight", text="")
+
if text:
is_osl = text.name.endswith((".osl", ".osl"))
More information about the Bf-blender-cvs
mailing list