sc-controller
sc-controller copied to clipboard
OSK keyboard hide inactive keys and/or transparency
When the keyboard is activated it takes up valuable real-estate. One working solution may be a mode which make parts, or the whole of, the keyboard transparent during operation. For example, rendering only the area surrounding the current location of the thumbs or making the whole keyboard translucent except the active key.
Has the advantage that you don't need to move the keyboard to work with text, you can just move your thumbs.
In theory, this is only question of configuring colors of those buttons to include transparency. But I'm not sure how would it draw - at least on Linux without compositing window manager, buttons would be transparent and you'd see black background color of the window throught them.
@kozec
I don't quite understand the details and the implications for operation across different distributions, but if I add the line
204 Gtk.Window.set_opacity(self, 0.5)
to
scc/osd/__init__.py
I get working transparency on Linux. My understanding is that it will use the compositing manager if available to introduce transparency.
https://lazka.github.io/pgi-docs/Gtk-3.0/classes/Window.html#Gtk.Window.set_opacity
It needs to be called after show()
If I invert the colour scheme I should get effective transparency