Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_text.py
| Show First 20 Lines • Show All 221 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| st = context.space_data | st = context.space_data | ||||
| layout.prop(st, "show_region_ui") | layout.prop(st, "show_region_ui") | ||||
| layout.separator() | layout.separator() | ||||
| op = layout.operator("wm.context_cycle_int", text="Zoom In") | |||||
| op.data_path = "space_data.font_size" | |||||
| op.reverse = False | |||||
| op = layout.operator("wm.context_cycle_int", text="Zoom Out") | |||||
| op.data_path = "space_data.font_size" | |||||
| op.reverse = True | |||||
| layout.separator() | |||||
| layout.prop(st, "show_line_numbers") | layout.prop(st, "show_line_numbers") | ||||
| layout.prop(st, "show_word_wrap") | layout.prop(st, "show_word_wrap") | ||||
| syntax = layout.column() | syntax = layout.column() | ||||
| syntax.active = st.is_syntax_highlight_supported() | syntax.active = st.is_syntax_highlight_supported() | ||||
| syntax.prop(st, "show_syntax_highlight") | syntax.prop(st, "show_syntax_highlight") | ||||
| layout.prop(st, "show_line_highlight") | layout.prop(st, "show_line_highlight") | ||||
| layout.separator() | layout.separator() | ||||
| ▲ Show 20 Lines • Show All 232 Lines • Show Last 20 Lines | |||||