UXDivers / Gorilla-Player-Support

This is the public Gorilla Player support website
http://gorillaplayer.com
115 stars 17 forks source link

Gorila does not automatically apply global styles #323

Open Oleh-Sv opened 6 years ago

Oleh-Sv commented 6 years ago

After you start the player, the styles in the "App.xaml" are not affected by how the application pages are displayed. Gorila applies global styles only after editing a file.

App.xaml

<mvx:MvxFormsApplication>
    <mvx:MvxFormsApplication.Resources>
        <ResourceDictionary>
            <Color x:Key="Primary">#2196F3</Color>
            <Color x:Key="PrimaryDark">#1976D2</Color>
            <Color x:Key="Accent">#96d1ff</Color>
            <Color x:Key="LightBackgroundColor">#FAFAFA</Color>
            <Color x:Key="DarkBackgroundColor">#C0C0C0</Color>
            <Color x:Key="MediumGrayTextColor">#4d4d4d</Color>
            <Color x:Key="LightTextColor">#ffffff</Color>
            <Style TargetType="views:MvxNavigationPage">
                <Setter Property="BarBackgroundColor" Value="{StaticResource Primary}" />
                <Setter Property="BarTextColor" Value="White" />
            </Style>
            <Style TargetType="Button">
                <Setter Property="BackgroundColor" Value="{StaticResource Primary}" />
                <Setter Property="TextColor" Value="{StaticResource LightTextColor}" />
            </Style>
        </ResourceDictionary>
    </mvx:MvxFormsApplication.Resources>
</mvx:MvxFormsApplication>