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

Note editor toolbar new item string as icon #10290

Merged
merged 2 commits into from
Feb 17, 2022

Conversation

krmanik
Copy link
Member

@krmanik krmanik commented Jan 30, 2022

Pull Request template

Purpose / Description

The Note Editor toolbar add new items as number from 1...N, so I created this PR for adding string / single character as icon for the new items. It helps in recognize the button instead of memorizing button action with the number.

Fixes

Fixes #9077

  1. Allow me to change the naming of custom buttons

Approach

  1. I have added new variable icon after index.
  2. Earlier buttons saved in SharedPrefs as index, prefix and suffix.
    Now when new buttons added it saved to SharedPrefs as index, icon, prefix and suffix

How Has This Been Tested?

Test on Emulator on device

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration (SDK version(s), emulator or physical, etc)

Learning (optional, can help others)

Describe the research stage

Links to blog posts, patterns, libraries or addons used to solve this problem

Checklist

Please, go through these checks before submitting the PR.

  • You have not changed whitespace unnecessarily (it makes diffs hard to read)
  • You have a descriptive commit message with a short title (first line, max 50 chars).
  • Your code follows the style of the project (e.g. never omit braces in if statements)
  • You have commented your code, particularly in hard-to-understand areas
  • You have performed a self-review of your own code
  • UI changes: include screenshots of all affected screens (in particular showing any new or changed strings)
  • UI Changes: You have tested your change using the Google Accessibility Scanner

Copy link
Member

@david-allison david-allison left a comment

Choose a reason for hiding this comment

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

@david-allison david-allison added the Needs Author Reply Waiting for a reply from the original author label Jan 31, 2022
Copy link
Member

@david-allison david-allison left a comment

Choose a reason for hiding this comment

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

Looks great!

@david-allison david-allison added Needs Second Approval Has one approval, one more approval to merge and removed Needs Author Reply Waiting for a reply from the original author labels Feb 10, 2022
@krmanik krmanik requested a review from mikehardy February 15, 2022 15:30
Copy link
Member

@mikehardy mikehardy left a comment

Choose a reason for hiding this comment

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

Looks good to me, thank you!

@mikehardy mikehardy added Strings and removed Needs Second Approval Has one approval, one more approval to merge labels Feb 17, 2022
@mikehardy mikehardy added this to the 2.16 release milestone Feb 17, 2022
@mikehardy mikehardy merged commit 2bed6c3 into ankidroid:master Feb 17, 2022
@krmanik krmanik deleted the note-editor-icon branch February 17, 2022 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: Note Editor Toolbar custom button rename / reposition
4 participants