/*
Copyright (C) 2015 Sam Parkinson

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

window.platform = {
    android: /Android/i.test(navigator.userAgent),
    FF:      /Firefox/i.test(navigator.userAgent),
    mobile:  /Mobi/i   .test(navigator.userAgent),
    tablet:  /Tablet/i .test(navigator.userAgent)
};

platform.androidWebkit = platform.android && !platform.FF;
platform.FFOS = platform.FF
            && (platform.mobile || platform.tablet)
            && !platform.android;
console.log('On platform: ', platform);


window.platformColor = {
    blockText: '#282828',
    paletteColors: {
	'widgets': ['#10F39C', '#10DF64', '#00E164', '#00C87D'],
	'pitch': ['#10F39C', '#10DF64', '#00E164', '#00C87D'],
	'rhythm': ['#FE994F', '#E86B0E', '#FF8B2D', '#FEC092'],
	'meter': ['#FE994F', '#E86B0E', '#FF8B2D', '#FEC092'],
	'tone': ['#3EDCDD', '#1DBCBD', '#25C3C0', '#A1EEEF'],
	'ornament': ['#3EDCDD', '#1DBCBD', '#25C3C0', '#A1EEEF'],
	'intervals': ['#10F39C', '#10DF64', '#00E164', '#00C87D'],
	'volume': ['#3EDCDD', '#1DBCBD', '#25C3C0', '#A1EEEF'],
	'drum': ['#3EDCDD', '#1DBCBD', '#25C3C0', '#A1EEEF'],
	'graphics': ['#92A9FF', '#5370DC', '#728FF9', '#CDD8FF'],
	'pen': ['#92A9FF', '#5370DC', '#728FF9', '#CDD8FF'],
	'boxes': ['#FFBF00', '#DAAF30', '#DAA926', '#FFE391'],
	'action': ['#FFBF00', '#DAAF30', '#DAA926', '#FFE391'],
	'media': ['#FF664B', '#EA4326', '#FF5942', '#FFB9E2'],
	'number': ['#FF6EA1', '#FF2C76', '#FF5293', '#FFCDDF'],
	'boolean': ['#D97DF5', '#B653D3', '#C96DF3', '#EDC6A3'],
	'flow': ['#D98A43', '#B7651A', '#D68136', '#ECC6A4'],
	'sensors': ['#FF664B', '#EA4326', '#FF5942', '#FFB9E2'],
	'extras': ['#C4C4C4', '#A0A0A0', '#B0B0B0', '#D0D0D0'],
	'myblocks': ['#C4C4C4', '#A0A0A0', '#B0B0B0', '#D0D0D0'],
	'heap': ['#D98A43', '#B7651A', '#D68136', '#ECC6A4'],
	'ensemble': ['#92A9FF', '#5370DC', '#728FF9', '#CDD8FF'],
    },

    disconnected: '#C4C4C4',  // disconnected block color
    header: platform.FF? '#4DA6FF' : '#4DA6FF',
    aux: '#1A8CFF',
    sub: '#8CC6FF',
    doHeaderShadow: !platform.FF,
    rule: '#E2E2E2',
    ruleColor: '#E2E2E2',
    trashColor: '#C0C0C0',
    trashBorder: '#808080',
    trashActive: '#FF0000',
    background: '#F9F9F9',
    paletteSelected: '#F3F3F3',
    paletteBackground: '#FFFFFF',
    paletteText: '#666666',
    selectorBackground: '#8CC6FF',
    selectorSelected: '#1A8CFF',
	labelColor: '#90c100',
	tupletBackground: '#57e751',
};

document.querySelector('meta[name=theme-color]')
        .content = platformColor.header;


function showButtonHighlight(x, y, r, event, scale, stage) {
    if (platform.FFOS) return {};
    return showMaterialHighlight(x, y, r, event, scale, stage);
};

@@ -1179,45 +1179,45 @@
  %5B'#
-10F39C', '#10DF64', '#00E164
+7CD622', '#57AD02', '#77C428
 ', '#
-00C8
+B4EB
 7D'%5D
@@ -1235,45 +1235,45 @@
  %5B'#
-10F39C', '#10DF64', '#00E164
+7CD622', '#57AD02', '#77C428
 ', '#
-00C8
+B4EB
 7D'%5D
@@ -1522,45 +1522,45 @@
  %5B'#
-10F39C', '#10DF64', '#00E164
+7CD622', '#57AD02', '#77C428
 ', '#
-00C8
+B4EB
 7D'%5D
@@ -2920,17 +2920,20 @@
 A8CFF',%0A
-%09
+    
 labelCol
@@ -2947,17 +2947,20 @@
 0c100',%0A
-%09
+    
 tupletBa
@@ -2980,16 +2980,47 @@
 7e751',%0A
+    rhythmcellcolor: '#c8c8c8'%0A
 %7D;%0A%0Adocu

Update platformstyle.js