<commit_before>﻿using Aurora.EffectsEngine;
using Aurora.Settings;
using Aurora.Settings.Layers;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;

namespace Aurora.Profiles.EliteDangerous.Layers
{
    public class EliteDangerousBackgroundHandlerProperties : LayerHandlerProperties2Color<EliteDangerousBackgroundHandlerProperties>
    {
        public Color? _DefaultColor { get; set; }

        public Color DefaultColor { get { return Logic._DefaultColor ?? _DefaultColor ?? Color.Empty; } }

        public EliteDangerousBackgroundHandlerProperties() : base() { }

        public EliteDangerousBackgroundHandlerProperties(bool assign_default = false) : base(assign_default) { }

        public override void Default()
        {
            base.Default();
            this._DefaultColor = Color.FromArgb(255, 60, 0, 0);
        }
    }
    public class EliteDangerousBackgroundLayerHandler : LayerHandler<EliteDangerousBackgroundHandlerProperties>
    {
        public EliteDangerousBackgroundLayerHandler() : base()
        {
            _ID = "EliteDangerousBackground";
        }

        protected override UserControl CreateControl()
        {
            return new Control_EliteDangerousBackgroundLayer(this);
        }

        public override EffectLayer Render(IGameState state)
        {
            EffectLayer bg_layer = new EffectLayer("Elite: Dangerous - Background");

            Color bg_color = this.Properties.DefaultColor;
            bg_layer.Fill(bg_color);

            return bg_layer;
        }

        public override void SetApplication(Application profile)
        {
            (Control as Control_EliteDangerousBackgroundLayer).SetProfile(profile);
            base.SetApplication(profile);
        }
    }
}
<commit_msg>Don't provide alpha for color since it's not needed<commit_after>﻿using Aurora.EffectsEngine;
using Aurora.Settings;
using Aurora.Settings.Layers;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;

namespace Aurora.Profiles.EliteDangerous.Layers
{
    public class EliteDangerousBackgroundHandlerProperties : LayerHandlerProperties2Color<EliteDangerousBackgroundHandlerProperties>
    {
        public Color? _DefaultColor { get; set; }

        public Color DefaultColor { get { return Logic._DefaultColor ?? _DefaultColor ?? Color.Empty; } }

        public EliteDangerousBackgroundHandlerProperties() : base() { }

        public EliteDangerousBackgroundHandlerProperties(bool assign_default = false) : base(assign_default) { }

        public override void Default()
        {
            base.Default();
            this._DefaultColor = Color.FromArgb(60, 0, 0);
        }
    }
    public class EliteDangerousBackgroundLayerHandler : LayerHandler<EliteDangerousBackgroundHandlerProperties>
    {
        public EliteDangerousBackgroundLayerHandler() : base()
        {
            _ID = "EliteDangerousBackground";
        }

        protected override UserControl CreateControl()
        {
            return new Control_EliteDangerousBackgroundLayer(this);
        }

        public override EffectLayer Render(IGameState state)
        {
            EffectLayer bg_layer = new EffectLayer("Elite: Dangerous - Background");

            Color bg_color = this.Properties.DefaultColor;
            bg_layer.Fill(bg_color);

            return bg_layer;
        }

        public override void SetApplication(Application profile)
        {
            (Control as Control_EliteDangerousBackgroundLayer).SetProfile(profile);
            base.SetApplication(profile);
        }
    }
}

{'fraction_non_alphanumeric': 0.07599895534082006, 'fraction_numerical': 0.0033951423348132673, 'mean_word_length': 3.006276150627615, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6208062', 'n_tokens_mistral': 1010, 'n_tokens_neox': 956, 'n_words': 209}