b140299e50
Co-authored-by: mrange <marten_range@hotmail.com> I loved the pixel shaders in #7058, but that PR needed a bit of polish to be ready for ingestion. This PR is almost _exactly_ that PR, with some small changes. * It adds a new pre-profile setting `"experimental.pixelShaderPath"`, which lets the user set a pixel shader to use with the Terminal. - CHANGED FROM #7058: It does _not_ add any built-in shaders. - CHANGED FROM #7058: it will _override_ `experimental.retroTerminalEffect` * It adds a bunch of sample shaders in `samples/shaders`. Included: - A NOP shader as a base to build from. - An "invert" shader that inverts the colors, as a simple example - An "grayscale" shader that converts all colors to grayscale, as a simple example - An "raster bars" shader that draws some colored bars on the screen with a drop shadow, as a more involved example - The original retro terminal effects, as a more involved example - It also includes a broken shader, as an example of what heppens when the shader fails to compile - CHANGED FROM #7058: It does _not_ add the "retroII" shader we were all worried about. * When a shader fails to be found or fails to compile, we'll display an error dialog to the user with a relevant error message. - CHANGED FROM #7058: Originally, #7058 would display "error bars" on the screen. I've removed that, and had the Terminal disable the shader entirely then. * Renames the `toggleRetroEffect` action to `toggleShaderEffect`. (`toggleRetroEffect` is now an alias to `toggleShaderEffect`). This action will turn the shader OR the retro effects on/off. `toggleShaderEffect` works the way you'd expect it to, but the mental math on _how_ is a little weird. The logic is basically: ``` useShader = shaderEffectsEnabled ? (pixelShaderProvided ? pixelShader : (retroEffectEnabled ? retroEffect : null ) ) : null ``` and `toggleShaderEffect` toggles `shaderEffectsEnabled`. * If you've got both a shader and retro enabled, `toggleShaderEffect` will toggle between the shader on/off. * If you've got a shader and retro disabled, `toggleShaderEffect` will toggle between the shader on/off. References #6191 References #7058 Closes #7013 Closes #3930 "Add setting to retro terminal shader to control blur radius, color" Closes #3929 "Add setting to retro terminal shader to enable drawing scanlines" - At this point, just roll your own version of the shader.
201 lines
9.7 KiB
XML
201 lines
9.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<root>
|
|
<!--
|
|
Microsoft ResX Schema
|
|
|
|
Version 2.0
|
|
|
|
The primary goals of this format is to allow a simple XML format
|
|
that is mostly human readable. The generation and parsing of the
|
|
various data types are done through the TypeConverter classes
|
|
associated with the data types.
|
|
|
|
Example:
|
|
|
|
... ado.net/XML headers & schema ...
|
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
|
<resheader name="version">2.0</resheader>
|
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
|
</data>
|
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
|
<comment>This is a comment</comment>
|
|
</data>
|
|
|
|
There are any number of "resheader" rows that contain simple
|
|
name/value pairs.
|
|
|
|
Each data row contains a name, and value. The row also contains a
|
|
type or mimetype. Type corresponds to a .NET class that support
|
|
text/value conversion through the TypeConverter architecture.
|
|
Classes that don't support this are serialized and stored with the
|
|
mimetype set.
|
|
|
|
The mimetype is used for serialized objects, and tells the
|
|
ResXResourceReader how to depersist the object. This is currently not
|
|
extensible. For a given mimetype the value must be set accordingly:
|
|
|
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
|
that the ResXResourceWriter will generate, however the reader can
|
|
read any of the formats listed below.
|
|
|
|
mimetype: application/x-microsoft.net.object.binary.base64
|
|
value : The object must be serialized with
|
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
|
: and then encoded with base64 encoding.
|
|
|
|
mimetype: application/x-microsoft.net.object.soap.base64
|
|
value : The object must be serialized with
|
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
|
: and then encoded with base64 encoding.
|
|
|
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
|
value : The object must be serialized into a byte array
|
|
: using a System.ComponentModel.TypeConverter
|
|
: and then encoded with base64 encoding.
|
|
-->
|
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
|
<xsd:element name="root" msdata:IsDataSet="true">
|
|
<xsd:complexType>
|
|
<xsd:choice maxOccurs="unbounded">
|
|
<xsd:element name="metadata">
|
|
<xsd:complexType>
|
|
<xsd:sequence>
|
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
|
</xsd:sequence>
|
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
|
<xsd:attribute name="type" type="xsd:string" />
|
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
|
<xsd:attribute ref="xml:space" />
|
|
</xsd:complexType>
|
|
</xsd:element>
|
|
<xsd:element name="assembly">
|
|
<xsd:complexType>
|
|
<xsd:attribute name="alias" type="xsd:string" />
|
|
<xsd:attribute name="name" type="xsd:string" />
|
|
</xsd:complexType>
|
|
</xsd:element>
|
|
<xsd:element name="data">
|
|
<xsd:complexType>
|
|
<xsd:sequence>
|
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
|
</xsd:sequence>
|
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
|
<xsd:attribute ref="xml:space" />
|
|
</xsd:complexType>
|
|
</xsd:element>
|
|
<xsd:element name="resheader">
|
|
<xsd:complexType>
|
|
<xsd:sequence>
|
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
|
</xsd:sequence>
|
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
|
</xsd:complexType>
|
|
</xsd:element>
|
|
</xsd:choice>
|
|
</xsd:complexType>
|
|
</xsd:element>
|
|
</xsd:schema>
|
|
<resheader name="resmimetype">
|
|
<value>text/microsoft-resx</value>
|
|
</resheader>
|
|
<resheader name="version">
|
|
<value>2.0</value>
|
|
</resheader>
|
|
<resheader name="reader">
|
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
|
</resheader>
|
|
<resheader name="writer">
|
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
|
</resheader>
|
|
<data name="SearchBox_CaseSensitivity.ToolTipService.ToolTip" xml:space="preserve">
|
|
<value>Match Case</value>
|
|
<comment>The tooltip text for the case sensitivity button on the search box control.</comment>
|
|
</data>
|
|
<data name="SearchBox_Close.ToolTipService.ToolTip" xml:space="preserve">
|
|
<value>Close</value>
|
|
<comment>The tooltip text for the close button on the search box control.</comment>
|
|
</data>
|
|
<data name="SearchBox_SearchBackwards.ToolTipService.ToolTip" xml:space="preserve">
|
|
<value>Find Up</value>
|
|
<comment>The tooltip text for the search backward button.</comment>
|
|
</data>
|
|
<data name="SearchBox_SearchForwards.ToolTipService.ToolTip" xml:space="preserve">
|
|
<value>Find Down</value>
|
|
<comment>The tooltip text for the search forward button.</comment>
|
|
</data>
|
|
<data name="SearchBox_TextBox.PlaceholderText" xml:space="preserve">
|
|
<value>Find...</value>
|
|
<comment>The placeholder text in the search box control.</comment>
|
|
</data>
|
|
<data name="DragFileCaption" xml:space="preserve">
|
|
<value>Paste path to file</value>
|
|
<comment>The displayed caption for dragging a file onto a terminal.</comment>
|
|
</data>
|
|
<data name="DragTextCaption" xml:space="preserve">
|
|
<value>Paste text</value>
|
|
<comment>The displayed caption for dragging text onto a terminal.</comment>
|
|
</data>
|
|
<data name="SearchBox_CaseSensitivity.[using:Windows.UI.Xaml.Automation]AutomationProperties.Name" xml:space="preserve">
|
|
<value>Case Sensitivity</value>
|
|
<comment>The name of the case sensitivity button on the search box control for accessibility.</comment>
|
|
</data>
|
|
<data name="SearchBox_SearchForwards.[using:Windows.UI.Xaml.Automation]AutomationProperties.Name" xml:space="preserve">
|
|
<value>Search Forward</value>
|
|
<comment>The name of the search forward button for accessibility.</comment>
|
|
</data>
|
|
<data name="SearchBox_SearchBackwards.[using:Windows.UI.Xaml.Automation]AutomationProperties.Name" xml:space="preserve">
|
|
<value>Search Backward</value>
|
|
<comment>The name of the search backward button for accessibility.</comment>
|
|
</data>
|
|
<data name="SearchBox_TextBox.[using:Windows.UI.Xaml.Automation]AutomationProperties.Name" xml:space="preserve">
|
|
<value>Search Text</value>
|
|
<comment>The name of the text box on the search box control for accessibility.</comment>
|
|
</data>
|
|
<data name="TerminalControl_ControlType" xml:space="preserve">
|
|
<value>terminal</value>
|
|
<comment>The type of control that the terminal adheres to. Used to identify how a user can interact with this kind of control.</comment>
|
|
</data>
|
|
<data name="SearchBox_Close.[using:Windows.UI.Xaml.Automation]AutomationProperties.Name" xml:space="preserve">
|
|
<value>Close Search Box</value>
|
|
<comment>The explanation of the search box close button used by Narrator and other screen readers.</comment>
|
|
</data>
|
|
<data name="TermControl_RendererFailedTextBlock.Text" xml:space="preserve">
|
|
<value>This terminal has encountered an issue with the graphics driver and it could not recover in time. It has been suspended.</value>
|
|
</data>
|
|
<data name="TermControl_RendererRetryButton.Content" xml:space="preserve">
|
|
<value>Resume</value>
|
|
</data>
|
|
<data name="HowToOpenRun.Text" xml:space="preserve">
|
|
<value>Ctrl+Click to follow link</value>
|
|
</data>
|
|
<data name="NoticeFontNotFound" xml:space="preserve">
|
|
<value>Unable to find the selected font "{0}".
|
|
|
|
"{1}" has been selected instead.
|
|
|
|
Please either install the missing font or choose another one.</value>
|
|
<comment>0 and 1 are names of fonts provided by the user and system respectively.</comment>
|
|
</data>
|
|
<data name="PixelShaderNotFound" xml:space="preserve">
|
|
<value>Unable to find the provided shader "{0}".</value>
|
|
<comment>{0} is a file name</comment>
|
|
</data>
|
|
<data name="PixelShaderCompileFailed" xml:space="preserve">
|
|
<value>Unable to compile the specified pixel shader.</value>
|
|
</data>
|
|
<data name="UnexpectedRendererError" xml:space="preserve">
|
|
<value>Renderer encountered an unexpected error: {0}</value>
|
|
<comment>{0} is an error code.</comment>
|
|
</data>
|
|
</root>
|