These are chat archives for AvaloniaUI/Avalonia

30th
Dec 2015
Alexey
@flcl42
Dec 30 2015 06:10
Controls are drawn with geometric primitives from stretch, there is no way except creation natively looked themes for every platform as I understand
Nikita Tsukanov
@kekekeks
Dec 30 2015 07:19

Compile once, run everywhere and look native too

WPF uses theme-per-windows-version approach to achieve that

You can even force specific theme by messing with ResourceDictionaries
We'll be using theme-per-platform approach
Don't expect themes to be available before RC through
Nikita Tsukanov
@kekekeks
Dec 30 2015 07:25
Also don't expect us to use genuine native widget drawing, it's impossible to combine with lookless controls and UI customization
If you don't want UI customization and want native widgets instead, you should probably take a look at Eto.Forms, @fanoI
Basically we'll be providing themes that will look like latest Windows version, latest Mac OS X, latest Ubuntu version, latest iOS version and latest Android version
Alexey
@flcl42
Dec 30 2015 07:28
@kekekeks do I have to provide monoruntime of 38 mb with app for android?
Nikita Tsukanov
@kekekeks
Dec 30 2015 07:29
You can try to link out unneeded stuff and use AOT
That might reduce apk size
BTW, regarding linux themes
One might try to create some kind of a parser for GTK/Qt themes
But that will only work if said themes don't use native code to be drawn
Alexey
@flcl42
Dec 30 2015 07:37
Will try, ty
Nikita Tsukanov
@kekekeks
Dec 30 2015 07:38
Oh, GTK has at least 8 theme engines
/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libclearlooks.so
/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libcrux-engine.so
/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libglide.so
/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libhcengine.so
/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libindustrial.so
/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libmist.so
/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libredmond95.so
/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/engines/libthinice.so
Alexey
@flcl42
Dec 30 2015 07:43
Hope advice about AOT is not of the same nature
Nikita Tsukanov
@kekekeks
Dec 30 2015 07:44
It looks like GTK3 is using some kind of css instead
Might be worth a try to implement a loader for that