These are chat archives for AvaloniaUI/Avalonia

8th
Aug 2016
Nelson Carrillo
@nc4rrillo
Aug 08 2016 01:17
Closest thing you're going to get right now is the Render override on the Window I think , problem is its called at the beginning, so you'd need to catch the second invocation to know when a frame has been drawn
if we make changes to Avalonia, RenderQueueManager can be modified to do something on RenderFinished. Every Window is an IRenderRoot so it'd be really easy to know when a frame finished drawing
Nelson Carrillo
@nc4rrillo
Aug 08 2016 02:37
HN.png
check it out, my HN client I decided to write as an Avalonia sample
MitchellBot
@MitchellBot
Aug 08 2016 03:13
hello
I just found this project and I would like to contribute. I'd like to make sure I'm setting this up correctly. I believe for debugging what I need is a sandbox Avalonia application using a package source pointing to my locally compiled source of a forked Avalonia build. Correct?
Or is there a simpler way?
Nelson Carrillo
@nc4rrillo
Aug 08 2016 03:18
I believe thats the proper way, for quick iteration I just add a project to the Avalonia solution and set up project refs
MitchellBot
@MitchellBot
Aug 08 2016 03:18
Ohh, that makes sense
probably more sense actually
Thanks :D
Nelson Carrillo
@nc4rrillo
Aug 08 2016 03:19
sure np :-)
Andrew
@zezba9000
Aug 08 2016 03:34
FYI, when I go to add a new UserControl/Window it wants to do the old paml file ext and not xaml
Looks like under Linux/Android nothing is presented when using Skia :(
Nelson Carrillo
@nc4rrillo
Aug 08 2016 15:56
Not implemented yet I believe
iOS and Win32 it seems
Wiesław Šoltés
@wieslawsoltes
Aug 08 2016 15:57
Win32 works
I can not test iOS
Nelson Carrillo
@nc4rrillo
Aug 08 2016 16:00
Ya adding support for the other platforms shouldn't be too difficult though
James Walmsley
@jameswalmsley
Aug 08 2016 17:00
I'm currently trying to implement support for Linux at the moment in the Skia backend...
Been very busy the last days, and saw lots of you giving helpful advice. From tomorrow I will be able to spend a bit more time on it and start getting it really working.
danwalmsley
@danwalmsley
Aug 08 2016 17:09
@wieslawsoltes why did we need to use #ifdefs for skia?
Wiesław Šoltés
@wieslawsoltes
Aug 08 2016 17:09
No idea
danwalmsley
@danwalmsley
Aug 08 2016 17:09
do you know?
ah
no worries
Wiesław Šoltés
@wieslawsoltes
Aug 08 2016 17:10
but I got something on screen using ANdroid/Skia :)
danwalmsley
@danwalmsley
Aug 08 2016 17:10
cool
James Walmsley
@jameswalmsley
Aug 08 2016 17:10
Awesome...
Wiesław Šoltés
@wieslawsoltes
Aug 08 2016 17:10
just rectangle
danwalmsley
@danwalmsley
Aug 08 2016 17:10
why cant PCL projects reference other projects?
i.e. Avalonia.Skia
cant reference other stuff?
James Walmsley
@jameswalmsley
Aug 08 2016 17:10
@wieslawsoltes Do you have the code on github where I can see what you are doing for the Android integration
I think it will help me with attempting the linux version..
Wiesław Šoltés
@wieslawsoltes
Aug 08 2016 17:13
will push to my fork
danwalmsley
@danwalmsley
Aug 08 2016 17:14
@wieslawsoltes cheers
Wiesław Šoltés
@wieslawsoltes
Aug 08 2016 17:14
just need to get skbitmap drawing on android canvas
James Walmsley
@jameswalmsley
Aug 08 2016 17:14
Awesome :)
Nelson Carrillo
@nc4rrillo
Aug 08 2016 17:15
nice job
its so cool to be writing XAML apps on Linux :-)
danwalmsley
@danwalmsley
Aug 08 2016 17:17
its amazing
danwalmsley
@danwalmsley
Aug 08 2016 17:23
anyone got any idea how to make fonts clearer on skia?
they use antialiasing, but its nothing compared to cleartype
or will we have to just live with it?
Nelson Carrillo
@nc4rrillo
Aug 08 2016 17:25
not sure, I haven't run the Skia renderer yet. All this Skia talk makes me wanna compile my own and start hacking away though :smile:
danwalmsley
@danwalmsley
Aug 08 2016 17:27
you running on mac or Linux @nc4rrillo ?
Nelson Carrillo
@nc4rrillo
Aug 08 2016 17:29
Linux @danwalmsley
danwalmsley
@danwalmsley
Aug 08 2016 17:29
I should get my bro to do a PR with makefiles for building skiasharp!
for linux
Nelson Carrillo
@nc4rrillo
Aug 08 2016 17:30
just noticed you two were related, that's legit :-), and yeah it'd be awesome
danwalmsley
@danwalmsley
Aug 08 2016 17:30
coding twins ;)
Jeremy Koritzinsky
@jkoritzinsky
Aug 08 2016 18:36
Avalonia.Skia is a shared project, not a PCL. That's why the #ifdefs even work. Otherwise they wouldn't work at all.
danwalmsley
@danwalmsley
Aug 08 2016 19:00
@jkoritzinsky ah I was wondering what that was thanks
Gutemberg Ribeiro
@galvesribeiro
Aug 08 2016 19:44
Guys just a suggestion...
I'm not sure if Shared Projects are a reliable way if you plan to be crossplat and at some build build it on VSCode in other platforms
remember that Shared Projects a Visual Studio thing
Gutemberg Ribeiro
@galvesribeiro
Aug 08 2016 19:50
I would rather use Bite & Switch approach to share code in that case
Wiesław Šoltés
@wieslawsoltes
Aug 08 2016 20:02
2016-08-08_22-02-04.png
Small step forward, got something on screen Avalonia/Android/Skia
Jeremy Koritzinsky
@jkoritzinsky
Aug 08 2016 20:10
Hey once we get Skia working on Android and Linux, can we work on refactoring Skia references out of the iOS windowing system? I want to add a Quartz rendering backend soon.
Steven Kirk
@grokys
Aug 08 2016 20:39
nice work on all this skia stuff all
@jkoritzinsky that sounds like a good idea
James Walmsley
@jameswalmsley
Aug 08 2016 20:44
@wieslawsoltes Thanks for the git push! Looking at the code now, and hopefully I can make a similar screenshot on Linux...
@nc4rrillo Which version of Ubuntu do you have? I can send you the native library I built, I'm on 16.04... although it should work for most distributions ...
I will make a patch with proper build files etc when I get time..
For now I took a very manual approace as the build system for SkiaSharp was pretty cryptic.
Nelson Carrillo
@nc4rrillo
Aug 08 2016 20:49
yeah I have 16.04
James Walmsley
@jameswalmsley
Aug 08 2016 20:49
And building is kinda boring...
Ok cool... I'll just push it to a git repo for you.
To be honest I have no idea if the libary will actually work, but I assume so as it seems to do stuff.
Nelson Carrillo
@nc4rrillo
Aug 08 2016 20:50
ha, yeah waiting for compile times and stuff is the worst :X kick off a build and grab a coffee. just like at work
I have no idea if anything I ever do will work, I've been kinda winging it through life :D
James Walmsley
@jameswalmsley
Aug 08 2016 20:51
It doesn't take so long, just I compiled each object by hand and linked manually "just for kicks" to get something that works...
I like to assume nothing will work, and then its quite nice when it springs into action...
I just pushed... Use the native-builds/src/libSkiaSharp.so from my SkiaSharp tree for Ubuntu 16.04 x64
James Walmsley
@jameswalmsley
Aug 08 2016 21:04
I think I linked the native library against this Shared library... So you will need to copy that into your SkiaSharp load path.
Thats the .net assembly that will load those other libraries once they are in the right place
I started the XamlTestApplication with:
MONO_DEBUG_LEVEL=debug mono ./XamlTestApplication.exe
Nelson Carrillo
@nc4rrillo
Aug 08 2016 21:14
Okay I will take a look when I get home! Thanks!
Wiesław Šoltés
@wieslawsoltes
Aug 08 2016 21:48
Made some progress with Skia/Android (more here #677), but got stuck trying wire together android view with avalonia Window :(
Darnell Williams
@Seeker1437
Aug 08 2016 21:51
@jameswalmsley @danwalmsley
In a bit Ill be home and I will be able to help you guys with the Skia stuff
Also im going to give #624 another shot
Darnell Williams
@Seeker1437
Aug 08 2016 21:57
Once the screen API is built, I'd need someone with rendering experience to do the anti-clipping code for popups (where they can be pushed to the second screen if more than half would render off screen)