Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ToolbarItem color #13

Open
fredericoregateiro opened this issue Dec 18, 2021 · 2 comments
Open

ToolbarItem color #13

fredericoregateiro opened this issue Dec 18, 2021 · 2 comments

Comments

@fredericoregateiro
Copy link

Hello,

I've been follow your videos on how to use AppThemeBinding, but one things i can't change is the ToolbarItem color, it's always white.

I'm using your implementation

Do you have any thoughts on why this is hapening?

Thanks

@jamesmontemagno
Copy link
Owner

Toolbar settings are done ->

<Style x:Key="BaseStyle" TargetType="Element">
<Setter Property="Shell.BackgroundColor" Value="{AppThemeBinding Dark=Black, Light=White}" />
<Setter Property="Shell.ForegroundColor" Value="{AppThemeBinding Dark=White, Light=Black}" />
<Setter Property="Shell.TitleColor" Value="{AppThemeBinding Dark=White, Light=Black}" />
<Setter Property="Shell.DisabledColor" Value="#B4FFFFFF" />
<Setter Property="Shell.UnselectedColor" Value="{AppThemeBinding Dark=#95FFFFFF, Light=#95000000}" />
<Setter Property="Shell.TabBarBackgroundColor" Value="{AppThemeBinding Dark=Black, Light=White}" />
<Setter Property="Shell.TabBarForegroundColor" Value="{AppThemeBinding Dark=White, Light=Black}" />
<Setter Property="Shell.TabBarUnselectedColor" Value="{AppThemeBinding Dark=#95FFFFFF, Light=#95000000}" />
<Setter Property="Shell.TabBarTitleColor" Value="{AppThemeBinding Dark=White, Light=Black}" />
</Style>
<Style BasedOn="{StaticResource BaseStyle}" TargetType="TabBar" />
<Style BasedOn="{StaticResource BaseStyle}" TargetType="FlyoutItem" />

@fredericoregateiro
Copy link
Author

Ok, but i'm using a normal navigation page.
I'm not finding the way to change this styles in the xaml, only in the style.xml
<item name="android:actionMenuTextColor"> #1976D2 </item>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants