dglent / meteo-qt

System tray application for weather status information
GNU General Public License v3.0
82 stars 21 forks source link

Transparency #133

Closed ArchieA closed 1 year ago

ArchieA commented 1 year ago

Hi.

First, thank you for the awesome widget. I have more of a question than an issue. Is there a way to make the background transparent or just completely remove it?

Thank you for your attention. Thanks again.

dglent commented 1 year ago

Hello

nice idea

Could you add these lines :

self.setAttribute(Qt.WA_TranslucentBackground)  # transparent background
self.setWindowFlags(Qt.FramelessWindowHint)  # removes the window title bar

in the initialization of the widget here: https://github.com/dglent/meteo-qt/blob/92ec15380a227fc28ddb0179ab51639cfcbdd4a6/meteo_qt/meteo_qt.py#L63 after the super(SystemTrayIcon, self).__init__(parent) and test it ?

εικόνα

ArchieA commented 1 year ago

Thank you, Ευγενικός Κύριος

It was easy enough.

meteo+conky