-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Live preview while editing AXAML files #150
Open
tomlm
wants to merge
57
commits into
main
Choose a base branch
from
tomlm/preview
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+3,339
−284
Open
Changes from 55 commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
907352f
previewer seems to work pretty well
tomlm fe1e2aa
things seem to work cross platform, this is a snapshot of that state.
tomlm d42b9fa
add ConsolePreview control
tomlm 7c31f74
fix bug in overlapping char
tomlm c568f85
things seem to work except for tabcontrol
tomlm b3798b6
move and rename previewhost applications into tools folder
tomlm 490afd6
rewrote consolonia.previewer as Consolonia.PreviewHost
tomlm 1702e20
split consolepanel out into seperate assembly
tomlm ebdc854
add material and fluent themes
tomlm 3b2708a
* move pixelbuffer to consolewindow so that rendertarget is clean
tomlm 9741315
move the design mode styles into ConsoloniaApplication.
tomlm 8253d3f
Add readme and fix look up bug
tomlm c26b1ef
FINALLY found the multi-char disappearing char bug!
tomlm 79d82a9
make emoji test transparent
tomlm 9bb7324
Added DrawContextImplTests testing Boxes, rectangles, text drawing.
tomlm acfcafd
make drawtext static
tomlm e6de66c
fix char position bug
tomlm cd7d6ec
remove unused assemblies
tomlm 8f94585
Delete src/Consolonia.Core/Text/ESC.cs
tomlm 48b5697
add clscompilant flags
tomlm 4b5b39d
Merge branch 'tomlm/preview' of https://github.com/jinek/Consolonia i…
tomlm fb42590
delete
tomlm 99e5717
add Esc back
tomlm 2ba6bec
fix color
tomlm 2f93ed4
mark avalonia host as clscompliant(false)
tomlm 1eba984
Imrpoved performance of PreviewControl, it was shutting down on every…
tomlm 33dbcfa
perf improvements
tomlm 0ed26ee
fix unit test
tomlm 09c3de6
more lint
tomlm 0a7ea66
more lint
tomlm 29b3970
more lint more lint more lint
tomlm d036446
fix datacontext for views
tomlm 7e99d74
cleanup x:DataType
tomlm 275da5c
so much lint
tomlm c5dec7d
omg I'm spending more time with nit picky bullshit lints then it took…
tomlm 0c388a5
i just can't even.
tomlm 759a7b7
I finally understand what it's bitchinga bout.
tomlm 140e11b
Automated JetBrains cleanup
github-actions[bot] bf5f0a8
Automated JetBrains cleanup
github-actions[bot] 84ece5b
coderabbit review feedback
tomlm d91316e
merge changes from bot plus some cleanup
tomlm b042010
Automated JetBrains cleanup
github-actions[bot] db3900f
Update src/Consolonia.Core/Infrastructure/ConsoloniaApplication.cs
tomlm fdcb77b
Update src/Tests/Consolonia.Core.Tests/DrawingContextImplTests.cs
tomlm d57e3bd
switched back to readonly struct for pixel classes, I have serializat…
tomlm d9f5f3d
Merge branch 'tomlm/preview' of https://github.com/jinek/Consolonia i…
tomlm 3403705
Update src/Tests/Consolonia.Core.Tests/DrawingContextImplTests.cs
tomlm a1dd72a
blarg, coderabbit broke release build
tomlm f39c232
Merge branch 'tomlm/preview' of https://github.com/jinek/Consolonia i…
tomlm 04cbbe7
cleanup for struct change
tomlm 67e29c3
revert lines to be middle of pixel based so drawline aligns with draw…
tomlm 8976e1d
fix lint error
tomlm 4408182
linty
tomlm e073ab7
this seems like overkill
tomlm 1f07aee
Automated JetBrains cleanup
github-actions[bot] b04dd60
changes from jinek code review feedback
tomlm e6c07f9
remove pragma
tomlm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/Consolonia.Core/Drawing/PixelBufferImplementation/ColorConverter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System; | ||
using Avalonia.Media; | ||
using Newtonsoft.Json; | ||
|
||
namespace Consolonia.Core.Drawing.PixelBufferImplementation | ||
{ | ||
public class ColorConverter : JsonConverter<Color> | ||
{ | ||
public override Color ReadJson(JsonReader reader, Type objectType, Color existingValue, bool hasExistingValue, | ||
JsonSerializer serializer) | ||
{ | ||
if (Color.TryParse(reader.Value!.ToString(), out Color color)) | ||
return color; | ||
return Colors.Transparent; | ||
} | ||
tomlm marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
public override void WriteJson(JsonWriter writer, Color value, JsonSerializer serializer) | ||
{ | ||
writer.WriteValue(value!.ToString()); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
src/Consolonia.Core/Drawing/PixelBufferImplementation/ISymbol.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cast was better? with "as" there is no difference between null and different type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the linter was bitching about it.