-
Notifications
You must be signed in to change notification settings - Fork 127
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
Advanced Settings: Make background art blur and opacity configurable; display background art per item #197
base: develop
Are you sure you want to change the base?
Conversation
Does setting |
|
I should probably centralize the whole background |
4753a5b
to
7ae8725
Compare
rebased on #202 (badly) |
901b428
to
5747389
Compare
Changelog:
|
77606f0
to
a5c5d47
Compare
Rebased onto develop, fixed translations |
78f9acc
to
126aaba
Compare
a5c5d47
to
d928601
Compare
Rebased onto develop |
… background art per selected item
…using aSet and use addonSettings instead; support per-related-show-background-art for subitems window
This reverts commit d5c433a
… per focussed library item
…f we've got multiple chunks
de43e77
to
85273d3
Compare
Looks great! I have a few comments for changes, but after that and a rebase I think we can get this merged 😄. |
@@ -548,6 +552,15 @@ def getProgressImage(obj): | |||
return 'script.plex/progress/{0}.png'.format(pct) | |||
|
|||
|
|||
def backgroundFromArt(art, width=1920, height=1080, background=colors.noAlpha.Background): |
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.
Let's put the width and height values into global values and use those here.
@@ -646,7 +647,7 @@ def updateProperties(self): | |||
|
|||
self.setProperty( | |||
'background', | |||
(self.show_ or self.season.show()).art.asTranscodedImageURL(self.width, self.height, blur=128, opacity=60, background=colors.noAlpha.Background) | |||
util.backgroundFromArt((self.show_ or self.season.show()).art, width=self.width, height=self.height) |
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.
I think we can just drop the width and height here (and for the rest). We can change it in the util in the unlikely event we need to change this globally, and in the even more unlikely event we need to change it on a per screen basis, we can just add it at that time.
@@ -22,6 +22,7 @@ | |||
import preplayutils | |||
|
|||
from lib.util import T | |||
from lib.windows.home import MOVE_SET |
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.
I don't see this used anywhere.
self.setProperty('background', util.backgroundFromArt(item.art, width=self.width, height=self.height)) | ||
else: | ||
# we want the first item of the first chunk | ||
if position is not 0: |
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.
Let's move this check to the caller and remove the position argument from this function.
Doh! I just realized I never submitted my review when I made my last comment. |
GHI (If applicable): #58
Description:
Checklist: