mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-05 18:04:33 +08:00
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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user