Ejemplo n.º 1
0
        private void OnEditorOptionsChanged(EditorOptions options)
        {
            if (options.Interface.OutputLogTimestampsFormat == _timestampsFormats &&
                options.Interface.OutputLogShowLogType == _showLogType &&
                _output.DefaultStyle.Font == options.Interface.OutputLogTextFont &&
                _output.DefaultStyle.Color == options.Interface.OutputLogTextColor &&
                _output.DefaultStyle.ShadowColor == options.Interface.OutputLogTextShadowColor &&
                _output.DefaultStyle.ShadowOffset == options.Interface.OutputLogTextShadowOffset)
            {
                return;
            }

            _output.DefaultStyle = new TextBlockStyle
            {
                Font                    = options.Interface.OutputLogTextFont,
                Color                   = options.Interface.OutputLogTextColor,
                ShadowColor             = options.Interface.OutputLogTextShadowColor,
                ShadowOffset            = options.Interface.OutputLogTextShadowOffset,
                BackgroundSelectedBrush = new SolidColorBrush(Style.Current.BackgroundSelected),
            };
            _output.WarningStyle       = _output.DefaultStyle;
            _output.WarningStyle.Color = Color.Yellow;
            _output.ErrorStyle         = _output.DefaultStyle;
            _output.ErrorStyle.Color   = Color.Red;

            _timestampsFormats = options.Interface.OutputLogTimestampsFormat;
            _showLogType       = options.Interface.OutputLogShowLogType;

            Refresh();
        }
Ejemplo n.º 2
0
 private void OnEditorOptionsChanged(EditorOptions options)
 {
     _timestampsFormats = options.Interface.DebugLogTimestampsFormat;
 }