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

Dev #11

Merged
merged 31 commits into from
Aug 2, 2024
Merged

Dev #11

merged 31 commits into from
Aug 2, 2024

Conversation

amnweb
Copy link
Owner

@amnweb amnweb commented Aug 2, 2024

No description provided.

amnweb and others added 30 commits July 18, 2024 03:07
This commit introduces a comprehensive overhaul of the widget system to improve layout consistency and usability. Key changes include:

- Addition of a new `media-widget` to manage media playback information, with customizable labels and icons.
- Refactoring existing widgets to utilize a unified container layout, enhancing styling and responsiveness.
- Introduction of dynamic label creation for better handling of icon and text display in widgets.
- Improved error handling and data fetching mechanisms for weather and media updates.

These enhancements aim to provide a more cohesive user experience and facilitate easier maintenance and future feature additions.
Updated the weather widget to use a new API for fetching weather data, enhancing accuracy and performance. Removed the previous weather API implementation and consolidated configuration options. Added support for dynamic icon updates based on weather conditions and improved error handling during data retrieval.

Additionally, updated the README with installation instructions for Nerd Fonts and added a demo image for the YASB widget. This refactor streamlines the weather functionality and enhances user experience by providing more reliable weather information.
Hopefully this solves weird behaviour where the media detection freezes until restart. The code with dynamic size introduced another stream open, but we never close them. Now we only use a single stream call, and always close it.
Fixes small bug where if you close a media player playing a certain song, and reopen it and continue, the thumbnail does not load because the title and artist are the same. Now, if media info is ever None, it wipes the last title and artist used for thumbnail detect.
bugfix(media): winsdk stream stability
…ehavior

Added a paint event to the OverlayWidget to render a translucent background, preventing interactions with underlying widgets. This improves user experience by clearly indicating that the overlay is active. Additionally, the MainWindow now has application modal behavior, ensuring that it remains on top of other windows until closed, further enhancing focus on the power menu.
Updated the configuration to include a new layout option, 'right_main_vertical_stack', in the widgets section.
Small changes that allow you to set value-dependent colors for the icons of the power and memory widget. Most of the code to make this happen was still left (as well as all parameters in the schema), but the CSS properties were missing. Added the property setting in code and added disabled template CSS code for the colors. The template colors should be consistent with the rest of the bar (Catppuccin Mocha)
Simpler way of refreshing the stylesheets. More consistent with the other code.
When media widget is floating, you could see a thin bar of pixels when no media was playing. Solved by hiding the whole widget frame instead of just the container.
Replace parameter specifically for label toggle by simply clearing the artist/title fields to elicit thumbnail update.
Implements a corner rounding procedure for the media thumbnail. This cannot be achieved by CSS, so we need to make the corners transparent to mimic round corners. Using `thumbnail_corner_radius` users can set the rounding to match their CSS settings, or set it to 0 for default square corners.
feat(power/mem): Reintroduce value-dependent icon color
Fixes the crash which is caused by an asyncio event loop that is still running, whilst the bar is being deleted. Fixed by cancelling all asyncio tasks before deleting the bar. Still throws a lot of exceptions in the logs when this happens, but better than crash.
feat(media): Rounded thumbnail corners
This commit introduces a new GitHub notifications widget that fetches and displays unread notifications from the user's GitHub account.

Additionally, error handling has been improved in the configuration loading process, ensuring that any issues are logged appropriately. The README and stylesheets have been updated to include references to the new GitHub widget, enhancing documentation and visual consistency across the application.
Added error handling for subprocess.Popen in the ApplicationsWidget class. If an exception occurs during the launch of an application, it now logs an error message instead of failing silently. This improves debugging and user experience by providing clearer insights into issues when starting applications.
@amnweb amnweb closed this Aug 2, 2024
@amnweb amnweb deleted the dev branch August 2, 2024 20:10
@amnweb amnweb restored the dev branch August 2, 2024 20:10
@amnweb amnweb reopened this Aug 2, 2024
@amnweb amnweb merged commit 3d57366 into main Aug 2, 2024
@amnweb amnweb deleted the dev branch August 31, 2024 15:55
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.

2 participants