-
Notifications
You must be signed in to change notification settings - Fork 83
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
shiny: overhaul api for v4 #198
Conversation
This still needs work on every non-windows driver, as well as adjustment in window.Window to only include those things all default drivers have.
This is a small api correction to ensure consumers cannot try to send on receive only channels.
set tray icon is still in progress.
SetIcon is much more likely to be a thing a real application will want to call over using tray icons. In addition, there are existing libraries (beeep) that do notifications well already.
Inexpliciably, this appears to do nothing.
this was a failed attempt to make SetIcon work on osx
…le-window and multi-window interfaces
We do not use this and if we ever did, I do not know what we would do with the knowledge that a os level back buffer was preserved or not.
…her packages so graduates out of entities
…her packages so graduates out of entities
Codecov Report
@@ Coverage Diff @@
## release/v4.0.0 #198 +/- ##
==================================================
+ Coverage 91.75% 92.47% +0.71%
==================================================
Files 138 137 -1
Lines 6222 6149 -73
==================================================
- Hits 5709 5686 -23
+ Misses 449 406 -43
+ Partials 64 57 -7
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
Feature/v4 shaker+examples
|
||
// BUG: this doesn't work, and it doesn't error either | ||
func (w *Window) SetIcon(img image.Image) error { | ||
w.window.SetIcon([]image.Image{img}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: the documentation suggests that you can call SetIcon from outside of the main thread, but maybe they are lying? Try sending this through the update window request channel.
This still needs work on every non-windows driver, as well as adjustment in window.Window to only include those things all default drivers have.