Skip to content

Commit c4cede6

Browse files
committed
fixup! feat: make summary thread similar to normal thread style
Signed-off-by: greta <[email protected]>
1 parent 25ea855 commit c4cede6

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

img/creation-gradient.svg

Lines changed: 11 additions & 0 deletions
Loading

src/components/ThreadSummary.vue

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="summary__header">
88
<div class="summary__header__actions">
99
<div class="summary__header__info">
10-
<NcIconSvgWrapper :size="20" :svg="creationGradient" name="creation" />
10+
<NcIconSvgWrapper :size="20" :svg="creation" name="creation" />
1111
<div class="summary__header__text">
1212
<div class="summary__header__title">
1313
{{ t('mail', 'Thread summary') }}
@@ -41,7 +41,7 @@
4141
</template>
4242
<script>
4343
import ArrowDownIcon from 'vue-material-design-icons/ArrowDown.vue'
44-
import creationGradient from '@mdi/svg/svg/creation-gradient.svg?raw'
44+
import creation from '../../img/creation-gradient.svg?raw'
4545
import NcButton from '@nextcloud/vue/components/NcButton'
4646
import NcIconSvgWrapper from '@nextcloud/vue/components/NcIconSvgWrapper'
4747
import LoadingSkeleton from './LoadingSkeleton.vue'
@@ -66,7 +66,7 @@ export default {
6666
},
6767
data() {
6868
return {
69-
creationGradient,
69+
creation,
7070
}
7171
},
7272
computed: {
@@ -164,5 +164,15 @@ export default {
164164
color: var(--color-text-maxcontrast);
165165
}
166166
}
167+
@media (prefers-color-scheme: dark) {
168+
body[data-theme-default] .summary {
169+
background: linear-gradient(#221D2B) padding-box,
170+
linear-gradient(125deg, #0C3A65 50%, #6204A5 125%) border-box;
171+
}
172+
}
173+
body[data-theme-dark] .summary {
174+
background: linear-gradient(#221D2B) padding-box,
175+
linear-gradient(125deg, #0C3A65 50%, #6204A5 125%) border-box;
176+
}
167177
168178
</style>

0 commit comments

Comments
 (0)