These are chat archives for AvaloniaUI/Avalonia

20th
Nov 2018
Benedikt Schroeder
@Gillibald
Nov 20 2018 05:08
Hmm. Do you know of a control that does inherit the background from its parent? Usually if you want the same background you have to apply a style with either the same background or just transparent value. The default could be null I guess.
ahopper
@ahopper
Nov 20 2018 07:26
the old tabControl did or maybe it was transparent, the new way maybe correct and I can certainly do what I want with styles. In the past when creating something with say a dialog background I generally only set the background at the top.
Nikita Tsukanov
@kekekeks
Nov 20 2018 07:28
We might want to wait on 3D widget
People are actively trying to deprecate OpenGL
So, apparently, there is a new WebGPU standard
Google is implementing an ANGLE-like library that will work across platforms
ahopper
@ahopper
Nov 20 2018 07:38
that is very interesting and it would be very neat to have access to it from avalonia.
Benedikt Schroeder
@Gillibald
Nov 20 2018 09:20
@ahopper I will remove the default background for the new TabControl. It makes more sense to have a transparent content area by default. Maybe there is more that doesn't look right so we can work that out in one PR.
Benedikt Schroeder
@Gillibald
Nov 20 2018 09:26
In theory we don't need to set anything by default.
ahopper
@ahopper
Nov 20 2018 09:28
@Gillibald if you simply put text in the tabitem header property the headers all run into each other, the old one spaced them out.
Steven Kirk
@grokys
Nov 20 2018 09:32
This message was deleted
ahopper
@ahopper
Nov 20 2018 09:32
I have to work on the tab styles for my own app as I have had a number of users not realize the simple text headings are tabs, I have the same issue with the mahapps.metro tabs.
Benedikt Schroeder
@Gillibald
Nov 20 2018 09:37
Y the old version just had a margin of 16 that wasn't ideal. The new version can react to TabStripPlacement and change its margins accordingly.
This part is indeed missing.
I wonder if we should add a default background to TabItems
We just have to tune the default templates a bit
ahopper
@ahopper
Nov 20 2018 09:46
yep, you want someones first attempt at an avalonia app to look pleasing. Anyway the new control is working well for me :+1:.
Benedikt Schroeder
@Gillibald
Nov 20 2018 09:46
Will work on the styles and we can discuss the final solution.
Steven Kirk
@grokys
Nov 20 2018 09:49
has UWP changed the styling for tabs recently? the styling in avalonia was based on that (via MahApps I think)
They seem to set a lot by default.
ahopper
@ahopper
Nov 20 2018 09:55
image.png
the uwp pivot looks like this
Steven Kirk
@grokys
Nov 20 2018 09:57
so bigger text and underline?
ahopper
@ahopper
Nov 20 2018 09:58
and I think the mahapps one has changed to this
Benedikt Schroeder
@Gillibald
Nov 20 2018 09:58
In addition tabs are closable with MahApps
Wiesław Šoltés
@wieslawsoltes
Nov 20 2018 16:35
2018-11-20_17-33-16.gif
Steven Kirk
@grokys
Nov 20 2018 17:28
@wieslawsoltes nice!