gpodder-ui-qml/common/constants.js
2014-02-07 18:03:58 +01:00

59 lines
1.7 KiB
JavaScript

/**
*
* gPodder QML UI Reference Implementation
* Copyright (c) 2013, Thomas Perl <m@thp.io>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*
*/
var layout = {
header: {
height: 100, /* page header height */
},
};
var colors = {
download: '#7ac224', /* download green */
select: '#7f5785', /* gpodder dark purple */
fresh: '#815c86', /* gpodder purple */
playback: '#729fcf', /* playback blue */
destructive: '#cf424f', /* destructive actions */
page: '#dddddd',
text: '#333333', /* text color */
highlight: '#433b67',
secondaryHighlight: '#605885',
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',
};
var font = 'Source Sans Pro';
var state = {
normal: 0,
downloaded: 1,
deleted: 2,
};