Exemple #1
0
 private void UpdateBarBackgroundColor(Controls.Page page)
 {
     if (Navigation != null)
     {
         page?.SetToolbarColor(Navigation.BarBackgroundColor);
     }
 }
 private void UpdateBarBackgroundColor(Controls.Page page)
 {
     if (Navigation != null)
     {
         if (Navigation.BarBackgroundColor.IsDefaultOrTransparent())
         {
             page?.SetToolbarColor(null);
         }
         else
         {
             var backgroundColor = Navigation.BarBackgroundColor.ToGtkColor();
             page?.SetToolbarColor(backgroundColor);
         }
     }
 }