Skip to content

Improve system tray icon visibility#16

Merged
cwage merged 2 commits intomainfrom
fix-icon-visibility
Aug 9, 2025
Merged

Improve system tray icon visibility#16
cwage merged 2 commits intomainfrom
fix-icon-visibility

Conversation

@cwage
Copy link
Owner

@cwage cwage commented Aug 9, 2025

Summary

  • Replace theme-dependent system icon with high-quality white speaker PNG
  • Ensure icon visibility across all desktop themes (solarized light/dark, etc.)
  • Remove complex dynamic volume bar functionality that was causing instability

Changes

  • Downloaded professional speaker icon from vectorified.com
  • Inverted colors to create white speaker on transparent background
  • Simplified icon loading code for reliability
  • Cleaned up unused SVG generation code

Test plan

  • Icon loads correctly on application startup
  • Icon is visible on both light and dark themes
  • Application runs stably without crashes
  • Volume scroll wheel functionality still works

This resolves the barely-visible black speaker icon issue and provides a clean, professional appearance.

- Replace theme-dependent icon with high-quality PNG from vectorified.com
- Use inverted (white) speaker icon for better visibility across all themes
- Remove complex dynamic volume bar functionality that was causing crashes
- Simple, clean, and reliable icon that works on both light and dark themes
Copilot AI review requested due to automatic review settings August 9, 2025 00:49
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR improves system tray icon visibility by replacing a theme-dependent system icon with a custom white speaker PNG image, ensuring consistent visibility across different desktop themes. The changes also include simplification of the icon loading code and addition of GitHub workflow conditions.

Key changes:

  • Custom PNG icon loading with fallback to system icon
  • Simplified icon loading code for better reliability
  • Added GitHub workflow condition checks for version input

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/volmix.c Replaces system icon with custom PNG loading logic and fallback mechanism
.github/workflows/create-release.yml Adds conditional checks to prevent jobs from running without version input

- Use g_build_filename() for secure path construction
- Add file existence validation before loading icon
- Replace printf() with g_print() for success messages
- Replace printf() with g_warning() for error messages
- Proper memory management with g_free() for allocated paths
@cwage cwage merged commit 576f5d6 into main Aug 9, 2025
@cwage cwage deleted the fix-icon-visibility branch August 9, 2025 00:58
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.

1 participant

Comments