mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 22:01:23 -06:00
[PR #504] [MERGED] Let tray image blend into macOS menu bar #1645
Labels
No labels
HiDPI
bounty
bsd/freebsd
bsd/openbsd
bug
bug
build-infra
cantfix
critical
doc
duplicate
enhancement
fix-available
from git
from release
good first issue
help wanted
installer/package
invalid
linux
macOS
meta
needs testing
pull-request
query
question
regression
regression
v2.4.0
windows
wontfix
work-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/barrier#1645
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/debauchee/barrier/pull/504
Author: @tiwoc
Created: 11/21/2019
Status: ✅ Merged
Merged: 11/21/2019
Merged by: @AdrianKoshka
Base:
master← Head:macos-tray-image📝 Commits (1)
8ef0668Let tray image blend into macOS menu bar📊 Changes
8 files changed (+381 additions, -2 deletions)
View changed files
📝
src/gui/res/Barrier.qrc(+3 -0)➕
src/gui/res/icons/32x32/barrier-connected-mask.png(+0 -0)➕
src/gui/res/icons/32x32/barrier-connected-mask.svg(+114 -0)➕
src/gui/res/icons/32x32/barrier-disconnected-mask.png(+0 -0)➕
src/gui/res/icons/32x32/barrier-disconnected-mask.svg(+102 -0)➕
src/gui/res/icons/32x32/barrier-transfering-mask.png(+0 -0)➕
src/gui/res/icons/32x32/barrier-transfering-mask.svg(+148 -0)📝
src/gui/src/MainWindow.cpp(+14 -2)📄 Description
The expected style for macOS menu bar images is a template image than can adapt to the user's appearance settings. Also, high-res screens ("Retina" in Apple speak) need higher resolution images.
Without this PR (Light Mode):


Without this PR (Dark Mode):
With this PR (Light Mode):


With this PR (Dark Mode):
Based on /res/barrier.svg, I created black and transparent SVGs for the three icon states. I had to remove some details to make the image scale down to icon size without becoming too crowded, and I drew a new checkmark and the transfer arrow.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.