Skip to content

Commit

Permalink
style: add theme images
Browse files Browse the repository at this point in the history
  • Loading branch information
caro3801 committed Oct 3, 2024
1 parent 4ee1ea6 commit 5aa038c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
Binary file added src/assets/images/illustrations/theme-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/illustrations/theme-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const imageClassList = computed(() => {
<phosphor-icon :name="icon" />
<span class="text-nowrap">{{ label }}</span></span
>
<image-mode :image-class="imageClassList">
<image-mode :image-class="imageClassList" width="200px">
<image-mode-source :src="thumbnail" />
</image-mode>
</div>
Expand Down
6 changes: 4 additions & 2 deletions src/views/Settings/SettingsViewAppearance.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import { useI18n } from 'vue-i18n'
import { ref, onBeforeMount, computed, watch } from 'vue'
import themeLight from '@/assets/images/illustrations/theme-light.png'
import themeDark from '@/assets/images/illustrations/theme-dark.png'
import SettingsAppearanceRadioGroup from '@/components/Settings/SettingsAppearance/SettingsAppearanceRadioGroup'
import SettingsViewLayout from '@/views/Settings/SettingsViewLayout'
Expand All @@ -27,13 +29,13 @@ function retrieveThemes() {
icon: 'sun',
name: DEFAULT_THEME,
label: 'Light mode',
thumbnail: 'https://placehold.co/169x95'
thumbnail: themeLight
},
{
icon: 'moon',
name: 'dark',
label: 'Dark mode',
thumbnail: 'https://placehold.co/169x95'
thumbnail: themeDark
}
]
}
Expand Down

0 comments on commit 5aa038c

Please sign in to comment.