added classic light and classic dark
This commit is contained in:
parent
4e22439ad4
commit
54ff3cedbb
|
|
@ -130,7 +130,7 @@ class SettingController extends Controller
|
||||||
public function change_theme(Request $request)
|
public function change_theme(Request $request)
|
||||||
{
|
{
|
||||||
$request->validateWithBag('theme', [
|
$request->validateWithBag('theme', [
|
||||||
'theme_change' => ['required', 'string', 'in:1,2,3'],
|
'theme_change' => ['required', 'string', 'in:1,2,3,4,5'],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$userSetting = Auth::user()->settings;
|
$userSetting = Auth::user()->settings;
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
html {
|
||||||
|
background: url('../img/animated.png');
|
||||||
|
background-color: rgb(49, 107, 223);
|
||||||
|
background-position: center bottom;
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
background-attachment: fixed;
|
||||||
|
animation-name: animatedbackground;
|
||||||
|
animation-duration: 50s;
|
||||||
|
animation-iteration-count: infinite;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
html {
|
||||||
|
background: url('../img/animated.png');
|
||||||
|
background-color: rgb(1, 17, 48);
|
||||||
|
background-position: center bottom;
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
background-attachment: fixed;
|
||||||
|
animation-name: animatedbackground;
|
||||||
|
animation-duration: 50s;
|
||||||
|
animation-iteration-count: infinite;
|
||||||
|
}
|
||||||
|
|
@ -18,6 +18,15 @@
|
||||||
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}">
|
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}">
|
||||||
@auth
|
@auth
|
||||||
@switch (Auth::user()->settings->theme)
|
@switch (Auth::user()->settings->theme)
|
||||||
|
@case(5)
|
||||||
|
<link href="{{ asset('css/app.css?id=' . Str::random(8)) }}" rel="stylesheet">
|
||||||
|
<link href="{{ asset('css/appdark.css?id=' . Str::random(8)) }}" rel="stylesheet">
|
||||||
|
<link href="{{ asset('css/classicappdark.css?id=' . Str::random(8)) }}" rel="stylesheet">
|
||||||
|
@break
|
||||||
|
@case(4)
|
||||||
|
<link href="{{ asset('css/app.css?id=' . Str::random(8)) }}" rel="stylesheet">
|
||||||
|
<link href="{{ asset('css/classicapp.css?id=' . Str::random(8)) }}" rel="stylesheet">
|
||||||
|
@break
|
||||||
@case(3)
|
@case(3)
|
||||||
<link href="{{ asset('css/app.css?id=' . Str::random(8)) }}" rel="stylesheet">
|
<link href="{{ asset('css/app.css?id=' . Str::random(8)) }}" rel="stylesheet">
|
||||||
<link href="{{ asset('css/appdark.css?id=' . Str::random(8)) }}" rel="stylesheet">
|
<link href="{{ asset('css/appdark.css?id=' . Str::random(8)) }}" rel="stylesheet">
|
||||||
|
|
|
||||||
|
|
@ -170,6 +170,12 @@
|
||||||
<h3>Theme</h3>
|
<h3>Theme</h3>
|
||||||
<p>Selected Theme: @php
|
<p>Selected Theme: @php
|
||||||
switch (Auth::user()->settings->theme) {
|
switch (Auth::user()->settings->theme) {
|
||||||
|
case 5:
|
||||||
|
echo 'Classic Dark';
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
echo 'Classic Light';
|
||||||
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
echo 'Dark';
|
echo 'Dark';
|
||||||
break;
|
break;
|
||||||
|
|
@ -188,6 +194,8 @@
|
||||||
<option value="1">Light</option>
|
<option value="1">Light</option>
|
||||||
<option value="2">2018</option>
|
<option value="2">2018</option>
|
||||||
<option value="3">Dark</option>
|
<option value="3">Dark</option>
|
||||||
|
<option value="4">Classic Light</option>
|
||||||
|
<option value="5">Classic Dark</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<button style="width: max-content;" class="greenbutton" type="submit">Save</button>
|
<button style="width: max-content;" class="greenbutton" type="submit">Save</button>
|
||||||
|
|
@ -207,7 +215,7 @@
|
||||||
<p>These buttons can fully delete data. Use with caution!</p>
|
<p>These buttons can fully delete data. Use with caution!</p>
|
||||||
<p>
|
<p>
|
||||||
<button class="redbutton" disabled>Delete Account</button>
|
<button class="redbutton" disabled>Delete Account</button>
|
||||||
<button class="redbutton" disabled>Delete All Places</button>
|
<button class="redbutton" disabled>Delete All Assets (Places and</button>
|
||||||
<button class="redbutton" disabled>Delete All Avatar Items</button>
|
<button class="redbutton" disabled>Delete All Avatar Items</button>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue