Updated migration to carry across more colors, updated export
Updated export to use link color for link. Export will now copy primary color to link color options for stable upgrades.
This commit is contained in:
parent
f42ff59b43
commit
7751022c66
|
@ -31,6 +31,13 @@ class CopyColorSettingsForDarkMode extends Migration
|
|||
$newSetting = (array) $setting;
|
||||
$newSetting['setting_key'] .= '-dark';
|
||||
$newData[] = $newSetting;
|
||||
|
||||
if ($newSetting['setting_key'] === 'app-color-dark') {
|
||||
$newSetting['setting_key'] = 'link-color';
|
||||
$newData[] = $newSetting;
|
||||
$newSetting['setting_key'] = 'link-color-dark';
|
||||
$newData[] = $newSetting;
|
||||
}
|
||||
}
|
||||
|
||||
DB::table('settings')->insert($newData);
|
||||
|
@ -45,6 +52,8 @@ class CopyColorSettingsForDarkMode extends Migration
|
|||
{
|
||||
$colorSettings = [
|
||||
'app-color-dark',
|
||||
'link-color',
|
||||
'link-color-dark',
|
||||
'app-color-light-dark',
|
||||
'bookshelf-color-dark',
|
||||
'book-color-dark',
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<style>
|
||||
/* Patches for CSS variable colors within PDF exports */
|
||||
a {
|
||||
color: {{ setting('app-color') }};
|
||||
color: {{ setting('app-link') }};
|
||||
}
|
||||
|
||||
blockquote {
|
||||
|
|
Loading…
Reference in New Issue