-
-
Notifications
You must be signed in to change notification settings - Fork 22
snowcap: add TextInput widget #369
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
base: main
Are you sure you want to change the base?
snowcap: add TextInput widget #369
Conversation
33b380b to
756d3af
Compare
@Ottatop do you have thought on that ? Most The second point is only for types without a default implementation. The alternative is to hardcode our own default when the translation between protobuf & iced types fails. |
Agree, it would be best to crack down on these panics (especially if anyone wants to make protobuf bindings), though I strongly recommend doing this in another PR seeing as this one's already up to 2.5k lines |
Agree, I'll only try to remove the ones introduced by this PR and removable :) |
7998627 to
d4aa251
Compare
|
Allright, I think that's all. FYI, the PR is on top of #364. because I needed some of the changes from that PR, and it makes for a cleaner history that cherry-picking the commits I need (plus the eventual rebase hell if I discovered some issue in that PR). It should rebase cleanly should you choose to first pull the other one, and then rebase + merge this one (which could also be easier to review, I guess ?) OTOH, you can also close the other one and track everything here if you prefer. |
6944918 to
f4196da
Compare
9c32f92 to
153ca98
Compare
d9c8437 to
ce617c9
Compare
3ef8c4e to
8d33651
Compare
6061502 to
1bc0e09
Compare
3d1a835 to
93bad12
Compare
f5f8454 to
8b59635
Compare
8b59635 to
a59ef88
Compare
a59ef88 to
6acffe8
Compare
The title say it all.
This PR adds TextInput widget, which will be useful as a building block for e.g. prompts.
On top of that, I've enabled support for key-repetition so the prompt themselves feel more natural.
TODO:
Postponed to [API] Gracefully handle protobuf translation issues #370Removed the ones from this PR.