Fixed a bug where book reader had poorly colored text/inputs from a recent bootstrap update.
This commit is contained in:
parent
e3fdc38fd6
commit
99bfe23aea
4 changed files with 7 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import {ThemeProvider} from "./site-theme";
|
||||
|
||||
/**
|
||||
* Theme for the the book reader contents
|
||||
* Theme for the book reader contents
|
||||
*/
|
||||
export interface BookTheme {
|
||||
name: string;
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@ export const BookPaperTheme = `
|
|||
--btn-disabled-bg-color: #343a40;
|
||||
--btn-disabled-text-color: #efefef;
|
||||
--btn-disabled-border-color: #6c757d;
|
||||
--btn-outline-primary-text-color: black;
|
||||
|
||||
/* Inputs */
|
||||
--input-bg-color: white;
|
||||
|
|
@ -89,6 +90,8 @@ export const BookPaperTheme = `
|
|||
|
||||
/* Custom variables */
|
||||
--theme-bg-color: #fff3c9;
|
||||
|
||||
--bs-secondary-bg: darkgrey;
|
||||
}
|
||||
|
||||
.reader-container {
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@ export const BookWhiteTheme = `
|
|||
--btn-disabled-bg-color: #343a40;
|
||||
--btn-disabled-text-color: #efefef;
|
||||
--btn-disabled-border-color: #6c757d;
|
||||
--btn-outline-primary-text-color: black;
|
||||
|
||||
/* Inputs */
|
||||
--input-bg-color: white;
|
||||
|
|
|
|||
|
|
@ -297,6 +297,7 @@ export class ManageReadingProfilesComponent implements OnInit {
|
|||
addNew() {
|
||||
const defaultProfile = this.readingProfiles.find(f => f.kind === ReadingProfileKind.Default);
|
||||
this.selectedProfile = {...defaultProfile!};
|
||||
this.selectedProfile.kind = ReadingProfileKind.User;
|
||||
this.selectedProfile.id = 0;
|
||||
this.selectedProfile.name = "New Profile #" + (this.readingProfiles.length + 1);
|
||||
this.setupForm();
|
||||
|
|
@ -313,7 +314,6 @@ export class ManageReadingProfilesComponent implements OnInit {
|
|||
protected readonly readerModes = readingModes;
|
||||
protected readonly bookWritingStyles = bookWritingStyles;
|
||||
protected readonly pdfScrollModes = pdfScrollModes;
|
||||
|
||||
protected readonly TabId = TabId;
|
||||
protected readonly ReadingProfileKind = ReadingProfileKind;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue