2019-04-29 23:34:09 +00:00
|
|
|
<!--
|
|
|
|
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.
|
|
|
|
-->
|
|
|
|
|
2019-07-20 20:28:10 +00:00
|
|
|
<Application x:Class="SourceGen.App"
|
2019-04-29 23:34:09 +00:00
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2019-07-20 20:28:10 +00:00
|
|
|
xmlns:local="clr-namespace:SourceGen"
|
2024-07-04 23:04:33 +00:00
|
|
|
xmlns:common="clr-namespace:CommonWPF;assembly=CommonWPF"
|
2019-06-21 22:17:04 +00:00
|
|
|
StartupUri="WpfGui/MainWindow.xaml">
|
2019-04-29 23:34:09 +00:00
|
|
|
<Application.Resources>
|
2019-05-09 01:00:17 +00:00
|
|
|
<ResourceDictionary>
|
2024-07-04 23:04:33 +00:00
|
|
|
<common:InverseBooleanConverter x:Key="InvertBool"/>
|
|
|
|
|
2019-05-09 01:00:17 +00:00
|
|
|
<FontFamily x:Key="GeneralMonoFont">Consolas</FontFamily>
|
2019-05-02 22:45:40 +00:00
|
|
|
|
2019-12-04 23:50:19 +00:00
|
|
|
<!-- gradient background for bitmap images -->
|
2019-12-03 22:34:45 +00:00
|
|
|
<LinearGradientBrush x:Key="BitmapBackground" StartPoint="0,0" EndPoint="1,1">
|
|
|
|
<GradientStop Color="#707070" Offset="0.0"/>
|
|
|
|
<GradientStop Color="#f0f0f0" Offset="1.0"/>
|
|
|
|
</LinearGradientBrush>
|
|
|
|
|
2019-12-04 23:50:19 +00:00
|
|
|
<!-- checkerboard background for bitmap images -->
|
2019-12-03 22:34:45 +00:00
|
|
|
<!-- https://stackoverflow.com/a/47049174/294248 -->
|
2019-12-04 23:50:19 +00:00
|
|
|
<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) -->
|
2019-12-03 22:34:45 +00:00
|
|
|
<DrawingBrush.Drawing>
|
|
|
|
<GeometryDrawing Geometry="M0,0 H1 V1 H2 V2 H1 V1 H0Z" Brush="LightGray"/>
|
|
|
|
</DrawingBrush.Drawing>
|
|
|
|
</DrawingBrush>
|
2019-12-04 23:50:19 +00:00
|
|
|
<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>
|
2019-12-03 22:34:45 +00:00
|
|
|
|
2019-05-02 22:45:40 +00:00
|
|
|
<ResourceDictionary.MergedDictionaries>
|
|
|
|
<ResourceDictionary Source="Res/Strings.xaml"/>
|
|
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
|
</ResourceDictionary>
|
2019-04-29 23:34:09 +00:00
|
|
|
</Application.Resources>
|
|
|
|
</Application>
|