* The default environment is set as static, so it can be
updated by GitExtensions with theme colors.
Any overrides in the actual themes would still be overriding the default
environment colors (the theme overrides were recently removed though).
* Make it possible to set colors as adaptable, to control if they should
be adapted for the themes or not.
Highlight colors hardcoded in the interface or in .xshd files
(unless they are system colors)
should generally be adapted, but colors in themes are likely to be
set to the intended color.
Remove the environment highlight color for all languages.
For most colors, the value was the same in the defaults already,
a few colors were updated in the defaults instead.
Therefore, this only have minor impact on languages without specific
strategy
This improves themeing too, system colors do not have to be adapted.
The following was slightly changed:
VRuler E0E0E5 -> ControlLight (e3e3e3)
CaretMarker f0f0f1 -> MenuBar(f0f0f0)
A few formats were using other than the default for a few colors,
like LineNumberControl in .rc "Resource" files and
SpaceMarkers, TabMarkers, InvalidLines in .hx Haxe files.
* Default to an Encoding without BOM when BOM marker was not found
* Use explicit types instead of var
* Update Project/Src/Util/FileReader.cs
Co-authored-by: Igor Velikorossov <RussKie@users.noreply.github.com>
---------
Co-authored-by: Igor Velikorossov <RussKie@users.noreply.github.com>
* adds some missing keywords
* changes group of some keywords (class, interface, record) to be color consistent
* colors type name definition
* highlight method definition and calls (like in VisualStudio)
* highlight statement keywords differently (like in VisualStudio)
by checking the value to see if it fits between the `Minimum` and the `Maximum`
before trying to set it
Fixes https://github.com/gitextensions/gitextensions/issues/7836
I can't reproduce it but it seems that I got it when I click unintentionally
on a commit in the revision grid when the grid was loading.
- do not use GetDataPresent(Type t) as this causes System.InvalidCastException when the IDataObject is an improperly set-up COM object [StackOverflow suggests making the underlying class serializable?]
- allow text drops from other GitExtensions processes to be pasted into the current process's text editor