diff --git a/assets/title-dark.svg b/assets/title-dark.svg new file mode 100644 index 000000000..10139024a --- /dev/null +++ b/assets/title-dark.svg @@ -0,0 +1,140 @@ + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + diff --git a/src/client/app/desktop/views/pages/welcome.vue b/src/client/app/desktop/views/pages/welcome.vue index fb98f6974..bb3653f40 100644 --- a/src/client/app/desktop/views/pages/welcome.vue +++ b/src/client/app/desktop/views/pages/welcome.vue @@ -1,7 +1,11 @@ + + %fa:moon% + %fa:R moon% + - + %i18n:@signup-button%%i18n:@signin-button% @@ -44,6 +48,9 @@ export default Vue.extend({ }, signin() { this.$modal.show('signin'); + }, + dark() { + (this as any)._updateDarkmode_(!(this as any)._darkmode_); } } }); @@ -59,18 +66,25 @@ export default Vue.extend({
%i18n:@signup-button%%i18n:@signin-button%