mirror of
https://github.com/fadden/6502bench.git
synced 2024-12-01 22:50:35 +00:00
83da0d952c
Added a "fancy" flag to MultiLineComment. If set, we will use formatting commands embedded in the text itself. The max width pop-up and "boxed" flag will be ignored in favor of width and boxing directives. (See issue #111.) The current "fancy" formatter is just a placeholder that folds lines every 10 characters. Removed FormattedMlcCache (added two changes back). Caching the rendered string list in the MLC itself is simpler and more efficient than having a separate cache, and it works for Notes as well. Added anchors for more comments in the 20090 test.
62 lines
3.0 KiB
XML
62 lines
3.0 KiB
XML
<!--
|
|
Copyright 2019 faddenSoft
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<Application x:Class="SourceGen.App"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:local="clr-namespace:SourceGen"
|
|
xmlns:common="clr-namespace:CommonWPF;assembly=CommonWPF"
|
|
StartupUri="WpfGui/MainWindow.xaml">
|
|
<Application.Resources>
|
|
<ResourceDictionary>
|
|
<common:InverseBooleanConverter x:Key="InvertBool"/>
|
|
|
|
<FontFamily x:Key="GeneralMonoFont">Consolas</FontFamily>
|
|
|
|
<!-- gradient background for bitmap images -->
|
|
<LinearGradientBrush x:Key="BitmapBackground" StartPoint="0,0" EndPoint="1,1">
|
|
<GradientStop Color="#707070" Offset="0.0"/>
|
|
<GradientStop Color="#f0f0f0" Offset="1.0"/>
|
|
</LinearGradientBrush>
|
|
|
|
<!-- checkerboard background for bitmap images -->
|
|
<!-- https://stackoverflow.com/a/47049174/294248 -->
|
|
<DrawingBrush x:Key="CheckerBackgroundHG" TileMode="Tile" Viewport="0,0,16,16" ViewportUnits="Absolute">
|
|
<!-- draw two squares, leaving the other two untouched (probably window bkgnd color) -->
|
|
<DrawingBrush.Drawing>
|
|
<GeometryDrawing Geometry="M0,0 H1 V1 H2 V2 H1 V1 H0Z" Brush="LightGray"/>
|
|
</DrawingBrush.Drawing>
|
|
</DrawingBrush>
|
|
<DrawingBrush x:Key="CheckerBackground" TileMode="Tile" Viewport="0,0,16,16" ViewportUnits="Absolute">
|
|
<DrawingBrush.Drawing>
|
|
<DrawingGroup>
|
|
<DrawingGroup.Children>
|
|
<!-- not sure if it's better to do this with overdraw (background
|
|
then two squares) or by explicitly drawing four squares -->
|
|
<GeometryDrawing Geometry="M0,0 H2 V2 H0Z" Brush="#e8e8e8"/>
|
|
<GeometryDrawing Geometry="M0,0 H1 V1 H2 V2 H1 V1 H0Z" Brush="#f0f0f0"/>
|
|
<!--<GeometryDrawing Geometry="M0,2 H1 V1 H2 V0 H1 V1 H0Z" Brush="#e8e8e8"/>-->
|
|
</DrawingGroup.Children>
|
|
</DrawingGroup>
|
|
</DrawingBrush.Drawing>
|
|
</DrawingBrush>
|
|
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="Res/Strings.xaml"/>
|
|
</ResourceDictionary.MergedDictionaries>
|
|
</ResourceDictionary>
|
|
</Application.Resources>
|
|
</Application>
|