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

always create [Library],maximize_library #4355

Closed
wants to merge 1 commit into from

Conversation

ronso0
Copy link
Member

@ronso0 ronso0 commented Oct 4, 2021

@ronso0 ronso0 added the skins label Oct 4, 2021
@github-actions github-actions bot added the ui label Oct 4, 2021
// Maximum buffer length to each EngineObject::process call.
//TODO: Replace this with mixxx::AudioParameters::bufferSize()
constexpr unsigned int MAX_BUFFER_LEN = 160000;

constexpr int kMaxNumberOfDecks = 4;

const ConfigKey kMaximizeLibraryConfigKey = ConfigKey("[Library]", "maximize_library");
Copy link
Member

@Holzhaus Holzhaus Oct 5, 2021

Choose a reason for hiding this comment

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

Let's reduce redundancy if we rename it anyway.

Also, the active verb in maximize_library makes it sound like a button (e.g. [ChannelN],hotcue_X_activate), which means that you have to press [1.0] and release [0.0] to enable, the press and release again to disable.

But in this case it's actually a flag (1.0 = enabled, 0.0 = disabled). So I think we should use a passive verb here to indicate that (like we do in [ChannelN],loop_enabled).

Suggested change
const ConfigKey kMaximizeLibraryConfigKey = ConfigKey("[Library]", "maximize_library");
const ConfigKey kMaximizeLibraryConfigKey = ConfigKey("[Library]", "maximized");

Copy link
Member Author

@ronso0 ronso0 Oct 5, 2021

Choose a reason for hiding this comment

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

I see what you mean, but I think for consistency we should either name it like show_previewdeck and other visibility controls -- or rename all to [Skin],library_maximized, [Skin],previewdeck_visible etc.
Btw despite the redundancy the benefit of maximize_library is that the name of the control matches the tooltip which is convenient for skin development.

And actually the reason for using the [Library] is solely that it's listed in the respective chapter in the manual, see the bug report. [Skin],maxmize_library would be more appropriate IMO.
On that topic: I think we should rename the chapters to Deck controls, Skin controls etc., much like the submenus in the control picker menu. Also, the Group elements in the chapters do decrease the readability IMHO, so I'd appreciate if we'd rename them.

Copy link
Member Author

Choose a reason for hiding this comment

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

rename the chapters to Deck controls, Skin controls etc., much like the submenus in the control picker menu.

image
vs.
image

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree. Since we are making an alias anyway, let's call it [Library], maximized.

@ronso0
Copy link
Member Author

ronso0 commented Oct 5, 2021

Btw this approach is a regression right now because the menu action is enabled regardless if the skin actually supplies that control.

@ronso0
Copy link
Member Author

ronso0 commented Oct 5, 2021

@Holzhaus Thanks for your objection, it made me realize this approach would somehow solve the bug but the root cause is elsewhere.

@ronso0
Copy link
Member Author

ronso0 commented Oct 5, 2021

Closing this because I'm not keen on fixing/extending VisibilityConnection and the skin/qml parser to fix the regression.

@Be-ing
Copy link
Contributor

Be-ing commented Oct 14, 2021

Closing this because I'm not keen on fixing/extending VisibilityConnection and the skin/qml parser to fix the regression.

If integration with the menu bar is causing problems, let's just remove the menu bar entry. The menu bar's days are limited anyway.

@Be-ing
Copy link
Contributor

Be-ing commented Oct 14, 2021

@ronso0 do you want to finish this? If not, I will.

@ronso0
Copy link
Member Author

ronso0 commented Oct 14, 2021

If not, I will.

Go ahead!

@ronso0
Copy link
Member Author

ronso0 commented Oct 15, 2021

If integration with the menu bar is causing problems, let's just remove the menu bar entry.

A reason to keep the menubar button is that it makes Space = "maximize library" discoverable for users who don't use and therefore don't look for (deck) keyboard shortcuts in the PDF but would appreciate a shortcut for maximizing the library.

If you remove the action add the shortcut to the tooltip (and bind the shortcut in coreservices, of course)

add("maximize_library")
<< tr("Maximize Library")
<< tr("Hide all skin sections except the decks to have more screen space for the track library.");

@ronso0
Copy link
Member Author

ronso0 commented Oct 21, 2021

Since actually all visibility controls created by (official) skins are affected we should consider a different approach.
Let's discuss this on Zulip [PreviewDeck], show_previewdeck

@github-actions
Copy link

This PR is marked as stale because it has been open 90 days with no activity.

@github-actions github-actions bot added the stale Stale issues that haven't been updated for a long time. label Jan 20, 2022
@ronso0
Copy link
Member Author

ronso0 commented Jan 25, 2022

Superseeded by #4647

@ronso0 ronso0 closed this Jan 25, 2022
@ronso0 ronso0 deleted the maximize-library branch March 27, 2022 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skins stale Stale issues that haven't been updated for a long time. ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants