mirror of
https://github.com/greenshot/greenshot
synced 2025-07-31 04:00:13 -07:00
Code quality changes, and added the possibility to set the amount of colors for the Quantizer.
This commit is contained in:
parent
3b1560390b
commit
77a92d98c3
92 changed files with 690 additions and 653 deletions
|
@ -28,6 +28,7 @@ using log4net.Appender;
|
|||
using log4net.Config;
|
||||
using log4net.Repository.Hierarchy;
|
||||
using System;
|
||||
using log4net.Util;
|
||||
|
||||
namespace GreenshotPlugin.Core {
|
||||
/// <summary>
|
||||
|
@ -98,8 +99,8 @@ namespace GreenshotPlugin.Core {
|
|||
/// <summary>
|
||||
/// A simple helper class to support the logging to the AppData location
|
||||
/// </summary>
|
||||
public class SpecialFolderPatternConverter : log4net.Util.PatternConverter {
|
||||
override protected void Convert(System.IO.TextWriter writer, object state) {
|
||||
public class SpecialFolderPatternConverter : PatternConverter {
|
||||
override protected void Convert(TextWriter writer, object state) {
|
||||
Environment.SpecialFolder specialFolder = (Environment.SpecialFolder)Enum.Parse(typeof(Environment.SpecialFolder), base.Option, true);
|
||||
writer.Write(Environment.GetFolderPath(specialFolder));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue