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

Feature/reorganize top bar #33

Closed
wants to merge 5 commits into from

Conversation

engbergandreas
Copy link
Member

Organize top bar based on our discussion, tabbing in the top menu bar now works as expected. There is visual bug when tabbing through View where Task Bar is being highlighted even though you are tabbed to one of the other menu items. Not sure whats up with that 😞

<Menu.Item
key={item.componentID}
leftSection={item.icon?.(IconSize.xs)}
onClick={() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider making this a function in the component body so it won't trigger a re-render

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't follow, this does not trigger a new render?

src/windowmanagement/TaskBar.tsx Show resolved Hide resolved
src/windowmanagement/TaskBar.tsx Show resolved Hide resolved
src/windowmanagement/TaskBarMenuChoices.css Show resolved Hide resolved
src/windowmanagement/TaskBarMenuChoices.tsx Show resolved Hide resolved
className={'ToggleTaskBarItem'}
label={item.title}
labelPosition={'left'}
defaultChecked={checkedMenuItems[item.componentID]}
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't understand the checkedMenuItems... isn't it always true for all items?

Copy link
Member Author

@engbergandreas engbergandreas Jan 27, 2025

Choose a reason for hiding this comment

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

No, things like FlightController and Keyboard panels are off by default

@ylvaselling
Copy link
Contributor

Organize top bar based on our discussion, tabbing in the top menu bar now works as expected. There is visual bug when tabbing through View where Task Bar is being highlighted even though you are tabbed to one of the other menu items. Not sure whats up with that 😞

Maybe some mantine bug with nested menus :'(

Copy link
Contributor

@WeirdRubberDuck WeirdRubberDuck left a comment

Choose a reason for hiding this comment

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

Don't feel like I want to give a full review on this until the "Add task bar icons" PR is merged, but here are some comments.

Looks good, in general :)

src/windowmanagement/NewWindowMenu.tsx Show resolved Hide resolved
src/windowmanagement/TaskBar.tsx Show resolved Hide resolved
src/windowmanagement/TaskBarMenuChoices.tsx Show resolved Hide resolved
src/windowmanagement/TopMenuBar.tsx Show resolved Hide resolved

function toggleShutdown() {
return modals.openConfirmModal({
title: 'Confirm action',
Copy link
Contributor

Choose a reason for hiding this comment

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

Love the addition of the modal! Not 100% sure what I think of this title, though... But I don't have any better suggestion on the top of my head 🙃

src/windowmanagement/TopMenuBar.tsx Show resolved Hide resolved
@engbergandreas engbergandreas deleted the feature/reorganize-top-bar branch January 28, 2025 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants