added dark-mode

pull/49/head
A1Gard 3 months ago
parent 47a624a590
commit bc3b4f4d61

@ -40,6 +40,12 @@ class GfxSeeder extends Seeder
'system'=>'1', 'system'=>'1',
'value'=> '#111111' 'value'=> '#111111'
], ],
[
'key'=>'dark',
'label'=>'Theme mode',
'system'=>'1',
'value'=> '0'
],
[ [
'key'=>'border-radius', 'key'=>'border-radius',
'label'=>'Border radius', 'label'=>'Border radius',

@ -17,6 +17,12 @@
{{ titles[i] }} {{ titles[i] }}
</label> </label>
<br> <br>
<template v-if="i == 'dark'">
<select class="form-control" v-model="values[i]">
<option value="0"> Light mode </option>
<option value="1"> Dark mode </option>
</select>
</template>
<template v-if="i == 'border-radius'"> <template v-if="i == 'border-radius'">
<border-radios-input v-model="values[i]"></border-radios-input> <border-radios-input v-model="values[i]"></border-radios-input>
</template> </template>

@ -5,12 +5,12 @@
/* Track */ /* Track */
::-webkit-scrollbar-track { ::-webkit-scrollbar-track {
background: var(--xshop-background);; background: var(--xshop-background);
} }
/* Handle */ /* Handle */
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
background: var(--xshop-primary);; background: var(--xshop-primary);
} }
/* Handle on hover */ /* Handle on hover */

@ -1,5 +1,5 @@
<!doctype html> <!doctype html>
<html lang="{{config('app.locale')}}" @if(langIsRTL(config('app.locale'))) dir="rtl" @else dir="ltr" @endif > <html lang="{{config('app.locale')}}" @if(langIsRTL(config('app.locale'))) dir="rtl" @else dir="ltr" @endif @if(gfx()['dark'] == 1) data-bs-theme="dark" @endif >
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" <meta name="viewport"

Loading…
Cancel
Save