Skip to content

Commit

Permalink
Tweak defaults to align with Showcode colour theme
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Jan 3, 2024
1 parent e27be83 commit 94c2870
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion composables/useBackgrounds.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { computed } from '@nuxtjs/composition-api';
import useSettingsStore from './useSettingsStore';
import defaultBackgrounds from '~/data/backgrounds';

export const DEFAULT_BACKGROUND = 'candy';
export const DEFAULT_BACKGROUND = 'midnight';

export default function () {
const settings = useSettingsStore();
Expand Down
6 changes: 3 additions & 3 deletions composables/usePreferencesStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const defaults = {
editorFontSize: 14,
editorLineHeight: 1.5,
editorFontLigatures: false,
editorFontFamily: 'font-mono',
editorFontFamily: 'font-mono-lisa',
editorLanguage: 'php',
editorOrientation: 'left',
editorLightTheme: 'vs-light',
Expand All @@ -18,8 +18,8 @@ export const defaults = {
previewFontSize: 16,
previewLineHeight: 20,
previewCodeBlurStrength: 1,
previewFontFamily: 'font-mono',
previewThemeName: 'github-light',
previewFontFamily: 'font-mono-lisa',
previewThemeName: 'github-dark',

previewLockToWindow: false,
previewLockToWindowPaddingX: 0,
Expand Down
8 changes: 4 additions & 4 deletions composables/useSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ export default function (defaults = {}) {

const settingsDefaults = {
title: '',
width: 400,
height: 200,
width: 500,
height: 300,
position: 'center',
landscape: false,
showHeader: true,
showHeaderAccent: true,
showHeaderAccent: false,
showTitle: true,
showMenu: true,
showDividers: true,
showColorMenu: false,
showLineNumbers: false,
background: DEFAULT_BACKGROUND,

themeType: 'light',
themeType: 'dark',
themeOpacity: 1.0,
themeName: preferences.previewThemeName,
themeBackground: '#fff',
Expand Down
2 changes: 1 addition & 1 deletion composables/useShiki.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function () {
code: [],
languages: [],
opacity: 100,
theme: 'github-light',
theme: 'github-dark',
});

$queue.push(async () => {
Expand Down

0 comments on commit 94c2870

Please sign in to comment.