These are chat archives for AvaloniaUI/Avalonia

8th
Dec 2015
danwalmsley
@danwalmsley
Dec 08 2015 12:11
@kekekeks thanks for pointer on WeakSubscriber manager... was extremely simple to use in the end. :D
danwalmsley
@danwalmsley
Dec 08 2015 12:53
Have I found a bug in formatted text implementation for linux
Im calling setforeground brush multiple times on the same formatted text
on windows if this happens it override the previous calls brush
on linux... for some reason it doesnt override?
Nikita Tsukanov
@kekekeks
Dec 08 2015 12:54
Well, our cairo backend lacks maintainer
and Skia backend currently doesn't support SetForegroundBrush at all
danwalmsley
@danwalmsley
Dec 08 2015 12:54
ah ok
is it cairo on linux? not gtk?
Nikita Tsukanov
@kekekeks
Dec 08 2015 12:54
GTK uses Cairo for rendering by default
danwalmsley
@danwalmsley
Dec 08 2015 12:54
ok
its probably a simple fix... I will delve into the code and have a look
Nikita Tsukanov
@kekekeks
Dec 08 2015 12:55
If we won't get a maintainer for Cairo, I think it will be completely replaced by skia
danwalmsley
@danwalmsley
Dec 08 2015 12:56
whats skia btw?
Nikita Tsukanov
@kekekeks
Dec 08 2015 13:02
Chrome rendering backend
José Manuel Nieto
@SuperJMN
Dec 08 2015 13:42
hey, I forgot the URL of the Perspex nighlies NuGet packages. Please, can someone tell me what it is? Thanks in advance :)
Darnell Williams
@Seeker1437
Dec 08 2015 14:16
yes!

Perspex Nightly

https://www.myget.org/F/perspex-nightly/api/v2
danwalmsley
@danwalmsley
Dec 08 2015 16:58
@kekekeks cool so will that basically allow a single backend for all platforms?
Nikita Tsukanov
@kekekeks
Dec 08 2015 17:06
yep
We might keep Direct2D through
Darnell Williams
@Seeker1437
Dec 08 2015 17:59
I have a weird question
Can a generic interface also inherit other interfaces?
ooooh figured it out
wow
slow
Darnell Williams
@Seeker1437
Dec 08 2015 18:14
@kekekeks rememebr my extension problem? I just had to reset the exiremental instance.... XD
José Manuel Nieto
@SuperJMN
Dec 08 2015 18:33
@ImaBrokeDude Thank you!!
danwalmsley
@danwalmsley
Dec 08 2015 18:51
@kekekeks how can I force my app to run using the skia backend on Windows?
Darnell Williams
@Seeker1437
Dec 08 2015 18:53
@danwalmsley are you sure you want to do that? I thought that would break the syntax highlighting because forgound color isn't supported
danwalmsley
@danwalmsley
Dec 08 2015 18:53
its just to see whats missing really,
just for interest!
Darnell Williams
@Seeker1437
Dec 08 2015 18:54
Haha, gottcha, not sure how to do so though guess it's up to @kekekeks we believe in you kekekeks!
Wiesław Šoltés
@wieslawsoltes
Dec 08 2015 19:14
@danwalmsley
        public App()
        {
            RegisterServices();
#if SKIA_WIN
            Win32Platform.Initialize();
            SkiaPlatform.Initialize();
#elif SKIA_GTK
            GtkPlatform.Initialize();
            SkiaPlatform.Initialize();
#else
            InitializeSubsystems((int)Environment.OSVersion.Platform);
#endif
            Styles = new DefaultTheme();
            InitializeComponent();
        }
and
#if SKIA_WIN
using Perspex.Win32;
using Perspex.Skia;
#endif
#if SKIA_GTK
using Perspex.Gtk;
using Perspex.Skia;
#endif
this how I run Skia
danwalmsley
@danwalmsley
Dec 08 2015 19:15
@wieslawsoltes thanks!!!
I will give it a go... see what happens!
how have you found it so far?
Wiesław Šoltés
@wieslawsoltes
Dec 08 2015 19:16
did not test a lot, but generally its good, some text rendering issues
danwalmsley
@danwalmsley
Dec 08 2015 19:28
@wieslawsoltes haha text rendering it probably the part im using most at the moment... about to try it though
@wieslawsoltes how do I get reference to Perspex.Skia?
danwalmsley
@danwalmsley
Dec 08 2015 19:33
ah nuget package Perspex.Desktop.Skia!!
@kekekeks here is a screenshot on Skia, and on Windows of my app for you to see... you can see some text is offset and slightly bolder than normal.. but looking very good.
blob
blob
you can see obviously foreground color not implemented... we knew that
also some text is over to left which on Windows was centralized...
but mostly looks pretty good
Nikita Tsukanov
@kekekeks
Dec 08 2015 20:05

some text is offset

FormattedText implementation needs lots of work