Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_time.py
| # SPDX-License-Identifier: GPL-2.0-or-later | # SPDX-License-Identifier: GPL-2.0-or-later | ||||
| import bpy | import bpy | ||||
| from bpy.types import Menu, Panel | from bpy.types import Menu, Panel | ||||
| from bpy.app.translations import contexts as i18n_contexts | |||||
| # Header buttons for timeline header (play, etc.) | # Header buttons for timeline header (play, etc.) | ||||
| class TIME_HT_editor_buttons: | class TIME_HT_editor_buttons: | ||||
| @staticmethod | @staticmethod | ||||
| def draw_header(context, layout): | def draw_header(context, layout): | ||||
| scene = context.scene | scene = context.scene | ||||
| ▲ Show 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| sub.popover( | sub.popover( | ||||
| panel="TIME_PT_playback", | panel="TIME_PT_playback", | ||||
| text="Playback", | text="Playback", | ||||
| ) | ) | ||||
| sub.popover( | sub.popover( | ||||
| panel="TIME_PT_keyframing_settings", | panel="TIME_PT_keyframing_settings", | ||||
| text="Keying", | text="Keying", | ||||
| text_ctxt=i18n_contexts.id_windowmanager, | |||||
| ) | ) | ||||
| # Add a separator to keep the popover button from aligning with the menu button. | # Add a separator to keep the popover button from aligning with the menu button. | ||||
| sub.separator(factor=0.4) | sub.separator(factor=0.4) | ||||
| if horizontal: | if horizontal: | ||||
| sub = row.row(align=True) | sub = row.row(align=True) | ||||
| ▲ Show 20 Lines • Show All 239 Lines • Show Last 20 Lines | |||||