-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
Add caps lock indicator #692
Conversation
In my opinion, this icon does not fit other themes than Holo. What do you think about something like this? no shift - regular icon And for the Holo style, maybe add a line under the arrow when caps lock is pressed 🤔 |
Looks good. My idea was to change the icon only after pressing Caps Lock + adding an accent. Pressing Shift would only add an accent, not change the icon. I like the accent when I press the Shift key. |
I understand. In Gboard, the icon changed when I pressed Caps Lock. I thought it would be easy to do the same in HeliBoard. |
For now, I don't have a good idea for the third icon. Maybe add a second ^ above the current one 🤔 I think two icons would also be sufficient. Just like in Gboard. For most, I think it would be intuitive. |
Perhaps you could use a simple arrow for Caps Lock mode while keeping the bottom bar? Quick question: will these icons be rounded for the Rounded style? |
Yes. I think two icons would be more intuitive. I'm a little confused when I see three icons when switching. Moreover, each icon has become different. In my opinion, this is unnecessary complication :/ It was enough to add an icon for caps lock and leave the rest as they were. |
Looks nice. I wonder what the keyboard would look like with the changes I proposed 🤔 |
Thanks. I like my option a bit more, but both are cool. |
Hi, @codokie can u try my idea. |
Finally some basic review: But I have to say I'm not happy with the icons, mainly I just don't like the double arrows.
(Holo looks mostly fine, but the width and position change of the arrow when locking is somewhat weird) |
# Conflicts: # app/src/main/java/helium314/keyboard/keyboard/internal/KeyboardIconsSet.java # app/src/main/java/helium314/keyboard/keyboard/internal/keyboard_parser/KeyboardParser.kt
Using Android defaults is certainly a good reason to do it like that, thank for noticing this.
Thanks, though you missed the holo shift icon (it's fine in app, I already checked) |
I made some changes to the different shift states icons.
![unshifted_material](https://private-user-images.githubusercontent.com/151087174/331861302-20540aba-1943-4e67-84be-72c812371e1e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NzgyNTgsIm5iZiI6MTczOTY3Nzk1OCwicGF0aCI6Ii8xNTEwODcxNzQvMzMxODYxMzAyLTIwNTQwYWJhLTE5NDMtNGU2Ny04NGJlLTcyYzgxMjM3MWUxZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNlQwMzUyMzhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zMGI2OGE5OWNiYTM3MjRlZmU4ZGQ0MzZkYzYyM2ZiY2ZmOGE2ZTE1OTA2NDFkMWUwNzZmN2IzZmFmNWRhYWE2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.I4hWHhhHnnhHlqhgXlyIXC-iHEPsmrD1C9DZxLvkJN8)
(note: the color of the theme is used in shifted/caps lock states, below I used the Brown color but in practice it can be whatever color is chosen in the theme settings)
unshifted state:
[material]
[holo] (unchanged)
![unshifted_holo](https://private-user-images.githubusercontent.com/151087174/331861305-75b81611-cc55-4027-a7a0-f2729eded68a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NzgyNTgsIm5iZiI6MTczOTY3Nzk1OCwicGF0aCI6Ii8xNTEwODcxNzQvMzMxODYxMzA1LTc1YjgxNjExLWNjNTUtNDAyNy1hN2EwLWYyNzI5ZWRlZDY4YS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNlQwMzUyMzhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xMjAyYzc2NGJiNGVkZDQ5YzVhNjkzNjdiNTlmZGUwYzBkM2ZmZmQ3NGE4NWRlYzRlYzNhOTdiYzIxNjQ3Yjk2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.K84hfuhaYrI2QHabTZwd0WebOl0892R-MG0WBFvXb1o)
shifted state:
![material_shifted](https://private-user-images.githubusercontent.com/151087174/331861193-291b084b-5562-43fb-88b0-45113a3512f8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NzgyNTgsIm5iZiI6MTczOTY3Nzk1OCwicGF0aCI6Ii8xNTEwODcxNzQvMzMxODYxMTkzLTI5MWIwODRiLTU1NjItNDNmYi04OGIwLTQ1MTEzYTM1MTJmOC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNlQwMzUyMzhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01NTVjMjNhYWUwZjY1N2U1NTg1NzQ1ZmQxODQ3ZTIzNjBjZWRmZTk4NTgwYjRiYjA2MTlhZmJkNTc2MjMwNWZkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.FQhctT0A8MCthy8JpNWEaQTHmWQSGIg_XxZhFXCfkFA)
[material]
[holo] (unchaged)
![shifter_holo](https://private-user-images.githubusercontent.com/151087174/332010086-0e404806-02a2-47f8-be26-81ca2f646017.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NzgyNTgsIm5iZiI6MTczOTY3Nzk1OCwicGF0aCI6Ii8xNTEwODcxNzQvMzMyMDEwMDg2LTBlNDA0ODA2LTAyYTItNDdmOC1iZTI2LTgxY2EyZjY0NjAxNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNlQwMzUyMzhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wNWM3YTM3MWU2NDRiNGM3MjI3MTk1MDI3MTNmMWUxMDY2MzliYjZmYTI4YzZjMjI1ZDFkMTU5YjBiZGIxYTExJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.lDJnjL6YHwg8vE1S0iqnYrYxyD5n9b6aoVC98ugxz_Y)
caps lock:
![material_locked](https://private-user-images.githubusercontent.com/151087174/331861230-88bab480-7276-446f-9a71-a09cb40cb7bd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NzgyNTgsIm5iZiI6MTczOTY3Nzk1OCwicGF0aCI6Ii8xNTEwODcxNzQvMzMxODYxMjMw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ViMWIwYTU0ZmMxNjVlZDczZWM5MjczNGVhZTBhYzgxOTA2YTZjODBiOWE4ZWY5NWM5YTMyZTE5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.wU38cXW_sTxZa7MKxDJh5neZhVQvHW16FnB-AxBPBT8)
Credit to Google/Material Icons for the base icons, and @Uranusek for the ideas for the icons
Rounded theme has the same icons as the material theme, only that the icons are slightly rounded
(fixes #683)