Skip to content

Commit

Permalink
Merge pull request #13795 from nextcloud/fix/noid/vue-lib-dark-theme
Browse files Browse the repository at this point in the history
fix: use useDarkTheme from nextcloud/vue library
  • Loading branch information
Antreesy authored Nov 17, 2024
2 parents 494ee1c + 20dafe1 commit aade00d
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 71 deletions.
2 changes: 1 addition & 1 deletion src/components/AvatarWrapper/AvatarWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ import { t } from '@nextcloud/l10n'

import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js'
import NcLoadingIcon from '@nextcloud/vue/dist/Components/NcLoadingIcon.js'
import { useIsDarkTheme } from '@nextcloud/vue/dist/Composables/useIsDarkTheme.js'

import { useIsDarkTheme } from '../../composables/useIsDarkTheme.ts'
import { ATTENDEE, AVATAR } from '../../constants.js'
import { getUserProxyAvatarOcsUrl } from '../../services/avatarService.ts'

Expand Down
2 changes: 1 addition & 1 deletion src/components/ConversationIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ import WebIcon from 'vue-material-design-icons/Web.vue'
import { t } from '@nextcloud/l10n'

import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js'
import { useIsDarkTheme } from '@nextcloud/vue/dist/Composables/useIsDarkTheme.js'

import { useIsDarkTheme } from '../composables/useIsDarkTheme.ts'
import { AVATAR, CONVERSATION } from '../constants.js'
import { getConversationAvatarOcsUrl } from '../services/avatarService.ts'
import { hasTalkFeature } from '../services/CapabilitiesManager.ts'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ import { generateUrl } from '@nextcloud/router'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import NcColorPicker from '@nextcloud/vue/dist/Components/NcColorPicker.js'
import NcEmojiPicker from '@nextcloud/vue/dist/Components/NcEmojiPicker.js'
import { useIsDarkTheme } from '@nextcloud/vue/dist/Composables/useIsDarkTheme.js'

import ConversationIcon from '../ConversationIcon.vue'

import { useIsDarkTheme } from '../../composables/useIsDarkTheme.ts'
import { AVATAR } from '../../constants.js'

// eslint-disable-next-line n/no-extraneous-import
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
import { loadState } from '@nextcloud/initial-state'

import NcUserBubble from '@nextcloud/vue/dist/Components/NcUserBubble.js'
import { useIsDarkTheme } from '@nextcloud/vue/dist/Composables/useIsDarkTheme.js'

import { useIsDarkTheme } from '../../../../../composables/useIsDarkTheme.ts'
import { getConversationAvatarOcsUrl, getUserProxyAvatarOcsUrl } from '../../../../../services/avatarService.ts'

export default {
Expand Down
2 changes: 1 addition & 1 deletion src/components/NewMessage/NewMessageAbsenceInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ import { t } from '@nextcloud/l10n'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import NcNoteCard from '@nextcloud/vue/dist/Components/NcNoteCard.js'
import NcUserBubble from '@nextcloud/vue/dist/Components/NcUserBubble.js'
import { useIsDarkTheme } from '@nextcloud/vue/dist/Composables/useIsDarkTheme.js'

import AvatarWrapper from '../AvatarWrapper/AvatarWrapper.vue'

import { useIsDarkTheme } from '../../composables/useIsDarkTheme.ts'
import { AVATAR } from '../../constants.js'

export default {
Expand Down
3 changes: 2 additions & 1 deletion src/composables/useChatMentions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import Vue, { computed, ref } from 'vue'
import { t } from '@nextcloud/l10n'
import { generateUrl } from '@nextcloud/router'

import { useIsDarkTheme } from './useIsDarkTheme.ts'
import { useIsDarkTheme } from '@nextcloud/vue/dist/Composables/useIsDarkTheme.js'

import { ATTENDEE } from '../constants.js'
import { getConversationAvatarOcsUrl, getUserProxyAvatarOcsUrl } from '../services/avatarService.ts'
import { searchPossibleMentions } from '../services/mentionsService.ts'
Expand Down
41 changes: 0 additions & 41 deletions src/composables/useIsDarkTheme.ts

This file was deleted.

24 changes: 0 additions & 24 deletions src/utils/isDarkTheme.ts

This file was deleted.

0 comments on commit aade00d

Please sign in to comment.