These are chat archives for AvaloniaUI/Avalonia

8th
Jun 2018
Jumar Macato
@jmacato
Jun 08 2018 01:00

That sounds good, now we have font embedding i guess the fonts from the metro project are another source of icons

@ahopper
I have FontAwesome port for Avalonia, I wanted to do a Segoe UI Symbols but the font itself is not redistributable so ¯(ツ)

Splitwirez @Splitwirez wonders if Selawik Symbols is a thing
Jumar Macato
@jmacato
Jun 08 2018 01:00
@Splitwirez nein
Splitwirez
@Splitwirez
Jun 08 2018 01:01
10
Jumar Macato
@jmacato
Jun 08 2018 01:01
high five
Splitwirez
@Splitwirez
Jun 08 2018 01:01
high 7
Windows 5 was never a thing |:
Jumar Macato
@jmacato
Jun 08 2018 01:02
🛑 stop xD
Splitwirez
@Splitwirez
Jun 08 2018 01:03
o ok
Jumar Macato
@jmacato
Jun 08 2018 01:11
@wieslawsoltes that Viewbox control works great :D
Wiesław Šoltés
@wieslawsoltes
Jun 08 2018 04:28
:smile:
ahopper
@ahopper
Jun 08 2018 05:25
@jmacato the FontAwesome port sounds useful, is this a port from metro? it might be interesting to wrap up the visual studio drawings the same way.
Jumar Macato
@jmacato
Jun 08 2018 05:49
@ahopper it's ported from WPF, look up "FontAwesome for WPF". It's just a helper class + TextBlock derived control for displaying icons :) I havent got to making a NuGet package for it yet but i will be soon
ahopper
@ahopper
Jun 08 2018 06:21
I had a quick play at porting some of this https://github.com/MahApps/MahApps.Metro.IconPacks but some of the paths caused exceptions (typically on icons I wanted) this was 18 months ago so is probably worth trying again.
Jumar Macato
@jmacato
Jun 08 2018 06:24
That's quite an extensive collection
ahopper
@ahopper
Jun 08 2018 06:26
they are all done with paths, not sure how that compares performance wise to using fonts directly
Jumar Macato
@jmacato
Jun 08 2018 06:26
Regarding paths, There will be some overhead vs font glyphs
cause of path parsing, etc
danwalmsley
@danwalmsley
Jun 08 2018 06:37
@ahopper I did fix some path parsing at some point
So hopefully should work now
Iv not found any from visual studio icon liberary that done work yet
ahopper
@ahopper
Jun 08 2018 06:40
yep, it was a long time ago when I first tried avalonia (before writeablebitmap existed). I've had no issues with the vs icons either
Jumar Macato
@jmacato
Jun 08 2018 06:43
It's been seamless transferring wpf's xaml to avalonia, but it's just from 4months ago onwards :)
wpf paths*
Benedikt Schroeder
@Gillibald
Jun 08 2018 07:00
Paths should respect the svg spec better with my rework of the PathMarkupParser
Rayyan Tahir
@RayyanTahir
Jun 08 2018 07:00
What is the avalonia way of getting an IControl from an IControl's ControlTemplate?
ahopper
@ahopper
Jun 08 2018 07:53
I'm having trouble using StaticResources declared in app.xaml in user controls, they work fine in the mainwindow
Manuel
@CommonGuy
Jun 08 2018 11:50
Getting some build errors on AppVeyor again...AvaloniaUI/Avalonia#1647
danwalmsley
@danwalmsley
Jun 08 2018 11:58
iv set it off going again
might be a random failure
ahopper
@ahopper
Jun 08 2018 12:15
image.png
The current code seem to handle all the vs image lib drawings, except for a few with unsupported xaml
danwalmsley
@danwalmsley
Jun 08 2018 12:34
@ahopper are you planning on posting the code for those?
is that every single icon?
or just some?
ahopper
@ahopper
Jun 08 2018 12:37
all but 100 or so, I have a t4 template to extract them, I'll post it soon
fanoI
@fanoI
Jun 08 2018 12:37
There is no chance to have Avalonia with GTK2 support?
ahopper
@ahopper
Jun 08 2018 12:39
A few have linearGradientBrush or radialGradientbrush with properties that avalonia does not seem to have
Benedikt Schroeder
@Gillibald
Jun 08 2018 12:45
These can probably be added
danwalmsley
@danwalmsley
Jun 08 2018 12:51
@fanoI we started off with gtk2
So it's possible
Can't you install gtk2?
Icons/VSImageLib.xaml has all the drawings in, it is rather large and I'm not sure how useful it is, but a good test anyway
The missed ones are listed at the bottom
Sorien
@Sorien
Jun 08 2018 14:15
maybe you could started taging all avalonia repos with "avaloniaui"
image.png
ahopper
@ahopper
Jun 08 2018 16:16
@Gillibald I think being able to load drawings from an asset would be really good, the big resource file of drawings I produced is just too big (7M) and copying individual drawing snippets into a style seems a bit messy.
Benedikt Schroeder
@Gillibald
Jun 08 2018 18:24
I think svg support will help making that process easier. There are a lot of tools that export to svg and converting stuff to xaml isn't very elegant.