These are chat archives for AvaloniaUI/Avalonia

1st
Nov 2018
ahopper
@ahopper
Nov 01 2018 09:40
@romeritto that sounds fun, you could make the emojis briefly turn to sad faces as you delete characters:) To get lots of ide goodness easily you could try adding your language to AvalonStudio https://github.com/VitalElement/AvalonStudio
Roman Sobkuliak
@romeritto
Nov 01 2018 10:13

@ahopper @Gillibald Thank you for replying.
It's a bummer that this is not currently possible in Avalonia. Since I have to start working on this project right away I can't afford to wait until christmas :/

@ahopper Thanks for AvalonStudio suggestion, it looks good. However, everything in there is (and should be) text-oriented. My language is image-only. I think the easiest way out for me is to build something from scratch.

Do you please know about a decent alternative to Avalonia where this can be done? I've come across Eto and Electron, but I didn't invest time into exploring them.

PS: I like the idea of turning the emojis into sad faces on deletion :D I put it on my list.

ahopper
@ahopper
Nov 01 2018 10:17
the work @Gillibald is doing will allow the standard TextBoxes to work with emojis with no effort as long as your emojis are in a font, so you would get your editor with almost no work. It is quite possible to write an editor control in avalonia (as it stands) using images .
Benedikt Schroeder
@Gillibald
Nov 01 2018 12:50
TextBoxes currenty don't handle Emojis so well in terms of selection, deletion etc. That will change soon.
I currently don't have much time to work on that so it will take some time. Editing text will be much easier after we merge my work in. This is also the starting point for FlowDocument but that's currently not on my list. After the text layout stuff is finished I will focus on smaller features and bug fixes in general.
Benedikt Schroeder
@Gillibald
Nov 01 2018 13:15
One feature that I look forward to is the ability to define glyph runs in xaml and having a font api to enumerate fonts etc.
Looks like I am the text guy :) Still fun to explore what is involved in text rendering.
Steven Kirk
@grokys
Nov 01 2018 13:53
i'm glad you're learning all that stuff @Gillibald because from what i've read about it, I don't want to know ;)
Wiesław Šoltés
@wieslawsoltes
Nov 01 2018 15:30
AvaloniaThemeEditor (2018-11-01).png
Avalonia Theme Editor (https://github.com/wieslawsoltes/ThemeEditor) now uses themes itself :smile:
Here is quick video: https://youtu.be/iuzrZbMwR6o
I have fixed and improved a lot of things in the theme editor recently, it should be pretty usable now.
Andrey Kunchev
@donandren
Nov 01 2018 15:56
@wieslawsoltes this theme editor look so cool, great job
Nikita Tsukanov
@kekekeks
Nov 01 2018 16:13
I wonder if one day we'll have something like Blend
danwalmsley
@danwalmsley
Nov 01 2018 17:57
@/all who was it that was investigating implementing effects like blurs and shadows?
Nikita Tsukanov
@kekekeks
Nov 01 2018 18:19
I've made a shot 2 years ago
It was very basic and only worked for highlighting layers
There was a more recent PR
But it was working with Skia in a weird way
Roman Sobkuliak
@romeritto
Nov 01 2018 18:22

@ahopper @Gillibald Thanks for your answers. I don't want to use emojis from fonts. I plan to use raster images. This makes the language much more entertaining. I.e. one can then arbitrarily map keywords to images. Imagine the possibilities...

BTW links to Window and User control on this page don't work: http://avaloniaui.net/docs/quickstart/create-new-project

Nikita Tsukanov
@kekekeks
Nov 01 2018 18:22
That experimental PR uses 2 layers per-visual and also lacks support for ImmediateRenderer
I think the API should be Push/Pop-like
With raster images you have to implement your own text editor control
It could be done with VirtualizingStackPanel and some StackPanels used as rows, but you still need some kind of cursor management
Roman Sobkuliak
@romeritto
Nov 01 2018 18:24
I know. I want to make it very basic -- navigation, zoom, selection and copy-pasting
Nikita Tsukanov
@kekekeks
Nov 01 2018 18:24
We don't currently support custom clipboard formats
But I don't think it will be needed for your app
Roman Sobkuliak
@romeritto
Nov 01 2018 18:25
the format will be a text
something like: "lpar;rpar;" for images for parentheses
Aleksey
@Karlyshev
Nov 01 2018 19:48
Hello, could you help with some question: who is responsible for building nuget packages? Could I request to build of packages for my branch if anything?
Wiesław Šoltés
@wieslawsoltes
Nov 01 2018 20:15
They are built in CI server
You can build them yourself by using cake build script
Jeremy Koritzinsky
@jkoritzinsky
Nov 01 2018 20:28
Also running dotnet pack should allow you to build them as well.
Benedikt Schroeder
@Gillibald
Nov 01 2018 20:35
Could it be possible to redirect all drawing calls of a specific region to a RenderTargetBitmap and make effects possible that way? Every control that has an effect defined would need to go through that process. An effect would take an bitmap input and would produce an image that gets drawn via DrawImage. Maybe we get this for free by changing the way layers are currently implemented. When you have a dirty region we currently create a layer with a size of the whole scene but only need to update some small portion. Just some naive thoughts.
Aleksey
@Karlyshev
Nov 01 2018 20:56
Understood. Thanks.