Skip to content

Commit a573b1d

Browse files
author
Guillaume Chau
committed
fix(loading animation): dark theme background
1 parent 3f70260 commit a573b1d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

packages/app-frontend/src/AppConnecting.vue

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<div
33
id="app"
44
class="app-connecting"
5+
:class="`theme-${theme}`"
56
>
67
<div class="animation-outer">
78
<div class="animation-inner">
@@ -15,6 +16,18 @@
1516
</div>
1617
</template>
1718

19+
<script>
20+
import { isChrome } from '@utils/env'
21+
22+
export default {
23+
data () {
24+
return {
25+
theme: isChrome ? chrome.devtools.panels.themeName : 'light'
26+
}
27+
}
28+
}
29+
</script>
30+
1831
<style lang="stylus" scoped>
1932
.app-connecting
2033
width 100%
@@ -23,6 +36,9 @@
2336
align-items center
2437
justify-content center
2538
39+
&.theme-dark
40+
background $vue-ui-color-almost-black
41+
2642
.animation-inner
2743
padding 28px 24px 16px
2844
background rgba($vue-ui-color-primary, .1)

0 commit comments

Comments
 (0)