ubports / telegram-app

Unofficial Telegram App for Ubuntu Desktop & Mobile
GNU General Public License v3.0
55 stars 23 forks source link

"writing a message" #44

Closed alexanderisme closed 7 years ago

alexanderisme commented 7 years ago

When you write a message normally you only need to write, not more. But since there is the smiley icon (for stickers), the attachment icon and the record icon, there is only a really little box to write. Is it needed to have all this icons even when you write? Would it be possible to hide them when writing in order to have a bigger text box?

image

Flohack74 commented 7 years ago

Hmm good idea, but how to get the buttons back if I change my mind? Then I would need to click outside, effectively dismissing the keyboard, and then click on one of the buttons.

alexanderisme commented 7 years ago

Yes it's true! I had not thought about the changing mind idea ;) But it's true, it happens to me as well ! Your solution seems to be nice: while writing the icons are hidden, by hiding the keyboard the icons reappear ! I hope only it will not make it buggy because it has to reload the text and reorganise the lines if the text box become smaller

Flohack74 commented 7 years ago

@dfiloni What you think, can we improve this with a little patch? =)

Gabriele69 commented 7 years ago

Before Tap: before_tap

After Tap after_tap

This is my personal suggestion

mymike00 commented 7 years ago

And to send the message how would you do? Personally I like the Flohack suggest: while writing send button and when you dismiss the keyboard the other

Gabriele69 commented 7 years ago

Now, when you starts to write a messages, the microphone icon turns into the blue arrow for sending. In my proposal, just beginning to write the message, next to the three bars, the blue arrow might appear. Or, the three bars become a different icon that works in the following way: short press (tap) message sending, long press opening of the menu (emoticon and attachments). G

alexanderisme commented 7 years ago

@Gabriele69 , I really like your suggestion !!!

I will only try to explain the idea of @Flohack74 and @mymike00 with images (if I have well understood!) :

That's the idea: when you type a message the only possibility is to send, so the writing box can take the maximum place: Image A) telegram 1

But if you want to do something else, you can simply hide the keyboard and here you have new choices: Image B) telegram 2

Or maybe more like that (=have a smaller box and all choices possible!): Image C) telegram 3

I don't know which one is the best solution, I really like all the ideas! The only point in @Gabriele69 solution is that there is no sending option, but it can be solved like that: Image D) telegram 4

But then there is more place for the text box that is lost..

dfiloni commented 7 years ago

This was already fixed in commit 7ef5958 , Image A and Image B describe the new behavior. Thank you for all the proposals.

Flohack74 commented 7 years ago

We will make a release for that soon. Closing here ;)