/**
* @license
* Copyright 2020 Sébastien CANET
* SPDX-License-Identifier: GPL-3.0-or-later
*/

/**
 * @fileoverview Blockly themes parts override.
 * @author scanet@libreduc.cc (Sébastien CANET)
 */

//NOT USED
//flyout opening panel of the toolbox, when clicked on category. 0 = transparency ; 1 = solid
// Blockly.Themes.Classic.setComponentStyle('flyoutBackgroundColour', '#000000');
// Blockly.Themes.Classic.setComponentStyle('flyoutForegroundColour', '#000000');

//Classic Theme
Blockly.Themes.Classic.setComponentStyle('flyoutOpacity', 0);
Blockly.Themes.Classic.setComponentStyle('toolboxBackgroundColour', '#FFFFFF');
Blockly.Themes.Classic.setComponentStyle('flyoutForegroundColour', '#FFFFFF');
Blockly.Themes.Classic.setComponentStyle('flyoutBackgroundColour', '#FFFFFF');
Blockly.Themes.Classic.setComponentStyle('scrollbarColour', '#000000');
Blockly.Themes.Classic.setComponentStyle('scrollbarOpacity', '0.5');
//Modern theme
Blockly.Themes.Modern.setComponentStyle('flyoutOpacity', 0);
Blockly.Themes.Modern.setComponentStyle('toolboxBackgroundColour', '#FFFFFF');
Blockly.Themes.Modern.setComponentStyle('flyoutForegroundColour', '#FFFFFF');
Blockly.Themes.Modern.setComponentStyle('flyoutBackgroundColour', '#FFFFFF');
Blockly.Themes.Modern.setComponentStyle('scrollbarColour', '#000000');
Blockly.Themes.Modern.setComponentStyle('scrollbarOpacity', '0.5');
//Deuteranopia theme
Blockly.Themes.Deuteranopia.setComponentStyle('flyoutOpacity', 0);
Blockly.Themes.Deuteranopia.setComponentStyle('toolboxBackgroundColour', '#FFFFFF');
Blockly.Themes.Deuteranopia.setComponentStyle('flyoutForegroundColour', '#FFFFFF');
Blockly.Themes.Deuteranopia.setComponentStyle('flyoutBackgroundColour', '#FFFFFF');
Blockly.Themes.Deuteranopia.setComponentStyle('scrollbarColour', '#000000');
Blockly.Themes.Deuteranopia.setComponentStyle('scrollbarOpacity', '0.5');
//Tritanopia theme
Blockly.Themes.Tritanopia.setComponentStyle('flyoutOpacity', 0);
Blockly.Themes.Tritanopia.setComponentStyle('toolboxBackgroundColour', '#FFFFFF');
Blockly.Themes.Tritanopia.setComponentStyle('flyoutForegroundColour', '#FFFFFF');
Blockly.Themes.Tritanopia.setComponentStyle('flyoutBackgroundColour', '#FFFFFF');
Blockly.Themes.Tritanopia.setComponentStyle('scrollbarColour', '#000000');
Blockly.Themes.Tritanopia.setComponentStyle('scrollbarOpacity', '0.5');
//Zelos theme
Blockly.Themes.Zelos.setComponentStyle('flyoutOpacity', 0);
Blockly.Themes.Zelos.setComponentStyle('toolboxBackgroundColour', '#FFFFFF');
Blockly.Themes.Zelos.setComponentStyle('flyoutForegroundColour', '#FFFFFF');
Blockly.Themes.Zelos.setComponentStyle('flyoutBackgroundColour', '#FFFFFF');
Blockly.Themes.Zelos.setComponentStyle('scrollbarColour', '#000000');
Blockly.Themes.Zelos.setComponentStyle('scrollbarOpacity', '0.5');
//High Contrast theme
Blockly.Themes.HighContrast.setComponentStyle('flyoutOpacity', 0);
Blockly.Themes.HighContrast.setComponentStyle('toolboxBackgroundColour', '#FFFFFF');
Blockly.Themes.HighContrast.setComponentStyle('flyoutForegroundColour', '#FFFFFF');
Blockly.Themes.HighContrast.setComponentStyle('flyoutBackgroundColour', '#FFFFFF');
Blockly.Themes.HighContrast.setComponentStyle('scrollbarColour', '#000000');
Blockly.Themes.HighContrast.setComponentStyle('scrollbarOpacity', '0.5');