Skip to content

TimeControls in Timeline titlebar area#2006

Open
MrStevns wants to merge 10 commits into
pencil2d:masterfrom
MrStevns:timecode-ui-widget
Open

TimeControls in Timeline titlebar area#2006
MrStevns wants to merge 10 commits into
pencil2d:masterfrom
MrStevns:timecode-ui-widget

Conversation

@MrStevns

@MrStevns MrStevns commented Apr 19, 2026

Copy link
Copy Markdown
Member

What it looks like

image tiemcode

Moving the time controls into the title bar area also meant allowing us to find a better placement for the time code counter. It was quite cramped on the timeline before. With the additional space now, I've put it next to the actual playback controls and made some improvements along the way. Among those improves are:

  • New time code controls component, replacing the old qmenu.
    The primary motivator here was to allow you to change both the timecode and frame counter in one go, rather than selecting one thing, close the menu and then open the menu again to enable the other setting. The new widget also allows for more controls in the future, should that be needed.

  • Added time code icon

  • The time code is now displayed next to the playback buttons

  • The time code is now mono spaced, so there's no longer horizontal movement when counting.

  • Raw frame counter can now be displayed separately from the time code.

We now store 3 settings instead of one.

  • Whether the Time code is displayed at all
  • If frame counter should be displayed
  • Which time code kind is displayed
image

Other changes

  • BaseDockWidget now allows setting a child widget, to be displayed next to the titlebar buttons.
  • Normally when you lock a widget, the titlebar disappears, which would be problematic now. As such locking a widget that contains a child widget, now only removes the buttons.

Note: I have not done migration from the old value SETTING_TIMECODE_TEXT to the new one.

@MrStevns MrStevns added Timeline UI Related to the visual appearance of the program labels Apr 19, 2026
@chchwy chchwy force-pushed the timecode-ui-widget branch from 07b5904 to 00d25bc Compare April 21, 2026 04:44
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Timeline UI Related to the visual appearance of the program

Projects

Status: Needs Review

Development

Successfully merging this pull request may close these issues.

1 participant