Merge pull request 'light mode' (#4) from light_mode into master
Reviewed-on: http://git.djledda.de/djledda/arne-drums/pulls/4
This commit was merged in pull request #4.
This commit is contained in:
1535
package-lock.json
generated
1535
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -32,6 +32,7 @@
|
|||||||
"eslint": "^8.40.0",
|
"eslint": "^8.40.0",
|
||||||
"eslint-plugin-vue": "^9.11.0",
|
"eslint-plugin-vue": "^9.11.0",
|
||||||
"typescript": "^5.4.3",
|
"typescript": "^5.4.3",
|
||||||
"vite": "^5.2.7"
|
"vite": "^5.2.7",
|
||||||
|
"vite-plugin-vue-devtools": "^7.6.7"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -82,6 +82,12 @@
|
|||||||
@click="uploadDialog?.showModal()">
|
@click="uploadDialog?.showModal()">
|
||||||
<icon icon-name="upload" color="var(--color-ui-neutral-dark)" />
|
<icon icon-name="upload" color="var(--color-ui-neutral-dark)" />
|
||||||
</div>
|
</div>
|
||||||
|
<div
|
||||||
|
class="quick-access-button"
|
||||||
|
title="Switch theme"
|
||||||
|
@click="toggleTheme">
|
||||||
|
<icon icon-name="list" color="var(--color-ui-neutral-dark)" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<toolbox class="toolbox" />
|
<toolbox class="toolbox" />
|
||||||
</div>
|
</div>
|
||||||
@@ -122,6 +128,10 @@
|
|||||||
const currentOrientation = ref<'horizontal' | 'vertical'>('horizontal');
|
const currentOrientation = ref<'horizontal' | 'vertical'>('horizontal');
|
||||||
const sidebarActive = ref(false);
|
const sidebarActive = ref(false);
|
||||||
|
|
||||||
|
function toggleTheme() {
|
||||||
|
document.body.classList.toggle("dark");
|
||||||
|
}
|
||||||
|
|
||||||
const appStateStore = useAppStateStore();
|
const appStateStore = useAppStateStore();
|
||||||
const beatStore = useBeatStore();
|
const beatStore = useBeatStore();
|
||||||
|
|
||||||
|
|||||||
@@ -39,8 +39,8 @@
|
|||||||
width: 2em;
|
width: 2em;
|
||||||
height: 2em;
|
height: 2em;
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
background-color: #464646;
|
background-color: var(--color-box);
|
||||||
border-color: #464646;
|
border-color: var(--color-box);
|
||||||
border-width: 0.1em 0.1em 0.1em 0.1em;
|
border-width: 0.1em 0.1em 0.1em 0.1em;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@@ -49,8 +49,8 @@
|
|||||||
|
|
||||||
&.highlightable {
|
&.highlightable {
|
||||||
&:hover {
|
&:hover {
|
||||||
border-color: #5f5f5f;
|
border-color: var(--color-box-hover);
|
||||||
background-color: #5f5f5f;
|
background-color: var(--color-box-hover);
|
||||||
transition: none;
|
transition: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,38 @@
|
|||||||
:root {
|
html, body {
|
||||||
--color-ui-accent: #FF0000;
|
position: relative;
|
||||||
--color-ui-accent-hover: #FF0000;
|
width: 100%;
|
||||||
--color-ui-accent-active: #930000;
|
height: 100%;
|
||||||
|
|
||||||
|
--color-ui-accent: #00b3ba;
|
||||||
|
--color-ui-accent-hover: #00c1c9;
|
||||||
|
--color-ui-accent-active: #008e93;
|
||||||
|
--color-ui-neutral-light: #fdfdfe;
|
||||||
|
--color-ui-neutral-light-hover: #fdfdfe;
|
||||||
|
--color-ui-neutral-light-active: #fdfdfe;
|
||||||
|
--color-ui-neutral-dark: #adadad;
|
||||||
|
--color-ui-neutral-dark-hover: #a1a1a1;
|
||||||
|
--color-ui-neutral-dark-active: #c1c1c1;
|
||||||
|
--color-bg-light: #e0e0e0;
|
||||||
|
--color-bg-medium: #fff;
|
||||||
|
--color-bg-dark: #fff;
|
||||||
|
--color-p-light: #282828;
|
||||||
|
--color-p-light-hover: #fafafa;
|
||||||
|
--color-p-light-active: #fafafa;
|
||||||
|
--color-p-dark: #282828;
|
||||||
|
--color-p-dark-hover: #464646;
|
||||||
|
--color-p-dark-active: #464646;
|
||||||
|
--color-title-light: #282828;
|
||||||
|
--color-title-dark: #282828;
|
||||||
|
--color-box-dark: #464646;
|
||||||
|
--color-box-dark-border: #464646;
|
||||||
|
--color-box-hover-dark: #5f5f5f;
|
||||||
|
--color-box-hover-dark-border: #5f5f5f;
|
||||||
|
--color-box: #e0e0e0;
|
||||||
|
--color-box-hover: #f1f1f1;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark {
|
||||||
--color-ui-neutral-light: #fdfdfe;
|
--color-ui-neutral-light: #fdfdfe;
|
||||||
--color-ui-neutral-light-hover: #fdfdfe;
|
--color-ui-neutral-light-hover: #fdfdfe;
|
||||||
--color-ui-neutral-light-active: #fdfdfe;
|
--color-ui-neutral-light-active: #fdfdfe;
|
||||||
@@ -19,12 +50,8 @@
|
|||||||
--color-p-dark-active: #464646;
|
--color-p-dark-active: #464646;
|
||||||
--color-title-light: #fafafa;
|
--color-title-light: #fafafa;
|
||||||
--color-title-dark: #282828;
|
--color-title-dark: #282828;
|
||||||
}
|
--color-box: #464646;
|
||||||
|
--color-box-hover: #5f5f5f;
|
||||||
html, body {
|
|
||||||
position: relative;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#dropdowns {
|
#dropdowns {
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { fileURLToPath, URL } from 'node:url';
|
import { fileURLToPath, URL } from 'node:url';
|
||||||
import { defineConfig } from 'vite';
|
import { defineConfig } from 'vite';
|
||||||
import vue from '@vitejs/plugin-vue';
|
import vue from '@vitejs/plugin-vue';
|
||||||
|
import vueDevTools from 'vite-plugin-vue-devtools'
|
||||||
import devEnv from './dev.env';
|
import devEnv from './dev.env';
|
||||||
import prodEnv from './prod.env';
|
import prodEnv from './prod.env';
|
||||||
|
|
||||||
@@ -8,6 +9,9 @@ const { DEVELOPMENT, BASE_URL } = process.env.DEV ? devEnv : prodEnv;
|
|||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [
|
plugins: [
|
||||||
|
vueDevTools({
|
||||||
|
launchEditor: 'webstorm',
|
||||||
|
}),
|
||||||
vue(),
|
vue(),
|
||||||
],
|
],
|
||||||
resolve: {
|
resolve: {
|
||||||
|
|||||||
Reference in New Issue
Block a user