Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ability to manually set color of tray icon for Windows and Linux #1243

Merged
merged 3 commits into from
Jan 25, 2023

Conversation

cdrage
Copy link
Contributor

@cdrage cdrage commented Jan 24, 2023

feat: add ability to manually set colour of icon

What does this PR do?

  • Allows the ability to set the default 'theme' of the icon to either
    light (black icon) or dark (white icon).

NOTE: This does not work on Mac, because if you set the theme to
'light' to display a black icon, macOS will automatically detect it is
an all-black icon, and invert the colours to white.

Screenshot/screencast of this PR

Screenshot 2023-01-24 at 3 47 48 PM
Screenshot 2023-01-24 at 3 48 18 PM

What issues does this PR fix or reference?

Closes #980

How to test this PR?

  1. Compile / yarn watch on Windows
  2. Change the setting
  3. Restart podman desktop and view the icon on the taskbar.

Signed-off-by: Charlie Drage charlie@charliedrage.com

@cdrage cdrage force-pushed the force-tray-icon-colour branch 2 times, most recently from ba2ce32 to 09e9d4e Compare January 25, 2023 13:48
@cdrage
Copy link
Contributor Author

cdrage commented Jan 25, 2023

Updated:

  • Renamed from colour to color for american spelling
  • Only shows configuration option / checks for Windows or Linux

@benoitf benoitf changed the title feat: add ability to manually set colour of icon feat: add ability to manually set color of icon Jan 25, 2023
### What does this PR do?

* Allows the ability to set the default 'theme' of the icon to either
light (black icon) or dark (white icon).

__NOTE:__ This does not work on Mac, because if you set the theme to
'light' to display a black icon, macOS will automatically detect it is
an all-black icon, and invert the colours to white.

### Screenshot/screencast of this PR

<!-- Please include a screenshot or a screencast explaining what is doing this PR -->

### What issues does this PR fix or reference?

<!-- Please include any related issue from Podman Desktop repository (or from another issue tracker).
-->

Closes containers#980

### How to test this PR?

1. Compile / yarn watch on Windows
2. Change the setting
3. Restart podman desktop and view the icon on the taskbar.

<!-- Please explain steps to reproduce -->

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
Signed-off-by: Charlie Drage <charlie@charliedrage.com>
Signed-off-by: Charlie Drage <charlie@charliedrage.com>
Copy link
Collaborator

@benoitf benoitf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2023-01-25 at 17 36 28

tested and it's working fine

@cdrage cdrage merged commit 08f8c50 into containers:main Jan 25, 2023
@podman-desktop-bot podman-desktop-bot added this to the 0.12.0 milestone Jan 25, 2023
@benoitf benoitf changed the title feat: add ability to manually set color of icon feat: add ability to manually set color of tray icon Feb 14, 2023
@slemeur slemeur changed the title feat: add ability to manually set color of tray icon feat: add ability to manually set color of tray icon for Windows and Linux Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tray icon on Windows should be visible in both light and dark theme
3 participants