Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Maui
Vvave
Commits
eb011093
Commit
eb011093
authored
May 14, 2022
by
camilo higuita
Browse files
do nto sue blur backgorund image on focus view
parent
e8a33ba4
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/main.qml
View file @
eb011093
...
...
@@ -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
...
...
src/widgets/FocusView.qml
View file @
eb011093
...
...
@@ -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
...
...
src/widgets/SettingsView/SettingsDialog.qml
View file @
eb011093
...
...
@@ -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
()
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment