Commit eb011093 authored by camilo higuita's avatar camilo higuita
Browse files

do nto sue blur backgorund image on focus view

parent e8a33ba4
......@@ -26,6 +26,8 @@ Maui.ApplicationWindow
title: currentTrack.url ? currentTrack.title + " - " + currentTrack.artist + " | " + currentTrack.album : ""
headBar.visible: false
// Maui.Style.accentColor: Maui.App.darkMode ? babeColor : babeColor
Maui.App.darkMode: settings.darkMode
Maui.Style.adaptiveColorScheme: focusView
......
......@@ -28,7 +28,7 @@ Maui.Page
readonly property string progressTimeLabel: player.transformTime((player.duration/1000) * (player.pos/player.duration))
readonly property string durationTimeLabel: player.transformTime((player.duration/1000))
Maui.Style.adaptiveColorSchemeSource : Vvave.Vvave.artworkUrl(currentTrack.artist, currentTrack.album)
headBar.leftContent: [
ToolButton
......@@ -189,55 +189,62 @@ Maui.Page
onActivated: toggleFocusView()
}
background: Item
background: Rectangle
{
Image
{
id: artworkBg
height: parent.height
width: parent.width
color: Kirigami.Theme.backgroundColor
// opacity: 0.8
sourceSize.width: 500
sourceSize.height: 600
fillMode: Image.PreserveAspectCrop
antialiasing: true
smooth: true
asynchronous: true
cache: true
source: "image://artwork/album:"+currentTrack.artist + ":"+ currentTrack.album
onStatusChanged:
{
console.log("Trying to setr adaptive color based on album >>>>>>>>>>>", status === Image.Ready)
if(status === Image.Ready)
Maui.Style.adaptiveColorSchemeSource = Vvave.Vvave.artworkUrl(currentTrack.artist, currentTrack.album)
setAndroidStatusBarColor()
}
}
FastBlur
onColorChanged:
{
id: fastBlur
anchors.fill: parent
source: artworkBg
radius: 100
transparentBorder: false
cached: true
Rectangle
{
anchors.fill: parent
color: Kirigami.Theme.backgroundColor
opacity: 0.8
onColorChanged:
{
setAndroidStatusBarColor()
}
}
setAndroidStatusBarColor()
}
// Image
// {
// id: artworkBg
// height: parent.height
// width: parent.width
// sourceSize.width: 500
// sourceSize.height: 600
// fillMode: Image.PreserveAspectCrop
// antialiasing: true
// smooth: true
// asynchronous: true
// cache: true
// source: "image://artwork/album:"+currentTrack.artist + ":"+ currentTrack.album
// onStatusChanged:
// {
// console.log("Trying to setr adaptive color based on album >>>>>>>>>>>", status === Image.Ready)
// if(status === Image.Ready)
// Maui.Style.adaptiveColorSchemeSource = Vvave.Vvave.artworkUrl(currentTrack.artist, currentTrack.album)
// setAndroidStatusBarColor()
// }
// }
// FastBlur
// {
// id: fastBlur
// anchors.fill: parent
// source: artworkBg
// radius: 100
// transparentBorder: false
// cached: true
// Rectangle
// {
// anchors.fill: parent
// color: Kirigami.Theme.backgroundColor
// opacity: 0.8
// onColorChanged:
// {
// setAndroidStatusBarColor()
// }
// }
// }
}
Component
......@@ -287,7 +294,7 @@ Maui.Page
{
visible: (_listView.currentIndex > 0) && (_listView.count > 1)
height: Maui.Style.iconSizes.small
height: Maui.Style.iconSizes.tiny
width : height
radius: height
......@@ -463,7 +470,7 @@ Maui.Page
{
anchors.bottom: parent.bottom
visible: (_listView.currentIndex < _listView.count - 1) && (_listView.count > 1)
height: Maui.Style.iconSizes.small
height: Maui.Style.iconSizes.tiny
width : height
radius: height
......
......@@ -103,10 +103,11 @@ Maui.SettingsDialog
Switch
{
Layout.fillHeight: true
checked: settings.darkMode
checked: Maui.App.darkMode
onToggled:
{
settings.darkMode = !settings.darkMode
Maui.App.darkMode = settings.darkMode
setAndroidStatusBarColor()
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment