From 750a381ea73a1ce4cb08698513f097d832bf0a32 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 21 Nov 2019 17:45:21 -0800 Subject: [PATCH] Adding vaporwave dark theme. - Fixes #345 --- docker/dev/deploy.sh | 3 +++ docker/prod/docker-compose.yml | 2 +- ui/assets/css/themes/_variables.vaporwave-light.scss | 3 +-- ui/src/utils.ts | 1 + 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docker/dev/deploy.sh b/docker/dev/deploy.sh index a46b41c9d..90094e213 100755 --- a/docker/dev/deploy.sh +++ b/docker/dev/deploy.sh @@ -6,12 +6,15 @@ new_tag="$1" git tag $new_tag # Setting the version on the front end +cd ../../ echo "export let version: string = '$(git describe --tags)';" > "ui/src/version.ts" git add "ui/src/version.ts" # Setting the version on the backend echo "pub const VERSION: &'static str = \"$(git describe --tags)\";" > "server/src/version.rs" git add "server/src/version.rs" +cd docker/dev + # Changing the docker-compose prod sed -i "s/dessalines\/lemmy:.*/dessalines\/lemmy:$new_tag/" ../prod/docker-compose.yml git add ../prod/docker-compose.yml diff --git a/docker/prod/docker-compose.yml b/docker/prod/docker-compose.yml index 2e5ee2b1e..6d7ca1d15 100644 --- a/docker/prod/docker-compose.yml +++ b/docker/prod/docker-compose.yml @@ -11,7 +11,7 @@ services: - lemmy_db:/var/lib/postgresql/data restart: always lemmy: - image: dessalines/lemmy:v0.4.0.3 + image: dessalines/lemmy:v0.4.0.5 ports: - "127.0.0.1:8536:8536" environment: diff --git a/ui/assets/css/themes/_variables.vaporwave-light.scss b/ui/assets/css/themes/_variables.vaporwave-light.scss index 3d2527a0e..9278b0919 100644 --- a/ui/assets/css/themes/_variables.vaporwave-light.scss +++ b/ui/assets/css/themes/_variables.vaporwave-light.scss @@ -1,4 +1,3 @@ - $blue: #01cdfe; $indigo: #b967ff; $purple: #b967ff; @@ -23,4 +22,4 @@ $text-muted: $gray-500; $primary: $pink; $navbar-light-hover-color: rgba($primary, .7); $light: darken($gray-100,1.5); -$font-family-sans-serif: "Lucida Console", Monaco, monospace; \ No newline at end of file +$font-family-sans-serif: "Lucida Console", Monaco, monospace; diff --git a/ui/src/utils.ts b/ui/src/utils.ts index b63f0cab1..18144dde0 100644 --- a/ui/src/utils.ts +++ b/ui/src/utils.ts @@ -287,6 +287,7 @@ export const themes = [ 'journal', 'sketchy', 'vaporwave', + 'vaporwave-dark', ]; export function setTheme(theme: string = 'darkly') {