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

Multiple System Tray Icons can be choosen by the user #1

Open
wants to merge 8 commits into
base: devel
Choose a base branch
from

Conversation

7ritn
Copy link
Owner

@7ritn 7ritn commented Oct 9, 2018

Description

This update added the possibility to select one of multiple system tray icons in the settings window. The icon changes are applied on the next restart of the application.

Fixes # 62

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Changed icon in settings. Icon was changed on next start.
  • Changed icon in config to an invalid name. Default icon was selected.

Test Configuration:

  • OS version: Kubuntu 18.04
  • Desktop Version: KDE Plasma 5.12.7

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have added tests that my feature works
  • New and existing unit tests pass locally with my changes

7ritn and others added 8 commits October 9, 2018 21:19
This update added the method __get_icon_path(), which gets the icon path of the icon based on what is written in the config file.
A combo box with label was added to the settings window. It's located as the last item before the save button in the grid. A validation was added to check if the selected icon image exists.
If new item names need to be added then only the config file has to be edited. I also changed "icon.png" to "color-icon.png".
The monochrome items have sharpen corners, so that the edges appear, because of the lines, less "jagged"
Changed merged two different load_config() into one, which now loads user config and parses value to int into a dictionary. Because values are now always parsed to int, not set Settings in SettingsWindow will now a 0 instead of nothing. This zero can be converted to False for validating the config.
I decided for static methods, because the methods don't depend on any object, but just process data.

I also changed the icon name Colored Icon to Default Icon
… config.py file.

Fixed save after ValidationError. Now it cancels saving process.
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