diff --git a/webapp/titanembeds/constants.py b/webapp/titanembeds/constants.py index 5fb7d57..f386359 100644 --- a/webapp/titanembeds/constants.py +++ b/webapp/titanembeds/constants.py @@ -64,6 +64,10 @@ QUERY_PARAMETERS = [ "name": "DiscordDark", "default": False, }, + { + "name": "MetroEdge", + "default": False, + }, ], }, { diff --git a/webapp/titanembeds/static/js/embed.js b/webapp/titanembeds/static/js/embed.js index 6c01eb5..bf32d6d 100644 --- a/webapp/titanembeds/static/js/embed.js +++ b/webapp/titanembeds/static/js/embed.js @@ -19,7 +19,7 @@ /* global disabled */ (function () { - const theme_options = ["DiscordDark", "BetterTitan"]; // All the avaliable theming names + const theme_options = ["DiscordDark", "MetroEdge", "BetterTitan"]; // All the avaliable theming names const badges_options = ["administrator", "partner", "supporter", "star"]; // All badges avaliable var user_def_css; // Saves the user defined css diff --git a/webapp/titanembeds/static/themes/MetroEdge/css/style.css b/webapp/titanembeds/static/themes/MetroEdge/css/style.css new file mode 100644 index 0000000..c2628c1 --- /dev/null +++ b/webapp/titanembeds/static/themes/MetroEdge/css/style.css @@ -0,0 +1,92 @@ +/* Metro Edge theme by Jelle Z. @ https://github.com/jelle619 */ + +.subheader { + font-style: italic; +} + +.footercontainer { + border: 0px solid rgb(99, 99, 99); +} + +.btn-floating { + background-color: #171717; +} + +.btn-floating:hover { + background-color: #595959; +} + +.btn-floating { + background-color: #171717; +} + +.btn { + background-color: #171717; +} + +.btn:hover { + background-color: #595959; +} + +.btn-large { + background-color: #171717; +} + +#modal_guildinfobox { + background-color: #595959; +} + +.loginmodal-maincontent { + background-color: #171717; +} + +.chatbox { + background-color: #2A97FA; +} + +@font-face { + font-family: Roboto; + font-style: light; + font-weight: 300; + src: url("../font/roboto_light.woff") format("woff") +} + +@font-face { + font-family: Roboto; + font-style: normal; + font-weight: 500; + src: url("../font/roboto_normal.woff") format("woff") +} + +@font-face { + font-family: Roboto; + font-style: medium; + font-weight: 600; + src: url("../font/roboto_medium.woff") format("woff") +} + +@font-face { + font-family: Roboto; + font-style: bold; + font-weight: 700; + src: url("../font/roboto_bold.woff") format("woff") +} + +* { +font-family: Helvetica Neue, Roboto, Helvetica, Arial, sans-serif; +} + +:root { + /*--Standard CSS Values*/ + --modal: #434343; + --noroleusers: #ECEFF1; + --main: #000000; + --placeholder: #FFFFFF; + --sidebardivider: #90A4AE; + --leftsidebar: #171717; + --rightsidebar: #171717; + --header: #000000; + --chatmessage: #FFFFFF; + --discrim: #FFFFFF; + --chatbox: #2A97FA; +} \ No newline at end of file diff --git a/webapp/titanembeds/static/themes/MetroEdge/font/license.txt b/webapp/titanembeds/static/themes/MetroEdge/font/license.txt new file mode 100644 index 0000000..35d45bb --- /dev/null +++ b/webapp/titanembeds/static/themes/MetroEdge/font/license.txt @@ -0,0 +1,13 @@ +Copyright 2004 Christian Robertson + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/webapp/titanembeds/static/themes/MetroEdge/font/roboto_bold.woff b/webapp/titanembeds/static/themes/MetroEdge/font/roboto_bold.woff new file mode 100755 index 0000000..3d86753 Binary files /dev/null and b/webapp/titanembeds/static/themes/MetroEdge/font/roboto_bold.woff differ diff --git a/webapp/titanembeds/static/themes/MetroEdge/font/roboto_light.woff b/webapp/titanembeds/static/themes/MetroEdge/font/roboto_light.woff new file mode 100755 index 0000000..ec6bf57 Binary files /dev/null and b/webapp/titanembeds/static/themes/MetroEdge/font/roboto_light.woff differ diff --git a/webapp/titanembeds/static/themes/MetroEdge/font/roboto_medium.woff b/webapp/titanembeds/static/themes/MetroEdge/font/roboto_medium.woff new file mode 100755 index 0000000..d30a88a Binary files /dev/null and b/webapp/titanembeds/static/themes/MetroEdge/font/roboto_medium.woff differ diff --git a/webapp/titanembeds/static/themes/MetroEdge/font/roboto_normal.woff b/webapp/titanembeds/static/themes/MetroEdge/font/roboto_normal.woff new file mode 100755 index 0000000..464d206 Binary files /dev/null and b/webapp/titanembeds/static/themes/MetroEdge/font/roboto_normal.woff differ diff --git a/webapp/titanembeds/templates/embed.html.j2 b/webapp/titanembeds/templates/embed.html.j2 index c12d13f..08dfafc 100644 --- a/webapp/titanembeds/templates/embed.html.j2 +++ b/webapp/titanembeds/templates/embed.html.j2 @@ -157,6 +157,7 @@