mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-19 16:46:55 +00:00
GODT-1317 Use large png for systray and mark it as mask.
This commit is contained in:
@ -109,14 +109,15 @@ QtObject {
|
|||||||
property SystemTrayIcon _trayIcon: SystemTrayIcon {
|
property SystemTrayIcon _trayIcon: SystemTrayIcon {
|
||||||
id: trayIcon
|
id: trayIcon
|
||||||
visible: true
|
visible: true
|
||||||
iconSource: "./icons/ic-systray.svg"
|
icon.source: "./icons/systray-mono.png"
|
||||||
|
icon.mask: true // make sure that systems like macOS will use proper color
|
||||||
|
tooltip: `Proton Mail Bridge v${go.version}`
|
||||||
onActivated: {
|
onActivated: {
|
||||||
function calcStatusWindowPosition() {
|
function calcStatusWindowPosition() {
|
||||||
function isInInterval(num, lower_limit, upper_limit) {
|
function isInInterval(num, lower_limit, upper_limit) {
|
||||||
return lower_limit <= num && num <= upper_limit
|
return lower_limit <= num && num <= upper_limit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// First we get icon center position.
|
// First we get icon center position.
|
||||||
// On some platforms (X11 / Wayland) Qt does not provide icon geometry info.
|
// On some platforms (X11 / Wayland) Qt does not provide icon geometry info.
|
||||||
// In this case we rely on cursor position
|
// In this case we rely on cursor position
|
||||||
|
|||||||
BIN
internal/frontend/qml/icons/systray-mono.png
Normal file
BIN
internal/frontend/qml/icons/systray-mono.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
Reference in New Issue
Block a user