Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
Received
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
sailfish-apps
Received
Commits
040a9e83
Commit
040a9e83
authored
7 years ago
by
kempe
Browse files
Options
Downloads
Patches
Plain Diff
#11
Redesigned cover to show track information
parent
293c32d8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!36
Release v1.0.5
,
!4
Resolve "As a user I want to be able to see current playing information if provided from the stream"
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
harbour-received.pro
+2
-1
2 additions, 1 deletion
harbour-received.pro
qml/cover/CoverPage.qml
+11
-7
11 additions, 7 deletions
qml/cover/CoverPage.qml
qml/cover/layouts/CoverDesign.qml
+34
-0
34 additions, 0 deletions
qml/cover/layouts/CoverDesign.qml
with
47 additions
and
8 deletions
harbour-received.pro
+
2
−
1
View file @
040a9e83
...
...
@@ -53,7 +53,8 @@ DISTFILES += \
qml
/
pages
/
SettingsPage
.
qml
\
qml
/
pages
/
StationsPageForm
.
ui
.
qml
\
qml
/
pages
/
StationsPage
.
qml
\
qml
/
harbour
-
received
.
qml
qml
/
harbour
-
received
.
qml
\
qml
/
cover
/
layouts
/
CoverDesign
.
qml
OTHER_FILES
+=
\
rpm
/
harbour
-
received
.
changes
.
in
\
...
...
This diff is collapsed.
Click to expand it.
qml/cover/CoverPage.qml
+
11
−
7
View file @
040a9e83
import
QtQuick
2.6
import
Sailfish
.
Silica
1.0
import
it
.
kempe
.
AudioPlayer
1.0
import
"
./layouts
"
CoverBackground
{
Image
{
source
:
window
.
stationIcon
anchors.top
:
parent
.
top
anchors.left
:
parent
.
left
width
:
parent
.
width
height
:
parent
.
width
opacity
:
0.1
CoverDesign
{
anchors.top
:
parent
.
top
anchors.right
:
parent
.
right
anchors.bottom
:
coverActionArea
.
top
anchors.left
:
parent
.
left
title
:
AudioPlayer
.
title
icon
:
window
.
stationIcon
}
CoverActionList
{
id
:
coverAction
CoverAction
{
id
:
playToggle
iconSource
:
AudioPlayer
.
isPlaying
?
"
image://theme/icon-cover-pause
"
:
"
image://theme/icon-cover-play
"
onTriggered
:
{
if
(
!
player
.
stationData
)
...
...
This diff is collapsed.
Click to expand it.
qml/cover/layouts/CoverDesign.qml
0 → 100644
+
34
−
0
View file @
040a9e83
import
QtQuick
2.0
import
Sailfish
.
Silica
1.0
Item
{
property
alias
title
:
titleText
.
text
property
alias
icon
:
stationIcon
.
source
Image
{
id
:
stationIcon
opacity
:
0.1
smooth
:
true
fillMode
:
Image
.
PreserveAspectFit
cache
:
true
width
:
parent
.
width
height
:
width
transform
:
Rotation
{
origin.x
:
500
;
origin.y
:
200
;
axis
{
x
:
0
;
y
:
1
;
z
:
0
}
angle
:
45
}
}
Text
{
id
:
titleText
anchors
{
fill
:
parent
;
margins
:
0
,
Theme
.
paddingSmall
}
horizontalAlignment
:
Text
.
AlignLeft
verticalAlignment
:
Text
.
AlignBottom
color
:
Theme
.
primaryColor
font.pixelSize
:
Theme
.
fontSizeSmall
maximumLineCount
:
2
elide
:
Text
.
ElideLeft
wrapMode
:
Text
.
WordWrap
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment