wavexx / screenkey

A screencast tool to display your keys inspired by Screenflick
https://www.thregr.org/~wavexx/software/screenkey/
GNU General Public License v3.0
757 stars 66 forks source link

Font size gets smaller during usage #68

Closed Moini closed 6 years ago

Moini commented 6 years ago

I've started screenkey (master branch) from its directory. Then I've selected a small area where the keys may appear. Then I've switched to keysyms mode, because it was the first mode that showed Ctrl while I was dragging the mouse.

Then I used Ctrl left a couple of times, and each time the black bar had been faded out, and then reappeared, the font size got tinier and tinier.

wavexx commented 6 years ago

On Tue, May 01 2018, Moini wrote:

Then I used Ctrl left a couple of times, and each time the black bar had been faded out, and then reappeared, the font size got tinier and tinier.

I'd be curious to see a video of this behavior !?

Moini commented 6 years ago

https://framadrive.org/s/drL92r7DLwoNYTb

Moini commented 6 years ago

On the next start, the font is still just as tiny. This is my config contents:

{"opacity": 0.8, "mods_only": false, "font_desc": "Sans Bold", "compr_cnt": 3, "screen": 0, "no_systray": false, "bg_color": "black", "vis_space": true, "position": "bottom", "key_mode": "keysyms", "vis_shift": false, "mods_mode": "normal", "ignore": [], "font_size": "medium", "recent_thr": 0.1, "bak_mode": "baked", "geometry": [404, 815, 286, 77], "multiline": false, "timeout": 2.5, "persist": false, "font_color": "white"}

This is on Linux Mint 18.3 with Xfce.

wavexx commented 6 years ago

On Wed, May 02 2018, Moini wrote:

https://framadrive.org/s/drL92r7DLwoNYTb

"Nice!". Ok, I was able to get exactly the same behavior.

Moini commented 6 years ago

I love it when weird issues are at least reproducible ;-) Thanks!

wavexx commented 6 years ago

Took me quite a while to get this to reproduce a second time.

But, the tiny label is "intended". What it's doing is this: it's placing the label at the bottom of the area you've selected. Select "fixed" from the drop-down and try again: it should do what you need.

I have to say, I don't particularly like the behavior either. I'll see if I can improve it a bit by detecting if you selected a window or an area and do The Right Thing(tm).

wavexx commented 6 years ago

Let's leave this open until the behavior is improved.

wavexx commented 6 years ago

Ok, I think the new behavior is much cleaner. Whenever you select a region, the mode switches to "fixed" automatically.

Could you give it a try?

Moini commented 6 years ago

Yes, that works. Thanks!