Giter VIP home page Giter VIP logo

Comments (3)

vordenken avatar vordenken commented on June 3, 2024 1

Hey,
I'm using 0.0.2 and installed it via the .dmg file :)

from swiftguard.

Lennolium avatar Lennolium commented on June 3, 2024

Hey,
Can you please tell me which version of swiftGuard you are using (v0.0.1 or 0.0.2)?
And did you install swiftGuard with its .app or .dmg file or are you running it as Python script (poetry or git clone)?

Seems like its a common issue for older Python versions. Also it can only detect if your dark mode is enabled or disabled. The different brightness states of the macOS menu bar are not detectable by Qt.
Maybe you could try to turn on/off the dark mode in macOS manually and check if the icon color changes accordingly ☺️

from swiftguard.

Lennolium avatar Lennolium commented on June 3, 2024

Small update:

After investigating deep into the macOS/Qt framework, I could identify that a missing flag on the tray icon was the root of the bug. So it will be fixed for the next release, coming soon.

Thanks again for submitting the issue and helping me improving swiftGuard! 😊

For other devs:

# Create and configure the system tray icon.
tray_icon = QSystemTrayIcon()
tray_icon.setToolTip("swiftGuard")

# Set the app icon.
app_icon = QIcon(self.resources["app-icon"])
app_icon.setIsMask(True)  # Dark mode fix for macOS.  <------
tray_icon.setIcon(app_icon)

For more details check app.py in src.

from swiftguard.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.