Color and layout refinements
This commit is contained in:
parent
99cf0780c1
commit
67f40d6a04
12 changed files with 47 additions and 16 deletions
|
@ -25,17 +25,27 @@ var layout = {
|
||||||
};
|
};
|
||||||
|
|
||||||
var colors = {
|
var colors = {
|
||||||
download: '#8ae234', /* download green */
|
download: '#7ac224', /* download green */
|
||||||
select: '#7f5785', /* gpodder dark purple */
|
select: '#7f5785', /* gpodder dark purple */
|
||||||
fresh: '#815c86', /* gpodder purple */
|
fresh: '#815c86', /* gpodder purple */
|
||||||
playback: '#729fcf', /* playback blue */
|
playback: '#729fcf', /* playback blue */
|
||||||
|
destructive: '#cf424f', /* destructive actions */
|
||||||
|
|
||||||
|
page: '#dddddd',
|
||||||
text: '#333333', /* text color */
|
text: '#333333', /* text color */
|
||||||
placeholder: '#666666',
|
|
||||||
highlight: '#433b67',
|
highlight: '#433b67',
|
||||||
secondaryHighlight: '#605885',
|
secondaryHighlight: '#605885',
|
||||||
background: '#948db3',
|
|
||||||
area: '#cccccc',
|
area: '#cccccc',
|
||||||
|
placeholder: '#666666',
|
||||||
|
|
||||||
|
//page: '#000000',
|
||||||
|
//text: '#ffffff', /* text color */
|
||||||
|
//highlight: Qt.lighter('#433b67', 1.2),
|
||||||
|
//secondaryHighlight: Qt.lighter('#605885', 1.2),
|
||||||
|
//area: '#333333',
|
||||||
|
//placeholder: '#aaaaaa',
|
||||||
|
|
||||||
|
background: '#948db3',
|
||||||
secondaryBackground: '#d0cce1',
|
secondaryBackground: '#d0cce1',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ Item {
|
||||||
|
|
||||||
IconMenuItem {
|
IconMenuItem {
|
||||||
text: episodeItem.isPlaying ? 'Pause' : 'Play'
|
text: episodeItem.isPlaying ? 'Pause' : 'Play'
|
||||||
color: titleLabel.color
|
color: (episodeItem.isPlaying || progress > 0) ? titleLabel.color : Constants.colors.playback
|
||||||
icon: episodeItem.isPlaying ? Icons.pause : Icons.play
|
icon: episodeItem.isPlaying ? Icons.pause : Icons.play
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (episodeItem.isPlaying) {
|
if (episodeItem.isPlaying) {
|
||||||
|
@ -61,7 +61,7 @@ Item {
|
||||||
|
|
||||||
IconMenuItem {
|
IconMenuItem {
|
||||||
text: 'Download'
|
text: 'Download'
|
||||||
color: titleLabel.color
|
color: (episodeItem.isPlaying || progress > 0) ? titleLabel.color : Constants.colors.download
|
||||||
icon: Icons.cloud_download
|
icon: Icons.cloud_download
|
||||||
visible: downloadState != Constants.state.downloaded
|
visible: downloadState != Constants.state.downloaded
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
@ -72,7 +72,7 @@ Item {
|
||||||
|
|
||||||
IconMenuItem {
|
IconMenuItem {
|
||||||
text: 'Delete'
|
text: 'Delete'
|
||||||
color: titleLabel.color
|
color: (episodeItem.isPlaying || progress > 0) ? titleLabel.color : Constants.colors.destructive
|
||||||
icon: Icons.trash
|
icon: Icons.trash
|
||||||
visible: downloadState != Constants.state.deleted
|
visible: downloadState != Constants.state.deleted
|
||||||
onClicked: py.call('main.delete_episode', [id]);
|
onClicked: py.call('main.delete_episode', [id]);
|
||||||
|
@ -80,7 +80,7 @@ Item {
|
||||||
|
|
||||||
IconMenuItem {
|
IconMenuItem {
|
||||||
id: toggleNew
|
id: toggleNew
|
||||||
color: titleLabel.color
|
color: (episodeItem.isPlaying || isNew || progress > 0) ? titleLabel.color : Constants.colors.text
|
||||||
text: 'Toggle New'
|
text: 'Toggle New'
|
||||||
icon: Icons.star
|
icon: Icons.star
|
||||||
onClicked: Util.disableUntilReturn(toggleNew, py, 'main.toggle_new', [id]);
|
onClicked: Util.disableUntilReturn(toggleNew, py, 'main.toggle_new', [id]);
|
||||||
|
@ -170,8 +170,8 @@ Item {
|
||||||
return Constants.colors.download;
|
return Constants.colors.download;
|
||||||
} else if (episodeItem.opened) {
|
} else if (episodeItem.opened) {
|
||||||
return Constants.colors.highlight;
|
return Constants.colors.highlight;
|
||||||
} else if (isNew && downloadState != Constants.state.downloaded) {
|
} else if (isNew) {
|
||||||
return Constants.colors.fresh;
|
return Constants.colors.highlight;
|
||||||
} else {
|
} else {
|
||||||
return Constants.colors.text;
|
return Constants.colors.text;
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,7 @@ import QtQuick 2.0
|
||||||
|
|
||||||
import 'common'
|
import 'common'
|
||||||
import 'common/util.js' as Util
|
import 'common/util.js' as Util
|
||||||
|
import 'common/constants.js' as Constants
|
||||||
import 'icons/icons.js' as Icons
|
import 'icons/icons.js' as Icons
|
||||||
|
|
||||||
SlidePage {
|
SlidePage {
|
||||||
|
@ -41,6 +42,7 @@ SlidePage {
|
||||||
PullMenuItem {
|
PullMenuItem {
|
||||||
text: 'Now Playing'
|
text: 'Now Playing'
|
||||||
icon: Icons.play
|
icon: Icons.play
|
||||||
|
color: Constants.colors.playback
|
||||||
onClicked: {
|
onClicked: {
|
||||||
pgst.loadPage('PlayerPage.qml');
|
pgst.loadPage('PlayerPage.qml');
|
||||||
episodesPage.unPull();
|
episodesPage.unPull();
|
||||||
|
@ -50,6 +52,7 @@ SlidePage {
|
||||||
PullMenuItem {
|
PullMenuItem {
|
||||||
text: 'Unsubscribe'
|
text: 'Unsubscribe'
|
||||||
icon: Icons.trash
|
icon: Icons.trash
|
||||||
|
color: Constants.colors.destructive
|
||||||
onClicked: {
|
onClicked: {
|
||||||
py.call('main.unsubscribe', [episodesPage.podcast_id]);
|
py.call('main.unsubscribe', [episodesPage.podcast_id]);
|
||||||
episodesPage.closePage();
|
episodesPage.closePage();
|
||||||
|
|
|
@ -28,6 +28,7 @@ ButtonArea {
|
||||||
property alias text: label.text
|
property alias text: label.text
|
||||||
property color color: Constants.colors.secondaryHighlight
|
property color color: Constants.colors.secondaryHighlight
|
||||||
property alias icon: icon.icon
|
property alias icon: icon.icon
|
||||||
|
property alias size: icon.size
|
||||||
property bool alwaysShowText: false
|
property bool alwaysShowText: false
|
||||||
|
|
||||||
transparent: true
|
transparent: true
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
import QtQuick 2.0
|
import QtQuick 2.0
|
||||||
|
|
||||||
import 'icons/icons.js' as Icons
|
import 'icons/icons.js' as Icons
|
||||||
|
import 'common/constants.js' as Constants
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
height: 64 * pgst.scalef
|
height: 64 * pgst.scalef
|
||||||
|
@ -30,6 +31,7 @@ Item {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
icon: Icons.aperture
|
icon: Icons.aperture
|
||||||
rotation: 180 * parent.phase
|
rotation: 180 * parent.phase
|
||||||
|
color: Constants.colors.highlight
|
||||||
}
|
}
|
||||||
|
|
||||||
property real phase: 0
|
property real phase: 0
|
||||||
|
|
|
@ -27,10 +27,10 @@ import 'icons/icons.js' as Icons
|
||||||
PLabel {
|
PLabel {
|
||||||
id: picon
|
id: picon
|
||||||
|
|
||||||
property int size: 48 * pgst.scalef
|
property int size: 48
|
||||||
property string icon
|
property string icon
|
||||||
|
|
||||||
text: icon
|
text: icon
|
||||||
font.pixelSize: picon.size
|
font.pixelSize: picon.size * pgst.scalef
|
||||||
font.family: Icons.font
|
font.family: Icons.font
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,6 +23,7 @@ import QtQuick 2.0
|
||||||
import 'common'
|
import 'common'
|
||||||
import 'common/util.js' as Util
|
import 'common/util.js' as Util
|
||||||
import 'icons/icons.js' as Icons
|
import 'icons/icons.js' as Icons
|
||||||
|
import 'common/constants.js' as Constants
|
||||||
|
|
||||||
SlidePage {
|
SlidePage {
|
||||||
id: podcastsPage
|
id: podcastsPage
|
||||||
|
@ -31,6 +32,7 @@ SlidePage {
|
||||||
PullMenu {
|
PullMenu {
|
||||||
PullMenuItem {
|
PullMenuItem {
|
||||||
text: 'Now Playing'
|
text: 'Now Playing'
|
||||||
|
color: Constants.colors.playback
|
||||||
icon: Icons.play
|
icon: Icons.play
|
||||||
onClicked: {
|
onClicked: {
|
||||||
pgst.loadPage('PlayerPage.qml');
|
pgst.loadPage('PlayerPage.qml');
|
||||||
|
@ -50,6 +52,7 @@ SlidePage {
|
||||||
PullMenuItem {
|
PullMenuItem {
|
||||||
text: 'Subscribe'
|
text: 'Subscribe'
|
||||||
icon: Icons.plus
|
icon: Icons.plus
|
||||||
|
color: Constants.colors.download
|
||||||
onClicked: {
|
onClicked: {
|
||||||
pgst.loadPage('Subscribe.qml');
|
pgst.loadPage('Subscribe.qml');
|
||||||
podcastsPage.unPull();
|
podcastsPage.unPull();
|
||||||
|
|
|
@ -24,7 +24,7 @@ import 'common/constants.js' as Constants
|
||||||
|
|
||||||
IconMenuItem {
|
IconMenuItem {
|
||||||
id: pullMenuItem
|
id: pullMenuItem
|
||||||
alwaysShowText: true
|
size: 80
|
||||||
|
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: width
|
height: width
|
||||||
|
|
|
@ -20,9 +20,11 @@
|
||||||
|
|
||||||
import QtQuick 2.0
|
import QtQuick 2.0
|
||||||
|
|
||||||
|
import 'common/constants.js' as Constants
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: page
|
id: page
|
||||||
color: 'white'
|
color: Constants.colors.page
|
||||||
|
|
||||||
default property alias children: dragging.children
|
default property alias children: dragging.children
|
||||||
property alias hasPull: dragging.hasPull
|
property alias hasPull: dragging.hasPull
|
||||||
|
@ -52,7 +54,7 @@ Rectangle {
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
color: '#ffffff'
|
color: Constants.colors.page
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
opacity: page.pullPhase * 0.9
|
opacity: page.pullPhase * 0.9
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
import QtQuick 2.0
|
import QtQuick 2.0
|
||||||
|
|
||||||
import 'icons/icons.js' as Icons
|
import 'icons/icons.js' as Icons
|
||||||
|
import 'common/constants.js' as Constants
|
||||||
|
|
||||||
SlidePage {
|
SlidePage {
|
||||||
id: startPage
|
id: startPage
|
||||||
|
@ -102,6 +103,7 @@ SlidePage {
|
||||||
PIcon {
|
PIcon {
|
||||||
id: subscriptions
|
id: subscriptions
|
||||||
icon: Icons.plus
|
icon: Icons.plus
|
||||||
|
color: Constants.colors.download
|
||||||
|
|
||||||
anchors {
|
anchors {
|
||||||
bottom: parent.bottom
|
bottom: parent.bottom
|
||||||
|
@ -164,6 +166,7 @@ SlidePage {
|
||||||
PIcon {
|
PIcon {
|
||||||
id: refresher
|
id: refresher
|
||||||
icon: Icons.reload
|
icon: Icons.reload
|
||||||
|
color: Constants.colors.highlight
|
||||||
|
|
||||||
anchors {
|
anchors {
|
||||||
bottom: parent.bottom
|
bottom: parent.bottom
|
||||||
|
|
|
@ -20,10 +20,15 @@
|
||||||
|
|
||||||
import QtQuick 2.0
|
import QtQuick 2.0
|
||||||
|
|
||||||
|
import 'common/constants.js' as Constants
|
||||||
|
|
||||||
SlidePage {
|
SlidePage {
|
||||||
id: subscribe
|
id: subscribe
|
||||||
|
|
||||||
SlidePageHeader { title: 'Add subscription' }
|
SlidePageHeader {
|
||||||
|
title: 'Add subscription'
|
||||||
|
color: Constants.colors.download
|
||||||
|
}
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
|
|
@ -19,8 +19,10 @@
|
||||||
|
|
||||||
import QtQuick 2.0
|
import QtQuick 2.0
|
||||||
|
|
||||||
|
import 'common/constants.js' as Constants
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
color: 'white'
|
color: Constants.colors.page
|
||||||
|
|
||||||
width: 480
|
width: 480
|
||||||
height: 800
|
height: 800
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue