Added Solarized Light theme.

This commit is contained in:
Oliver Jan Krylow 2017-05-08 19:22:23 +02:00
parent a4e9936a85
commit 0c49023bbf
5 changed files with 49 additions and 22 deletions

View file

@ -1,26 +1,26 @@
{ {
"name": "Underwater", "name": "Solarized Dark",
"price": 50, "price": 0,
"colors": { "colors": {
"background": "0044aaff", "background": "002b36ff",
"foreground": "d7f4e3ff", "foreground": "fdf6e3ff",
"buttons": [ "buttons": [
"37c871ff", "859900ff",
"2a7fffff", "268bd2ff",
"00ccffff", "d33682ff",
"5f5fd3ff" "cb4b16ff"
], ],
"empty_cell": "0066ffff", "empty_cell": "073642ff",
"cells": [ "cells": [
"37c871ff", "2ad4ffff", "0000d4ff", "657b83ff", "b58900ff", "cb4b16ff",
"00ffccff", "5599ffff", "87cddeff", "80b3ffff", "dc322fff", "d33682ff", "6c71c4ff", "268bd2ff",
"00ff66ff", "00d4aaff" "2aa198ff", "859900ff"
], ],
"current_score": "aaccffff", "current_score": "586e75ff",
"high_score": "2aff80ff", "high_score": "eee8d5ff",
"bonus": "aaeeffff", "bonus": "586e75ff",
"band": "3771c8ff", "band": "2aa198ff",
"text": "002255ff" "text": "fdf6e3ff"
}, },
"cell_texture": "bubble.png" "cell_texture": "circle.png"
} }

View file

@ -0,0 +1,26 @@
{
"name": "Solarized Light",
"price": 0,
"colors": {
"background": "fdf6e3ff",
"foreground": "002b36ff",
"buttons": [
"859900ff",
"268bd2ff",
"d33682ff",
"cb4b16ff"
],
"empty_cell": "eee8d5ff",
"cells": [
"657b83ff", "b58900ff", "cb4b16ff",
"dc322fff", "d33682ff", "6c71c4ff", "268bd2ff",
"2aa198ff", "859900ff"
],
"current_score": "586e75ff",
"high_score": "eee8d5ff",
"bonus": "586e75ff",
"band": "b58900ff",
"text": "002b36ff"
},
"cell_texture": "circle.png"
}

View file

@ -2,3 +2,5 @@ default
dark dark
bandw bandw
underwater underwater
solarized-dark
solarized-light

View file

@ -25,7 +25,7 @@ public class Theme {
public Color background; public Color background;
public Color foreground; public Color foreground;
public Color emptyCell; private Color emptyCell;
public Color currentScore; public Color currentScore;
public Color highScore; public Color highScore;
@ -34,7 +34,6 @@ public class Theme {
public Color textColor; public Color textColor;
private Color[] cells; private Color[] cells;
private Color[] buttons;
public static Skin skin; public static Skin skin;
@ -126,7 +125,7 @@ public class Theme {
foreground = new Color((int)Long.parseLong(colors.getString("foreground"), 16)); foreground = new Color((int)Long.parseLong(colors.getString("foreground"), 16));
JsonValue buttonColors = colors.get("buttons"); JsonValue buttonColors = colors.get("buttons");
buttons = new Color[buttonColors.size]; Color[] buttons = new Color[buttonColors.size];
for (int i = 0; i < buttons.length; ++i) { for (int i = 0; i < buttons.length; ++i) {
buttons[i] = new Color((int)Long.parseLong(buttonColors.getString(i), 16)); buttons[i] = new Color((int)Long.parseLong(buttonColors.getString(i), 16));
if (buttonStyles[i] == null) { if (buttonStyles[i] == null) {

View file

@ -18,7 +18,7 @@ public abstract class BaseScorer implements BinSerializable {
//region Members //region Members
protected int currentScore; int currentScore;
final Label currentScoreLabel; final Label currentScoreLabel;
final Label highScoreLabel; final Label highScoreLabel;