Merge pull request #13 from jhalitaksoy/feature/dark-grey-theme

add dark grey theme
This commit is contained in:
Halit Aksoy 2022-07-09 18:46:40 +03:00 committed by GitHub
commit fd1b5ee474
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 1 deletions

32
src/theme/DarkGrey.ts Normal file
View File

@ -0,0 +1,32 @@
import { Theme } from "./Theme";
// https://colorhunt.co/palette/525252414141313131ec625f
const colors = {
primary: "#414141",
secondary: "#313131",
tertiary: "#606060",
quaternary: "#808080",
};
const colorSpecial = "#337a44";
const darkGreyTheme: Theme = {
id: "3",
name: "Dark Grey Theme",
background: colors.primary,
appBarBgColor: colors.secondary,
primary: colors.primary,
primaryLight: "#aaaaaa",
playerTurnColor: colors.secondary,
boardColor: colors.secondary,
holeColor: colors.tertiary,
pitSelectedColor: colors.secondary,
stoneColor: "#252525",
stoneLightColor: "#252525",
pitGameMoveAnimateColor: colors.quaternary,
pitEmptyPitAnimateColor: colorSpecial,
pitLastStoneInBankPitAnimateColor: colorSpecial,
pitGetRivalStonePitAnimateColor: colorSpecial,
};
export default darkGreyTheme;

View File

@ -1,9 +1,10 @@
import darkGreyTheme from "./DarkGrey";
import darkTheme from "./DarkTheme"; import darkTheme from "./DarkTheme";
import defaultTheme from "./DefaultTheme"; import defaultTheme from "./DefaultTheme";
import oldTheme from "./OldTheme"; import oldTheme from "./OldTheme";
import { Theme } from "./Theme"; import { Theme } from "./Theme";
export const themes = [defaultTheme, darkTheme, oldTheme]; export const themes = [defaultTheme, darkGreyTheme, darkTheme, oldTheme];
const THEME_ID = "theme_id"; const THEME_ID = "theme_id";