-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implemented theme service with 3 themes. * Added settings for theme selection. * Added seamless textures for themes. * Added new themes, fixed UWP NativeBrowserService. * Changed default theme * Version 2.3.0
- Loading branch information
1 parent
e6c51fd
commit bb5112e
Showing
59 changed files
with
657 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// Copyright © 2018 Martin Stoeckli. | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this | ||
// file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
using System; | ||
|
||
namespace SilentNotes.Models | ||
{ | ||
/// <summary> | ||
/// Describes a theme which controls the apperance of the application. | ||
/// </summary> | ||
public class ThemeModel | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="ThemeModel"/> class. | ||
/// </summary> | ||
/// <param name="id">See the <see cref="Id"/> property.</param> | ||
/// <param name="image">Sets the <see cref="Image"/> property.</param> | ||
/// <param name="imageTint">Sets the <see cref="ImageTint"/> property.</param> | ||
public ThemeModel(string id, string image, string imageTint) | ||
{ | ||
Id = id; | ||
Image = image; | ||
ImageTint = imageTint; | ||
} | ||
|
||
/// <summary> | ||
/// Gets the identificator of the theme, used for serialization. | ||
/// </summary> | ||
public string Id { get; private set; } | ||
|
||
/// <summary> | ||
/// Gets a relative file without path to the background texture image. | ||
/// Example: "cork.jpg" | ||
/// </summary> | ||
public string Image { get; private set; } | ||
|
||
/// <summary> | ||
/// Gets a hex color representing the <see cref="Image"/> to avoid flickering when | ||
/// navigating between pages. Example: "#00ff00" | ||
/// </summary> | ||
public string ImageTint { get; private set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// Copyright © 2018 Martin Stoeckli. | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this | ||
// file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
using System.Collections.Generic; | ||
using SilentNotes.Models; | ||
|
||
namespace SilentNotes.Services | ||
{ | ||
/// <summary> | ||
/// Can get informations about the current theme. | ||
/// </summary> | ||
public interface IThemeService | ||
{ | ||
/// <summary> | ||
/// Gets a list of all available themes. | ||
/// </summary> | ||
List<ThemeModel> Themes { get; } | ||
|
||
/// <summary> | ||
/// Gets the active theme selected by the user, or the default theme. | ||
/// </summary> | ||
/// <returns>Active theme.</returns> | ||
ThemeModel SelectedTheme { get; } | ||
|
||
/// <summary> | ||
/// Searches for the theme with a given <paramref name="themeId"/>. If no such theme can | ||
/// be found, the default theme is returned. | ||
/// </summary> | ||
/// <param name="themeId">Id of the theme to search for.</param> | ||
/// <returns>Found theme or default theme.</returns> | ||
ThemeModel FindThemeOrDefault(string themeId); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.