PDF Reader Settings, New Reading Modes, and lots of fixes (#2828)
Co-authored-by: Elry <144011449+ElryWeeb@users.noreply.github.com> Co-authored-by: AlienHack <the4got10@windowslive.com> Co-authored-by: William Brockhus <pickeringw@gmail.com> Co-authored-by: Shivam Amin <xShivam.Amin@gmail.com>
This commit is contained in:
parent
f22f30b5a9
commit
2bde0ac82a
55 changed files with 4410 additions and 439 deletions
21
API/Entities/Enums/UserPreferences/PdfBookMode.cs
Normal file
21
API/Entities/Enums/UserPreferences/PdfBookMode.cs
Normal file
|
@ -0,0 +1,21 @@
|
|||
using System.ComponentModel;
|
||||
|
||||
namespace API.Entities.Enums.UserPreferences;
|
||||
|
||||
public enum PdfLayoutMode
|
||||
{
|
||||
/// <summary>
|
||||
/// Multiple pages render stacked (normal pdf experience)
|
||||
/// </summary>
|
||||
[Description("Multiple")]
|
||||
Multiple = 0,
|
||||
// [Description("Single")]
|
||||
// Single = 1,
|
||||
/// <summary>
|
||||
/// A book mode where page turns are animated and layout is side-by-side
|
||||
/// </summary>
|
||||
[Description("Book")]
|
||||
Book = 2,
|
||||
// [Description("Infinite Scroll")]
|
||||
// InfiniteScroll = 3
|
||||
}
|
21
API/Entities/Enums/UserPreferences/PdfScrollMode.cs
Normal file
21
API/Entities/Enums/UserPreferences/PdfScrollMode.cs
Normal file
|
@ -0,0 +1,21 @@
|
|||
using System.ComponentModel;
|
||||
|
||||
namespace API.Entities.Enums.UserPreferences;
|
||||
|
||||
/// <summary>
|
||||
/// Enum values match PdfViewer's enums
|
||||
/// </summary>
|
||||
public enum PdfScrollMode
|
||||
{
|
||||
[Description("Vertical")]
|
||||
Vertical = 0,
|
||||
[Description("Horizontal")]
|
||||
Horizontal = 1,
|
||||
// [Description("Wrapped")]
|
||||
// Wrapped = 2,
|
||||
/// <summary>
|
||||
/// Single page view (tap to pagninate)
|
||||
/// </summary>
|
||||
[Description("Page")]
|
||||
Page = 3
|
||||
}
|
13
API/Entities/Enums/UserPreferences/PdfSpreadMode.cs
Normal file
13
API/Entities/Enums/UserPreferences/PdfSpreadMode.cs
Normal file
|
@ -0,0 +1,13 @@
|
|||
using System.ComponentModel;
|
||||
|
||||
namespace API.Entities.Enums.UserPreferences;
|
||||
|
||||
public enum PdfSpreadMode
|
||||
{
|
||||
[Description("None")]
|
||||
None = 0,
|
||||
[Description("Odd")]
|
||||
Odd = 1,
|
||||
[Description("Even")]
|
||||
Even = 2
|
||||
}
|
11
API/Entities/Enums/UserPreferences/PdfTheme.cs
Normal file
11
API/Entities/Enums/UserPreferences/PdfTheme.cs
Normal file
|
@ -0,0 +1,11 @@
|
|||
using System.ComponentModel;
|
||||
|
||||
namespace API.Entities.Enums.UserPreferences;
|
||||
|
||||
public enum PdfTheme
|
||||
{
|
||||
[Description("Dark")]
|
||||
Dark = 0,
|
||||
[Description("Light")]
|
||||
Light = 1
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue