Support Chrome's theme-color
This commit is contained in:
parent
ad7f885235
commit
e9c326e61e
@ -8,6 +8,7 @@
|
||||
<!-- Tell the browser to be responsive to screen width -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
@include('common.theme-color')
|
||||
<!-- App Styles -->
|
||||
@include('common.dependencies.style')
|
||||
|
||||
|
@ -7,6 +7,7 @@
|
||||
@include('common.favicon')
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
@include('common.theme-color')
|
||||
@include('common.seo-meta-tags')
|
||||
<!-- App Styles -->
|
||||
@include('common.dependencies.style')
|
||||
|
13
resources/views/common/theme-color.blade.php
Normal file
13
resources/views/common/theme-color.blade.php
Normal file
@ -0,0 +1,13 @@
|
||||
@php
|
||||
$colors = [
|
||||
'blue' => '#3c8dbc',
|
||||
'yellow' => '#f39c12',
|
||||
'green' => '#00a65a',
|
||||
'purple' => '#605ca8',
|
||||
'red' => '#dd4b39',
|
||||
'black' => '#ffffff',
|
||||
];
|
||||
preg_match('/skin-(\w+)?(?:-light)?/', option('color_scheme'), $matches);
|
||||
@endphp
|
||||
|
||||
<meta name="theme-color" content="{{ $colors[$matches[1]] }}">
|
@ -8,6 +8,7 @@
|
||||
<!-- Tell the browser to be responsive to screen width -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
@include('common.theme-color')
|
||||
@include('common.seo-meta-tags')
|
||||
<!-- App Styles -->
|
||||
@include('common.dependencies.style')
|
||||
|
@ -8,6 +8,7 @@
|
||||
<!-- Tell the browser to be responsive to screen width -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
@include('common.theme-color')
|
||||
<!-- App Styles -->
|
||||
@include('common.dependencies.style')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user