SubwayDesktop / subway-launcher

A desktop application launcher for GNU/Linux (metro style)
7 stars 1 forks source link

style="background-color: transparent;" won't set background transparency #3

Open trappedinspacetime opened 7 years ago

trappedinspacetime commented 7 years ago

It's me again. I couldn't help but reporting another issue. In the light of your last updated README context, I gave it a try by using QT's inspect tool. I attempted to set background transparency but it won't work. I think it's a bug in QT. Take a look at this

I also noticed another glitch in search box, it doesn't list applications on the next search. Anyway, I think I can handle it by myself.

By the way, there is no need to

 dbus-send --session --dest=org.subwaydesktop.launcher --type=method_call /view org.subwaydesktop.cubway.activateWindow

Following command already toggles the launcher. I assigned a hot spot to that command via compiz> commands

 dbus-send --session --dest=org.subwaydesktop.launcher --type=method_call /view org.subwaydesktop.cubway.toggleVisible

Your latest documentation and screenshots are impressive.

910JQK commented 7 years ago

(1) Transparency should be set at Qt/C++ side. I've added a transparency option to Cubway. Add this line to html metadata will make the background transparent:

<meta name="win_transparent" content="write_any_value_here" />

Then add this line will remove the window decoration:

<meta name="win_frameless" content="write_any_value_here" />

And it works well on my device: _2017-10-10_23-10-14 (2) What do you mean by "it doesn't list applications on the next search"? Does it ignore the second search? However, the search box works well on my device with a newer version of Qt (5.9). Maybe it is ES6 compatiblity problem. Check if there is some error in JS console. (3) In some situations with buggy focus settings, activateWindow is required.

trappedinspacetime commented 7 years ago

Thanks a lot for being so kind as to help me. I tried the latest revision but transparency and listing apps via typing in search box fails. When I type in, it lists the applications at first but when I clear the search box with backspace then type in again nothing happens, no app lists. Sometimes bug appears after a few successful searches, but when it appears it won't fix till I restart Cubway. I am using Qt version 5.5.1. I am running Ubuntu 16.04 32 bit, QT dropped 32 build distribution so I have to compile QT 5.9.1 by myself.