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

Improve UI/UX #17

Open
4 tasks
chinggg opened this issue Aug 25, 2021 · 0 comments
Open
4 tasks

Improve UI/UX #17

chinggg opened this issue Aug 25, 2021 · 0 comments

Comments

@chinggg
Copy link
Member

chinggg commented Aug 25, 2021

The app will have different behavior on different operating systems and terminals.

  • Menu Bar

  • Problem: On Windows, mouse click event is not supported at all. And shift+tab will be captured as tab, so it may be impossible to switch between elements on Windows using screen.focusNext() and screen.focusPrevious(). Once textarea is focused and inputOnFocus is enabled, it will grab key events as inputs. You can only use escape to quit the input mode and restore focus on the last focused element. Then tab will focus textarea again, thus leading a loop between the last element and textarea.

  • Solution: We can bind each keyable element with a non-vi key, so we can switch to different elements smoothly.Listbar works well as this kind of menu bar.

  • rightPanel

    • Problem: Now rightPanel will show all members of a room, which is a typical design for IRC client. But I have no idea what it should display when chatting with a friend. Moreover, TreeElement and terminal itself will limit interaction.
    • Solution: Since rightPanel is a TreeElement, it is suitable for displaying elemens with same type. So we can just use it as "active" list, users will easily select the contact when new messages receive.
  • textArea

  • Display

    • Problem: border broken when text line is too long
@chinggg chinggg changed the title Problems of interaction on different platforms Improve UI/UX Sep 13, 2021
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

No branches or pull requests

1 participant