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

Smartbar rework (Milestone v0.4.0 / Module A) #91

Merged
merged 7 commits into from
Dec 21, 2020

Conversation

patrickgold
Copy link
Member

This PR is an important step for providing a good UI and UX for any further features relying on Smartbar, particularly the planned composing suggestions (v0.4.0 / Module B). In detail, this PR adds the following features:

Changes for code contributors:

  • The build.gradle is now configured to apply an application id suffix for debug releases, which allows you to have both a debug and release version installed on the same device, if you are testing out your changes on your personal device (thanks @jeremiah-miller for the idea)

- The Smartbar XML layout has been completely changed and is now
  pretty solid.
- SmartbarManager's tasks have been split up: UI related things
  and the management of the state are now managed within the
  SmartbarView, setting the values and listening to events is now done within TextInputManager. Removing SmartbarManager was an important
  step because the code and logic was just a pure mess.
- SmartbarView is now responsible to manage the state, show and hide
  features based on various parameters from the keyboard core.
- Number row is now not part of the Smartbar anymore, but is an
  extension of the character layout, meaning that it is possible to
  show both a number row and the Smartbar.
- The Smartbar can now be disabled in the preferences.
- Adjust height calculation when number row is shown.
- Fix Smartbar not applying calculated height correctly.
- This allows to have both a debug and release version of FlorisBoard
  on a single device.
- Smartbar now doesn't show in number, phone and phone2 layouts.
- Remove "show instead" preference as it does not do anything anymore.
- Change one-handed icon to a smartphone, which should improve clarity.
@patrickgold patrickgold added this to the 0.4.0 milestone Dec 21, 2020
@patrickgold patrickgold self-assigned this Dec 21, 2020
@patrickgold patrickgold merged commit ee1988d into master Dec 21, 2020
@patrickgold patrickgold deleted the feat-smartbar-rework branch December 30, 2020 02:26
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.

1 participant