Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI: Add dock widget title bars #6358

Closed
wants to merge 1 commit into from

Conversation

cg2121
Copy link
Contributor

@cg2121 cg2121 commented Apr 20, 2022

Description

This moves the dock toolbars to the title bar of
the dock, saving space.

Capture

Motivation and Context

Makes UI look better.

How Has This Been Tested?

Made sure the title bars rendered properly for each dock and made the buttons worked. Only tested on Windows 10, but should be fine elsewhere.

Types of changes

  • Tweak (non-breaking change to improve existing functionality)

Checklist:

  • My code has been run through clang-format.
  • I have read the contributing document.
  • My code is not on the master branch.
  • The code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.

This moves the dock toolbars to the title bar of
the dock, saving space.
@cg2121 cg2121 requested a review from Warchamp7 April 20, 2022 13:40
@cg2121 cg2121 added the Enhancement Improvement to existing functionality label Apr 20, 2022
@tytan652
Copy link
Collaborator

tytan652 commented Apr 20, 2022

Just want to specify that this change can not be kept if obsproject/rfcs#47 (switch to ADS) is approved because ADS title bars can not be modified like this.

Edit: Docks title bar are meant for dock tabs.

@WizardCM
Copy link
Member

I personally disagree with this UX - it feels noisier and more confusing. I'm especially against hiding the undock/close buttons into a context menu.


void OBSDock::EnableControlMenu(bool lock)
{
menuButton->setVisible(!lock);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This segfaults immediately on macOS. menuButton is NULL.

@PatTheMav
Copy link
Member

FWIW here's how it looks on macOS:

2022-04-23_Screenshot_dock-titlebars_macOS

@RytoEX RytoEX marked this pull request as draft April 23, 2022 23:18
@GeorgesStavracas GeorgesStavracas added the UI/UX Anything to do with changes or additions to UI/UX elements. label May 24, 2022
@Warchamp7
Copy link
Member

Yeah I get the intent here but I'm going to veto this one, sorry.

@Warchamp7 Warchamp7 closed this Jun 26, 2022
@cg2121 cg2121 deleted the dock-titlebars branch July 26, 2022 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Improvement to existing functionality UI/UX Anything to do with changes or additions to UI/UX elements.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants