Ability to set composer default font (#287)
* Added ability to set Composer font * Added missing translations and refactoring * Remove unused methods * Small fixes
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
using System.Collections.Generic;
|
||||
using Wino.Core.Domain.Enums;
|
||||
using Wino.Core.Domain.Models.Reader;
|
||||
|
||||
namespace Wino.Core.Domain.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// Service to access available fonts.
|
||||
/// </summary>
|
||||
public interface IFontService
|
||||
{
|
||||
List<ReaderFontModel> GetReaderFonts();
|
||||
ReaderFontModel GetCurrentReaderFont();
|
||||
int GetCurrentReaderFontSize();
|
||||
|
||||
void ChangeReaderFont(ReaderFont font);
|
||||
void ChangeReaderFontSize(int size);
|
||||
/// <summary>
|
||||
/// Get available fonts. Default + installed system fonts.
|
||||
/// Fonts initialized only once. To refresh fonts, restart the application.
|
||||
/// </summary>
|
||||
List<string> GetFonts();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -122,15 +122,25 @@ namespace Wino.Core.Domain.Interfaces
|
||||
AppLanguage CurrentLanguage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Setting: Display font for the mail reader. Not composer.
|
||||
/// Setting: Display font for the mail reader.
|
||||
/// </summary>
|
||||
ReaderFont ReaderFont { get; set; }
|
||||
string ReaderFont { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Setting: Font size for the mail reader. Not composer.
|
||||
/// Setting: Font size for the mail reader.
|
||||
/// </summary>
|
||||
int ReaderFontSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Setting: Display font for the mail composer.
|
||||
/// </summary>
|
||||
string ComposerFont { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Setting: Font size for the mail composer.
|
||||
/// </summary>
|
||||
int ComposerFontSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Setting: Whether the navigation pane is opened on the last session or not.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user