From fd1d318540820931fe467ada3df8df13d0f86053 Mon Sep 17 00:00:00 2001 From: = <=> Date: Mon, 20 May 2019 15:29:02 +0200 Subject: [PATCH 1/2] Make mammal theme look more like gargsite Signed-off-by: = <=> --- static/styles.json | 4 ++-- static/themes/mammal.json | 43 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 static/themes/mammal.json diff --git a/static/styles.json b/static/styles.json index 00ad6ae184..842092c44a 100644 --- a/static/styles.json +++ b/static/styles.json @@ -5,11 +5,11 @@ "bird": [ "Bird", "#f8fafd", "#e6ecf0", "#14171a", "#0084b8", "#e0245e", "#17bf63", "#1b95e0", "#fab81e"], "ir-black": [ "Ir Black", "#000000", "#242422", "#b5b3aa", "#ff6c60", "#FF6C60", "#A8FF60", "#96CBFE", "#FFFFB6" ], "monokai": [ "Monokai", "#272822", "#383830", "#f8f8f2", "#f92672", "#F92672", "#a6e22e", "#66d9ef", "#f4bf75" ], - "mammal": [ "Mammal", "#272c37", "#444b5d", "#f8f8f8", "#9bacc8", "#7f3142", "#2bd850", "#2b90d9", "#ca8f04" ], "redmond-xx": "/static/themes/redmond-xx.json", "redmond-xx-se": "/static/themes/redmond-xx-se.json", "redmond-xxi": "/static/themes/redmond-xxi.json", "breezy-dark": "/static/themes/breezy-dark.json", - "breezy-light": "/static/themes/breezy-light.json" + "breezy-light": "/static/themes/breezy-light.json", + "mammal": "/static/themes/mammal.json" } diff --git a/static/themes/mammal.json b/static/themes/mammal.json new file mode 100644 index 0000000000..2f7ef27ded --- /dev/null +++ b/static/themes/mammal.json @@ -0,0 +1,43 @@ +{ + "_pleroma_theme_version": 2, + "name": "Mammal", + "theme": { + "fonts": { + "interface": { "family": "Roboto, sans-serif" }, + "input": { "family": "Roboto, sans-serif" }, + "post": { "family": "Roboto, sans-serif" }, + "postCode": { "family": "Roboto Mono, monospace" } + }, + "shadows": { + "button": [], + "buttonHover": [], + "buttonPressed": [], + "panel": [], + "panelHeader": [], + "topBar": [] + }, + "opacity": { "input": "1" }, + "colors": { + "bg": "#282c37", + "text": "#f8f8f8", + "link": "#9bacc8", + "fg": "#444b5d", + "input": "#FFFFFF", + "inputText": "#282c37", + "btn": "#2b90d9", + "btnText": "#FFFFFF", + "cRed": "#7f3142", + "cBlue": "#2b90d9", + "cGreen": "#2bd850", + "cOrange": "#ca8f04" + }, + "radii": { + "btn": 4, + "input": 4, + "panel": "0", + "avatar": "4", + "avatarAlt": "4", + "attachment": "4" + } + } +} From 08aa9e29031fb6ba05c9c5c58ffc62731acbaaf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Mon, 20 May 2019 14:46:25 +0000 Subject: [PATCH 2/2] Remove fonts section, make buttons change color on hover/press --- static/themes/mammal.json | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/static/themes/mammal.json b/static/themes/mammal.json index 2f7ef27ded..50b8e2f002 100644 --- a/static/themes/mammal.json +++ b/static/themes/mammal.json @@ -2,16 +2,30 @@ "_pleroma_theme_version": 2, "name": "Mammal", "theme": { - "fonts": { - "interface": { "family": "Roboto, sans-serif" }, - "input": { "family": "Roboto, sans-serif" }, - "post": { "family": "Roboto, sans-serif" }, - "postCode": { "family": "Roboto Mono, monospace" } - }, "shadows": { "button": [], - "buttonHover": [], - "buttonPressed": [], + "buttonHover": [ + { + "x": "0", + "y": "0", + "blur": "0", + "spread": 1024, + "color": "#56a7e1", + "alpha": "1", + "inset": true + } + ], + "buttonPressed": [ + { + "x": "0", + "y": "0", + "blur": "0", + "spread": 1024, + "color": "#56a7e1", + "alpha": "1", + "inset": true + } + ], "panel": [], "panelHeader": [], "topBar": []