Skip to content

Commit

Permalink
fix(tray): adjust border radius and padding for menu items; improve e…
Browse files Browse the repository at this point in the history
…xit handling
  • Loading branch information
amnweb committed Nov 26, 2024
1 parent e250343 commit 8f202ea
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/core/tray.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ def _load_context_menu(self):
border:1px solid #373b3e;
padding:5px 0;
margin:0;
border-radius:6px
border-radius:4px
}
QMenu::item {
margin:0 4px;
padding: 4px 12px 5px 12px;
border-radius:4px;
padding: 4px 16px 5px 16px;
border-radius: 6px;
font-size: 11px;
font-weight: 600;
font-family: 'Segoe UI', sans-serif;
Expand Down Expand Up @@ -208,8 +208,11 @@ def _reload_application(self):

def _exit_application(self):
logging.info("Exiting Application from tray...")
QCoreApplication.exit(0)

try:
QCoreApplication.exit(0)
except:
os._exit(0)

def _open_docs_in_browser(self):
webbrowser.open(self._docs_url)

Expand Down

0 comments on commit 8f202ea

Please sign in to comment.