Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

refactor: update splashscreen bg colour #1696

Merged
merged 6 commits into from
Feb 27, 2020
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const createLoadingWindow = () => {
width: 800,
height: 600,
parent: mainWindow,
backgroundColor: '#f7fafb',
skipTaskbar: true,
frame: false,
autoHideMenuBar: true,
Expand Down Expand Up @@ -76,6 +77,7 @@ function createWindow () {
height: windowState.height,
x: windowState.x,
y: windowState.y,
backgroundColor: '#f7fafb',
center: true,
show: false,
webPreferences: {
Expand Down
6 changes: 4 additions & 2 deletions src/renderer/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
'background-image': background,
windows: isWindows,
mac: isMac,
linux: isLinux
linux: isLinux,
'bg-theme-page': isReady,
'bg-default-background': !isReady
}]"
class="App bg-theme-page text-theme-page-text font-sans"
class="App text-theme-page-text font-sans"
>
<div
v-if="!hasSeenIntroduction"
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/SplashScreen.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="absolute h-full w-full flex flex-col text-center select-none">
<div class="bg-default-background absolute h-full w-full flex flex-col text-center select-none">
<div class="flex flex-1 justify-center">
<div class="rounded-lg mb-3 p-5 bg-red m-auto">
<img
Expand Down
1 change: 1 addition & 0 deletions tailwind.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ View the full documentation at https://tailwindcss.com.

let colors = {
// Custom color variables
'default-background': '#f7fafb',
'theme-page': 'var(--theme-page)',
'theme-page-text': 'var(--theme-page-text)',
'theme-page-text-light': 'var(--theme-page-text-light)',
Expand Down