Open tomziegler opened 1 year ago
Looks like a custom theme. So please investigate that theme. Can you share which Theme you use?
Looks like a custom theme. So please investigate that theme. Can you share which Theme you use?
Hello, Looks like i'm only using the Fluent theme in my app.axaml
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:RoseburgForklift"
x:Class="RoseburgForklift.App"
xmlns:dialogHostAvalonia="clr-namespace:DialogHostAvalonia;assembly=DialogHost.Avalonia"
RequestedThemeVariant="Default">
<!-- "Default" ThemeVariant follows system theme variant. "Dark" or "Light" are other available options. -->
<Application.DataTemplates>
<local:ViewLocator/>
</Application.DataTemplates>
<Application.Styles>
<!--<StyleInclude Source="avares://Avalonia.Themes.Default/DefaultTheme.xaml"/>
<StyleInclude Source="avares://Avalonia.Themes.Default/Accents/BaseLight.xaml"/>
<StyleInclude Source="avares://Avalonia.Controls.DataGrid/Themes/Default.xaml"/>-->
<!--<FluentTheme Mode="Light" />-->
<StyleInclude Source="avares://Avalonia.Controls.DataGrid/Themes/Fluent.xaml"/>
<dialogHostAvalonia:DialogHostStyles />
<FluentTheme />
</Application.Styles>
</Application>
Oh and apparently this is the style im using in my main screen:
<UserControl.Styles>
<Style Selector="ItemsPanelTemplate">
</Style>
<Style Selector="TabControl">
<Setter Property="Background" Value="#F0F0F0"/>
<!--<Setter Property="Height" Value="120"/>-->
</Style>
<Style Selector="TabControl WrapPanel">
<Setter Property="Background" Value="#7fba41"/>
</Style>
<Style Selector="TabItem">
<Setter Property="FontSize" Value="12"/>
<Setter Property="HorizontalAlignment" Value="Stretch"/>
<Setter Property="Height" Value="34"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="Background" Value="#7fba41"/>
<Setter Property="Foreground" Value="#F0F0F0"/>
<Setter Property="Margin" Value="0 0 0 0"/>
<Setter Property="Padding" Value="10 0"/>
<Setter Property="Width" Value="220"/>
</Style>
<Style Selector="TabItem:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="Green"/>
</Style>
<Style Selector="TabItem:focus">
<Setter Property="Foreground" Value="#7fba41"/>
<Setter Property="Margin" Value="0 0 0 0"/>
<Setter Property="Padding" Value="10 0"/>
</Style>
<Style Selector="TabItem:focus /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="#f0f0f0"/>
</Style>
<Style Selector="TabItem:selected">
<Setter Property="Foreground" Value="#7fba41"/>
<Setter Property="Margin" Value="0 0 0 0"/>
<Setter Property="Padding" Value="10 0"/>
</Style>
<Style Selector="TabItem:selected /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="#f0f0f0"/>
</Style>
</UserControl.Styles>
Describe the bug A couple of issues. One is that the border doesn't show and is over/under-lapping other tabs, and secondly there is a weird gray bar at the bottom of every tab. It could be a formatting issue, but not entirely sure.
To Reproduce Running the code in debug mode in the Android emulator
Expected behavior Would like every tab to be the same and have a border that is the same size.
Screenshots
Desktop (please complete the following information):
Additional context Code sample of the tab control.