Skip to content

Commit

Permalink
add support for changing page background color for show image and sho…
Browse files Browse the repository at this point in the history
…w animated image
  • Loading branch information
AIIX committed Nov 30, 2022
1 parent 462465a commit fedcc94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mycroft/res/ui/SYSTEM_AnimatedImageFrame.qml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Mycroft 1.0 as Mycroft

Mycroft.Delegate {
id: systemImageFrame
skillBackgroundColorOverlay: "#000000"
skillBackgroundColorOverlay: sessionData.background_color ? sessionData.background_color : "#000000"
property bool hasTitle: sessionData.title.length > 0 ? true : false
property bool hasCaption: sessionData.caption.length > 0 ? true : false

Expand Down
2 changes: 1 addition & 1 deletion mycroft/res/ui/SYSTEM_ImageFrame.qml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Mycroft 1.0 as Mycroft

Mycroft.Delegate {
id: systemImageFrame
skillBackgroundColorOverlay: "#000000"
skillBackgroundColorOverlay: sessionData.background_color ? sessionData.background_color : "#000000"
property bool hasTitle: sessionData.title.length > 0 ? true : false
property bool hasCaption: sessionData.caption.length > 0 ? true : false

Expand Down

0 comments on commit fedcc94

Please sign in to comment.